[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E38667D.4000901@zytor.com>
Date: Tue, 02 Aug 2011 14:05:01 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: "Luck, Tony" <tony.luck@...el.com>
CC: linux-kernel@...r.kernel.org, Mike Waychison <mikew@...gle.com>,
Matthew Garrett <mjg@...hat.com>
Subject: Re: [PATCH] efivars: fix warnings when CONFIG_PSTORE=n
On 08/02/2011 01:57 PM, Luck, Tony wrote:
>
> +#ifdef CONFIG_PSTORE
> static unsigned long
> utf16_strlen(efi_char16_t *s)
> {
> return utf16_strnlen(s, ~0UL);
> }
> +#endif
>
Unless this is actually called via an indirect function pointer, it can
just be changed to "static inline", which shuts up the warning, too.
-hpa
--
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