Re: [PATCH] lockup_detector: Make callback function static

From: Don Zickus
Date: Fri Aug 20 2010 - 08:19:27 EST


On Fri, Aug 20, 2010 at 11:03:51AM +0800, Lin Ming wrote:
> watchdog_overflow_callback is only used in kernel/watchdog.c.

Acked-by: Don Zickus <dzickus@xxxxxxxxxx>

>
> Signed-off-by: Lin Ming <ming.m.lin@xxxxxxxxx>
> ---
> kernel/watchdog.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/watchdog.c b/kernel/watchdog.c
> index 613bc1f..b60e2a8 100644
> --- a/kernel/watchdog.c
> +++ b/kernel/watchdog.c
> @@ -202,7 +202,7 @@ static struct perf_event_attr wd_hw_attr = {
> };
>
> /* Callback function for perf event subsystem */
> -void watchdog_overflow_callback(struct perf_event *event, int nmi,
> +static void watchdog_overflow_callback(struct perf_event *event, int nmi,
> struct perf_sample_data *data,
> struct pt_regs *regs)
> {
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/