Re: [PATCH] efivars: fix warnings when CONFIG_PSTORE=n
From: H. Peter Anvin
Date: Tue Aug 02 2011 - 17:05:10 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/