2002-12-06 13:10:56

by Rudmer van Dijk

[permalink] [raw]
Subject: [PATCH] kill warning

Hi,

Following patch is needed to kill this warning:
CC drivers/char/sysrq.o
In file included from drivers/char/sysrq.c:30:
include/linux/suspend.h:76: warning: static declaration for
`software_suspend' follows non-static

Rudmer

# diff -u linux-2.5.50-bk5/drivers/char/sysrq.c.orig
linux-2.5.50-bk5/drivers/char/sysrq.c
--- linux-2.5.50-bk5/drivers/char/sysrq.c.orig 2002-12-06
14:11:50.000000000 +0100
+++ linux-2.5.50-bk5/drivers/char/sysrq.c 2002-12-06
14:09:00.000000000 +0100
@@ -21,13 +21,13 @@
#include <linux/mount.h>
#include <linux/kdev_t.h>
#include <linux/major.h>
+#include <linux/suspend.h>
#include <linux/reboot.h>
#include <linux/sysrq.h>
#include <linux/kbd_kern.h>
#include <linux/quotaops.h>
#include <linux/smp_lock.h>
#include <linux/module.h>
-#include <linux/suspend.h>
#include <linux/writeback.h>
#include <linux/buffer_head.h> /* for fsync_bdev() */