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.3 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 B43BBC32753 for ; Wed, 14 Aug 2019 11:09:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94C072133F for ; Wed, 14 Aug 2019 11:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727730AbfHNLJD (ORCPT ); Wed, 14 Aug 2019 07:09:03 -0400 Received: from verein.lst.de ([213.95.11.211]:37109 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbfHNLJD (ORCPT ); Wed, 14 Aug 2019 07:09:03 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 8823D68B02; Wed, 14 Aug 2019 13:08:59 +0200 (CEST) Date: Wed, 14 Aug 2019 13:08:59 +0200 From: Christoph Hellwig To: linux-fsdevel@vger.kernel.org, hch@lst.de, adilger@dilger.ca, jaegeuk@kernel.org, darrick.wong@oracle.com, miklos@szeredi.hu, rpeterso@redhat.com, linux-xfs@vger.kernel.org Subject: Re: [PATCH 4/9] fibmap: Use bmap instead of ->bmap method in ioctl_fibmap Message-ID: <20190814110859.GA1885@lst.de> References: <20190808082744.31405-5-cmaiolino@redhat.com> <201908090430.yoyXYjeY%lkp@intel.com> <20190814110148.kbp6tplxibrnfpej@pegasus.maiolino.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190814110148.kbp6tplxibrnfpej@pegasus.maiolino.io> 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 Wed, Aug 14, 2019 at 01:01:50PM +0200, Carlos Maiolino wrote: > Hey folks, > > > All errors (new ones prefixed by >>): > > > > fs/ioctl.c: In function 'ioctl_fibmap': > > >> fs/ioctl.c:68:10: error: implicit declaration of function 'bmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration] > > Any of you guys may have a better idea on how to fix this? > > Essentially, this happens when CONFIG_BLOCK is not set, and although I don't > really see a hard requirement to have bmap() exported only when CONFIG_BLOCK is > set, at the same time, I don't see use for bmap() if CONFIG_BLOCK is not set. > > So, I'm in a kind of a chicken-egg problem. > > I am considering to just remove the #ifdef CONFIG_BLOCK / #endif from the bmap() > declaration. This will fix the warning, and I don't see any side effects. What > you guys think? Just provide an inline !CONFIG_BLOCK stub for bmap() in fs.h that always returns -EINVAL.