lkml.org 
[lkml]   [2006]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[-mm patch] arch/i386/oprofile/: make functions static
    On Mon, May 15, 2006 at 12:56:37AM -0700, Andrew Morton wrote:
    >...
    > Changes since 2.6.17-rc3-mm1:
    >...
    > +x86_64-mm-remove-un-set_nmi_callback-and-reserve-release_lapic_nmi-functions.patch
    >...
    > x86_64 tree updates
    >...


    This patch makes the following needlessly global functions static:
    - nmi_int.c: profile_exceptions_notify()
    - nmi_timer_int.c: profile_timer_exceptions_notify()

    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    ---

    arch/i386/oprofile/nmi_int.c | 4 ++--
    arch/i386/oprofile/nmi_timer_int.c | 4 ++--
    2 files changed, 4 insertions(+), 4 deletions(-)

    --- linux-2.6.17-rc4-mm1-full/arch/i386/oprofile/nmi_int.c.old 2006-05-16 12:32:15.000000000 +0200
    +++ linux-2.6.17-rc4-mm1-full/arch/i386/oprofile/nmi_int.c 2006-05-16 12:32:34.000000000 +0200
    @@ -82,8 +82,8 @@
    #define exit_driverfs() do { } while (0)
    #endif /* CONFIG_PM */

    -int profile_exceptions_notify(struct notifier_block *self,
    - unsigned long val, void *data)
    +static int profile_exceptions_notify(struct notifier_block *self,
    + unsigned long val, void *data)
    {
    struct die_args *args = (struct die_args *)data;
    int ret = NOTIFY_DONE;
    --- linux-2.6.17-rc4-mm1-full/arch/i386/oprofile/nmi_timer_int.c.old 2006-05-16 12:32:55.000000000 +0200
    +++ linux-2.6.17-rc4-mm1-full/arch/i386/oprofile/nmi_timer_int.c 2006-05-16 12:33:04.000000000 +0200
    @@ -19,8 +19,8 @@
    #include <asm/ptrace.h>
    #include <asm/kdebug.h>

    -int profile_timer_exceptions_notify(struct notifier_block *self,
    - unsigned long val, void *data)
    +static int profile_timer_exceptions_notify(struct notifier_block *self,
    + unsigned long val, void *data)
    {
    struct die_args *args = (struct die_args *)data;
    int ret = NOTIFY_DONE;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-16 15:26    [W:0.023 / U:1.780 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site