[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAS49O=v8tJe+NauzsexVeg5hWNzFMFuWbCJbqc_qRv3dw@mail.gmail.com>
Date: Fri, 19 Jul 2019 21:47:55 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Jani Nikula <jani.nikula@...el.com>,
Randy Dunlap <rdunlap@...radead.org>,
"Darrick J. Wong" <darrick.wong@...cle.com>,
Christoph Hellwig <hch@....de>, Jens Axboe <axboe@...nel.dk>,
Hannes Reinecke <hare@...e.com>,
Omar Sandoval <osandov@...com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Subject: Re: [PATCH] [v2] blkdev: always export SECTOR_SHIFT
Hi Arnd,
On Fri, Jul 19, 2019 at 8:32 PM Arnd Bergmann <arnd@...db.de> wrote:
>
> When CONFIG_BLOCK is disabled, SECTOR_SHIFT is unknown, and this leads
> to a failure in the testing infrastructure added from commit c93a0368aaa2
> ("kbuild: do not create wrappers for header-test-y"):
I think this should be
commit 43c78d88036e ("kbuild: compile-test kernel headers to ensure
they are self-contained")
Thanks.
>
> In file included from <built-in>:3:
> include/linux/iomap.h:76:48: error: use of undeclared identifier 'SECTOR_SHIFT'
> return (iomap->addr + pos - iomap->offset) >> SECTOR_SHIFT;
>
> If we want to keep build testing all headers, the macro needs to
> either be defined, or not used. Move it out of the #ifdef
> section to ensure it is visible.
>
> Fixes: db074436f421 ("iomap: move the direct IO code into a separate file")
> Link: https://lore.kernel.org/lkml/20190718125509.775525-1-arnd@arndb.de/T/
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> The discussion about the build testing is still going on, but I promised
> to send this version anyway for reference. I see no other header-test
> failures in randconfig builds with this patch.
> ---
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists