Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3731818ybl; Mon, 13 Jan 2020 01:29:38 -0800 (PST) X-Google-Smtp-Source: APXvYqx9HCY/C7h07d2kaFPQHLeGJTlf/rRvb1BATIutWdTa9lMjLr0G3L3emfF9T8PKgVIP8tOB X-Received: by 2002:aca:1e0f:: with SMTP id m15mr12319443oic.58.1578907778829; Mon, 13 Jan 2020 01:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578907778; cv=none; d=google.com; s=arc-20160816; b=TEsunwW1EcnS3hCVS45McdDUQZINduNO4DHNgAl419t3z8qXdihN3jSdy/LtHiODAv mLS1THmi4sweRG/rvS1SE/obIzWeeQ9srOyTM2Z+X6ciyaBzkG04dUGbuBIGjWSrQnfS 0J5nXsMxKRq7VVPbd8mclRj3grNwY3vdPrPsNoAaFK1iFGCHJNgb2iss1IokVNi2cIw+ ymTExE2bZNqyR+YUASkntpxwmSQSJ6KJSy8heNd9aqEFROgJLjfjEiPdx4q1ksZ+HRVP UesZX56a9XCYtcH/uCQzExUArAKQ/ENBMXYoz++8jmedOR76PRu5gxKJ3HE65KBOvT35 7R2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=R3C4Q941xE3AXEWBJErO7jF+8a/J+pt1q7fx5URkZDQ=; b=Qe/Hkpo6OjUVdB86l4QZD5ffWCBo0ALJ5ywEZVag3g4DfWXS0yIRdJB8XImLLvA0jD pB7soLxaPkjlx/N/s9zpvFrOco7aJV8mQnb3jLhMx5gSlS2aTDIQcYG3rHIZHJmZah0B rqpAcaBvHGxJkmnFnCIiUEPmuIMdI0VDtnQlBfB8vC/4hAK+mLDtSAdh4CCKqPc7+Yf1 L+kR74wzY8PjrZVhpsNcjJp6M55EutL+CguPYpxcw4qVW7Hmu0Xbf43jdtmAFKq5pCVz U9NAsIHRCtQ9QXxVyKyPQbNio1PLPNk0j/Ga/kiX9YDhdGaM07UkAlc94SeZoR5TZjfB 1m2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=diV7txC3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12si6652228otn.193.2020.01.13.01.29.26; Mon, 13 Jan 2020 01:29:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=diV7txC3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbgAMJ21 (ORCPT + 99 others); Mon, 13 Jan 2020 04:28:27 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:28439 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725832AbgAMJ21 (ORCPT ); Mon, 13 Jan 2020 04:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578907706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=R3C4Q941xE3AXEWBJErO7jF+8a/J+pt1q7fx5URkZDQ=; b=diV7txC3kSVcODqHrxTrWaaihAR0sDXlaUNVBONeKoQ7UL9xYBcQtzSBefXXkfM0e8GRJ4 Z372scX1NTJDI+qygmTMdSIWINVy8mm09zzveLXM9sDl2jrxtQRNQ0w7ZQWR2qr+JMnIrS 5v/MY/fLAKL1ExD0f8Doo9KslFdHDZk= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-208-GxA1gvvaNvKksl9_A-soIA-1; Mon, 13 Jan 2020 04:28:20 -0500 X-MC-Unique: GxA1gvvaNvKksl9_A-soIA-1 Received: by mail-wm1-f69.google.com with SMTP id t4so2305610wmf.2 for ; Mon, 13 Jan 2020 01:28:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=R3C4Q941xE3AXEWBJErO7jF+8a/J+pt1q7fx5URkZDQ=; b=ss+qFmWKQlOcl7dO6W6fIXnVYtzRCys6AjYgqZZkCua0B+SWdanGnmX33kC261RM+y VUiMV7sRw5Ux35ysagKJJ2rqyNbnPdhDvmd1mWI+fLJXwa6X8KssaHEUD89THlxGjxFj enFhEnM8V5ZTDBO/cRI4uITWo6tMBYRkwVP50PJeGrtCplGRo6AumTEW8AtpunFc/gb/ +KKsPj7L9inrxz39MC6SXJfylh5YhJbKUwEVE55OhTHVQlJmKVAhMMefPZW+sJaUasfl 76IxJHtXQW5hsaWfsdNyb2L2hKtzqvNCEclNWCixN6BjC5Dgp5IrSs5i6vDlI53vnWaD Bwkw== X-Gm-Message-State: APjAAAXamCphwPSuM/T+jF1ZfPu9NUWjl3pYnxjMQUOtH0q+lcbCY9H9 YR8q1ytG+/xYWUks/frIk4IjOKLy8z+8YH9ieX/ju9oQVb4kXV8ayybFTmjIAYeBeXvmSuwPVq/ KNxfh/Ic2oPabuu9VMF/aTMCl X-Received: by 2002:a5d:49c7:: with SMTP id t7mr16792090wrs.369.1578907698501; Mon, 13 Jan 2020 01:28:18 -0800 (PST) X-Received: by 2002:a5d:49c7:: with SMTP id t7mr16792071wrs.369.1578907698283; Mon, 13 Jan 2020 01:28:18 -0800 (PST) Received: from orion (ip-89-103-126-188.net.upcbroadband.cz. [89.103.126.188]) by smtp.gmail.com with ESMTPSA id m7sm13200881wma.39.2020.01.13.01.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 01:28:17 -0800 (PST) Date: Mon, 13 Jan 2020 10:28:15 +0100 From: Carlos Maiolino To: Stephen Rothwell Cc: Al Viro , Linux Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build failure after merge of the vfs tree Message-ID: <20200113092815.qwndd7oi5wglxh3c@orion> Mail-Followup-To: Carlos Maiolino , Stephen Rothwell , Al Viro , Linux Next Mailing List , Linux Kernel Mailing List References: <20200110175729.3b5d2338@canb.auug.org.au> <20200110110353.klnooeqv4b6ipxid@orion> <20200111094427.4c875a90@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200111094427.4c875a90@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 11, 2020 at 09:44:27AM +1100, Stephen Rothwell wrote: > Hi Carlos, > > On Fri, 10 Jan 2020 12:03:53 +0100 Carlos Maiolino wrote: > > > > Eitherway, I am not 100% sure this is the right fix for this case, I remember > > some bmap() users who didn't need CONFIG_BLOCK, so we may still need to export > > it without CONFIG_BLOCK. > > Can you please send me your configuration? > > It was a x86_64 allnoconfig build. Thanks for the info Stephen. I think the correct way to fix this though, is to wrap the whole bmap(){} definition in a #ifdef block, not only the EXPORT symbol, as, by my patches, we redefine bmap() as an inline symbol if CONFIG_BLOCK is not set. So, something like this: diff --git a/fs/inode.c b/fs/inode.c index 9f894b25af2b..21e58542801b 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -1612,6 +1612,8 @@ EXPORT_SYMBOL(iput); * Returns -EINVAL in case of error, 0 otherwise. If mapping falls into a * hole, returns 0 and *block is also set to 0. */ + +#ifdef CONFIG_BLOCK int bmap(struct inode *inode, sector_t *block) { if (!inode->i_mapping->a_ops->bmap) @@ -1621,6 +1623,7 @@ int bmap(struct inode *inode, sector_t *block) return 0; } EXPORT_SYMBOL(bmap); +#endif /* * With relative atime, only update atime if the previous atime is So, we preserve the original inline definition in include/fs.h (making bmap() just returning -EINVAL). What do you think? Viro, mind to share your opinion? I can send a 'Fixes:' patch. Cheers -- Carlos