2005-03-28 05:47:03

by Randy.Dunlap

[permalink] [raw]
Subject: [PATCH] x86_64/lib: find_first_zero_bit not extern


Exported function was marked inline:
arch/x86_64/lib/bitops.c:18: warning: `find_first_zero_bit' declared inline afte
r being called

Signed-off-by: Randy Dunlap <[email protected]>

diffstat:=
arch/x86_64/lib/bitops.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./arch/x86_64/lib/bitops.c~x8664_lib_bitops ./arch/x86_64/lib/bitops.c
--- ./arch/x86_64/lib/bitops.c~x8664_lib_bitops 2005-03-01 23:37:49.000000000 -0800
+++ ./arch/x86_64/lib/bitops.c 2005-03-27 20:42:59.000000000 -0800
@@ -14,7 +14,7 @@
* Returns the bit-number of the first zero bit, not the number of the byte
* containing a bit.
*/
-inline long find_first_zero_bit(const unsigned long * addr, unsigned long size)
+long find_first_zero_bit(const unsigned long * addr, unsigned long size)
{
long d0, d1, d2;
long res;


---


2005-03-28 15:08:37

by Andi Kleen

[permalink] [raw]
Subject: Re: [PATCH] x86_64/lib: find_first_zero_bit not extern

On Sun, Mar 27, 2005 at 09:39:07PM -0800, Randy.Dunlap wrote:
>
> Exported function was marked inline:
> arch/x86_64/lib/bitops.c:18: warning: `find_first_zero_bit' declared inline afte
> r being called
>
> Signed-off-by: Randy Dunlap <[email protected]>

That is already fixed in the patchkit in -mm*

-Andi