[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <961aa3350806040804g72c85ca3ide63ab2b0074ccf2@mail.gmail.com>
Date: Thu, 5 Jun 2008 00:04:32 +0900
From: "Akinobu Mita" <akinobu.mita@...il.com>
To: "Harvey Harrison" <harvey.harrison@...il.com>
Cc: "Andrew Morton" <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
"Marcel Holtmann" <marcel@...tmann.org>
Subject: Re: [PATCH 1/2] lib: export bitrev16
> --- a/lib/bitrev.c
> +++ b/lib/bitrev.c
> @@ -42,10 +42,11 @@ const u8 byte_rev_table[256] = {
> };
> EXPORT_SYMBOL_GPL(byte_rev_table);
>
> -static __always_inline u16 bitrev16(u16 x)
> +u16 bitrev16(u16 x)
> {
> return (bitrev8(x & 0xff) << 8) | bitrev8(x >> 8);
> }
> +EXPORT_SYMBOL(bitrev16);
How about just moving bitrev16() from lib/bitrev.c to include/linux/bitrev.h
with s/__always_inline/inline/ rather than making it export symbol?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists