lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ