From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] H8/300 build error fix
Date: Wed, 10 Nov 2004 13:55:11 +0900 [thread overview]
Message-ID: <m23bziqp5c.wl%ysato@users.sourceforge.jp> (raw)
Because reference of fls becomes error.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
diff -Nru a/include/asm-h8300/bitops.h b/include/asm-h8300/bitops.h
--- a/include/asm-h8300/bitops.h 2004-11-10 01:06:35 +09:00
+++ b/include/asm-h8300/bitops.h 2004-11-10 01:06:35 +09:00
@@ -6,7 +6,6 @@
* Copyright 2002, Yoshinori Sato
*/
-#include <linux/kernel.h>
#include <linux/config.h>
#include <linux/compiler.h>
#include <asm/byteorder.h> /* swab32 */
@@ -181,6 +180,8 @@
#define find_first_zero_bit(addr, size) \
find_next_zero_bit((addr), (size), 0)
+#define ffs(x) generic_ffs(x)
+
static __inline__ unsigned long __ffs(unsigned long word)
{
unsigned long result;
@@ -195,9 +196,6 @@
return result;
}
-#define ffs(x) generic_ffs(x)
-#define fls(x) generic_fls(x)
-
static __inline__ int find_next_zero_bit (void * addr, int size, int offset)
{
unsigned long *p = (unsigned long *)(((unsigned long)addr + (offset >> 3)) & ~3);
@@ -406,5 +404,7 @@
#define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size)
#endif /* __KERNEL__ */
+
+#define fls(x) generic_fls(x)
#endif /* _H8300_BITOPS_H */
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
reply other threads:[~2004-11-10 4:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m23bziqp5c.wl%ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome