Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261879AbUKJEz0 (ORCPT ); Tue, 9 Nov 2004 23:55:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261883AbUKJEz0 (ORCPT ); Tue, 9 Nov 2004 23:55:26 -0500 Received: from l247150.ppp.asahi-net.or.jp ([218.219.247.150]:54951 "EHLO mitou.ysato.dip.jp") by vger.kernel.org with ESMTP id S261879AbUKJEzP (ORCPT ); Tue, 9 Nov 2004 23:55:15 -0500 Date: Wed, 10 Nov 2004 13:55:11 +0900 Message-ID: From: Yoshinori Sato To: Linus Torvalds , Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [PATCH] H8/300 build error fix User-Agent: Wanderlust/2.11.30 (Wonderwall) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1448 Lines: 51 Because reference of fls becomes error. Signed-off-by: Yoshinori Sato 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 #include #include #include /* 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 - 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/