[PATCH 2.6.10-rc2-mm2] mips: fixed fls warning

From: Yoichi Yuasa
Date: Sun Nov 21 2004 - 03:49:32 EST


This patch fixes the following fls warning on MIPS.

CC arch/mips/kernel/offset.s
In file included from include/asm/system.h:18,
from include/asm/bitops.h:34,
from include/linux/bitops.h:77,
from include/linux/thread_info.h:20,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/mips/kernel/offset.c:14:
include/linux/kernel.h: In function `roundup_pow_of_two':
include/linux/kernel.h:120: warning: implicit declaration of function `fls'

Signed-off-by: Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx>

diff -urN -X dontdiff a-orig/include/asm-mips/system.h a/include/asm-mips/system.h
--- a-orig/include/asm-mips/system.h Sat Oct 23 06:39:07 2004
+++ a/include/asm-mips/system.h Wed Nov 10 08:00:10 2004
@@ -13,9 +13,8 @@
#define _ASM_SYSTEM_H

#include <linux/config.h>
-#include <asm/sgidefs.h>
-
-#include <linux/kernel.h>
+#include <linux/linkage.h>
+#include <linux/types.h>

#include <asm/addrspace.h>
#include <asm/ptrace.h>

-
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/