Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-23 Thread Matthias Kaehlcke
Hi Christoph, El Tue, May 23, 2017 at 12:36:01AM -0700 Christoph Hellwig ha dit: > On Mon, May 22, 2017 at 02:13:26PM -0700, Matthias Kaehlcke wrote: > > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > > Adding the #ifdef fixes the following warning when building with

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-23 Thread Matthias Kaehlcke
Hi Christoph, El Tue, May 23, 2017 at 12:36:01AM -0700 Christoph Hellwig ha dit: > On Mon, May 22, 2017 at 02:13:26PM -0700, Matthias Kaehlcke wrote: > > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > > Adding the #ifdef fixes the following warning when building with

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-23 Thread Christoph Hellwig
On Mon, May 22, 2017 at 02:13:26PM -0700, Matthias Kaehlcke wrote: > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > Adding the #ifdef fixes the following warning when building with clang: > > lib/zlib_inflate/inffast.c:31:1: error: unused function 'get_unaligned16' >

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-23 Thread Christoph Hellwig
On Mon, May 22, 2017 at 02:13:26PM -0700, Matthias Kaehlcke wrote: > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > Adding the #ifdef fixes the following warning when building with clang: > > lib/zlib_inflate/inffast.c:31:1: error: unused function 'get_unaligned16' >

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Matthias Kaehlcke
Hi Andrew, El Mon, May 22, 2017 at 02:39:25PM -0700 Andrew Morton ha dit: > On Mon, 22 May 2017 14:13:26 -0700 Matthias Kaehlcke > wrote: > > > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > > Adding the #ifdef fixes the following warning when

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Matthias Kaehlcke
Hi Andrew, El Mon, May 22, 2017 at 02:39:25PM -0700 Andrew Morton ha dit: > On Mon, 22 May 2017 14:13:26 -0700 Matthias Kaehlcke > wrote: > > > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > > Adding the #ifdef fixes the following warning when building with clang: >

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Andrew Morton
On Mon, 22 May 2017 14:13:26 -0700 Matthias Kaehlcke wrote: > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > Adding the #ifdef fixes the following warning when building with clang: > > lib/zlib_inflate/inffast.c:31:1: error: unused function

Re: [PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Andrew Morton
On Mon, 22 May 2017 14:13:26 -0700 Matthias Kaehlcke wrote: > The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. > Adding the #ifdef fixes the following warning when building with clang: > > lib/zlib_inflate/inffast.c:31:1: error: unused function 'get_unaligned16' >

[PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Matthias Kaehlcke
The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. Adding the #ifdef fixes the following warning when building with clang: lib/zlib_inflate/inffast.c:31:1: error: unused function 'get_unaligned16' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke

[PATCH] zlib: Put get_unaligned16() inside #ifdef block

2017-05-22 Thread Matthias Kaehlcke
The function is not used when CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y. Adding the #ifdef fixes the following warning when building with clang: lib/zlib_inflate/inffast.c:31:1: error: unused function 'get_unaligned16' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- Note: