From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D488AC76191 for ; Thu, 18 Jul 2019 13:08:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8DCA20880 for ; Thu, 18 Jul 2019 13:08:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbfGRNIj (ORCPT ); Thu, 18 Jul 2019 09:08:39 -0400 Received: from verein.lst.de ([213.95.11.211]:59504 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbfGRNIj (ORCPT ); Thu, 18 Jul 2019 09:08:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 26DF068BFE; Thu, 18 Jul 2019 15:08:36 +0200 (CEST) Date: Thu, 18 Jul 2019 15:08:35 +0200 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Christoph Hellwig , "Darrick J. Wong" , linux-xfs , Linux FS-devel Mailing List , Andreas Gruenbacher , Hannes Reinecke , Souptick Joarder , Linux Kernel Mailing List , Masahiro Yamada , Jani Nikula Subject: Re: [PATCH] iomap: hide iomap_sector with CONFIG_BLOCK=n Message-ID: <20190718130835.GA28520@lst.de> References: <20190718125509.775525-1-arnd@arndb.de> <20190718125703.GA28332@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Jul 18, 2019 at 03:03:15PM +0200, Arnd Bergmann wrote: > The inclusion comes from the recently added header check in commit > c93a0368aaa2 ("kbuild: do not create wrappers for header-test-y"). > > This just tries to include every header by itself to see if there are build > failures from missing indirect includes. We probably don't want to > add an exception for iomap.h there. I very much disagree with that check. We don't need to make every header compilable with a setup where it should not be included. That being said if you feel this is worth fixing I'd rather define SECTOR_SIZE/SECTOR_SHIFT unconditionally.