Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp350905ybh; Thu, 12 Mar 2020 03:15:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtNQNcnESosSmVBxCzE5/Mr/QOO5lzgDSLQsRjwdhVko1koS1n/q3YX1QDQgzlI2UDmhtys X-Received: by 2002:a05:6830:310a:: with SMTP id b10mr5551694ots.210.1584008109896; Thu, 12 Mar 2020 03:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584008109; cv=none; d=google.com; s=arc-20160816; b=0gZa253e8g5ZC+crFk3S04i9stanvrxm5+NqwDY3BZgD4XSg0jlMiSo9rBpUQAa0vj Tpe6V6fvQ9dvneZAntZcGpkLYLcD8RTDKpHzpSlwvoY2OfzJfaKJnTANebrwTDtCfrem m7q2d2LO1TMaPRP3SBXGLoMJfuZ0TergYUlPsghTkmJ8imVCUnB4swhALNJTl4Mbeypu c4gWYX0dEhJCuzjuPAzJnUCSE0t/+cL7wMhw1XFDFsB2VyCIlJIfQ6Xm7HVAT4Sn4wVp HTxkrOWYbGChrhwNMTrqouCWp3dzFPaTcE0fGbHoZeVExWBip6JOFwHS6vV5pvbZnLYo Xuog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ejjCb6q7RFGex98QgUcKFdkFFuRhyJT6HKlrMbk1V7o=; b=usoik5lxgat3goDmY3IwO2Fn0l0xn1jVXeP8C2nhkDJEi/kR6F7tOrtMVMgw83OWiP wSMkcAhS0uTdnWkT35h3WXx8nSI1SVmFnHFa8bPk6Yb1hKPgiZzwdrBI5FaGco1Ay2DR UcfNr7e5RJycxd1sKv0NWqsu84Riytac+jBWwyyVlyX4y8OzcJzxQsEjW/yAkoly5eJy UMbHI7yjstU2ZEOoqLsSui8UhwOS0cwopDyUGdeHzLMOVf6c1sKnT1sWPC0e7h6hk4ii hqSBosIwtIX32O8JrryxswBPAw8uB044BgYW3O42EJmFa8lD8kjmjot74RzIWvsWjvxH ggiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NXGd+n5F; 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 l11si1563034oom.36.2020.03.12.03.14.52; Thu, 12 Mar 2020 03:15:09 -0700 (PDT) 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=NXGd+n5F; 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 S1726385AbgCLKNc (ORCPT + 99 others); Thu, 12 Mar 2020 06:13:32 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:43931 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725978AbgCLKNc (ORCPT ); Thu, 12 Mar 2020 06:13:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584008010; 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=ejjCb6q7RFGex98QgUcKFdkFFuRhyJT6HKlrMbk1V7o=; b=NXGd+n5FipH+PEq3N9pHJqE9ufgennMjqzYqRvSPUcQcVsAEjMwBh4h2EVxgDwaTr1in6E oILGQ5f47lETu7LrHS8fv4O3P8iBOFLbSJtPottSPDLNddAFbu6KvL/26OM4tJRJWs8Dh8 LqpZ227xH1MiDMZP7zblZE5BVOPjrd8= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-256-8riPDHsBPZ2kGdMZ0nqG3Q-1; Thu, 12 Mar 2020 06:13:28 -0400 X-MC-Unique: 8riPDHsBPZ2kGdMZ0nqG3Q-1 Received: by mail-ed1-f70.google.com with SMTP id ck15so4421482edb.6 for ; Thu, 12 Mar 2020 03:13:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ejjCb6q7RFGex98QgUcKFdkFFuRhyJT6HKlrMbk1V7o=; b=fJFfDTYuLHUT8Z47C1oVbXm/Q52pmsHFAtHU6/imUu3vIuGAGfTfbsxpWiyFcieNTO kgk6oS72sIUSjh7Mrbk+OA80dXy+RuHYUa84sBgQ+P3M+kBWVE5pYdsIfNfaPJ09XMho DwiQ2WPWGGunTD5LhVcXeEllqGTOVhQzY7N3QKvXRlBycm/pTgrf7e2zvNEPa2+ZEOVU 1fjx5grebefdSR4W8vLwgQ9j5iE9EnWCVLlm/mefGZmVnKpmtOwu35LvUVDnGv02XpJt SrrzYOeJieSJQW+ChULJ5V5dQ8bBKphcR1JF1wKH86Kdx3/JevT/wDlnIw7VuRhJQuF0 ndkA== X-Gm-Message-State: ANhLgQ32y8JioTSwDK566PnptFpe60OzNEgdEjF9ttLDHkC5qMVWsXqY RzdF3zeKSKhRBiMlTCn/JpjeAAkC1L7NToScsz7+SqmGj8eCG1F7eeAGdZ8b0ZGrj7vDtRWdrxF GcLx220m/6VTEAN0JqRX2Z1gaGGIpvBX5OI+5XKUW X-Received: by 2002:a17:906:52c9:: with SMTP id w9mr6171796ejn.70.1584008007539; Thu, 12 Mar 2020 03:13:27 -0700 (PDT) X-Received: by 2002:a17:906:52c9:: with SMTP id w9mr6171780ejn.70.1584008007278; Thu, 12 Mar 2020 03:13:27 -0700 (PDT) MIME-Version: 1.0 References: <20200312135457.6891749e@canb.auug.org.au> In-Reply-To: <20200312135457.6891749e@canb.auug.org.au> From: Matteo Croce Date: Thu, 12 Mar 2020 11:12:51 +0100 Message-ID: Subject: Re: linux-next: build failure after merge of the block tree To: Stephen Rothwell Cc: Jens Axboe , Linux Next Mailing List , Linux Kernel Mailing List , "Martin K. Petersen" , Coly Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 12, 2020 at 3:55 AM Stephen Rothwell wrote: > > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from fs/erofs/xattr.h:10, > from fs/erofs/inode.c:7: > fs/erofs/inode.c: In function 'erofs_read_inode': > fs/erofs/internal.h:197:31: error: 'PAGE_SECTORS_SHIFT' undeclared (first use in this function); did you mean 'PA_SECTION_SHIFT'? > 197 | #define LOG_SECTORS_PER_BLOCK PAGE_SECTORS_SHIFT > | ^~~~~~~~~~~~~~~~~~ > fs/erofs/inode.c:122:30: note: in expansion of macro 'LOG_SECTORS_PER_BLOCK' > 122 | inode->i_blocks = nblks << LOG_SECTORS_PER_BLOCK; > | ^~~~~~~~~~~~~~~~~~~~~ > fs/erofs/internal.h:197:31: note: each undeclared identifier is reported only once for each function it appears in > 197 | #define LOG_SECTORS_PER_BLOCK PAGE_SECTORS_SHIFT > | ^~~~~~~~~~~~~~~~~~ > fs/erofs/inode.c:122:30: note: in expansion of macro 'LOG_SECTORS_PER_BLOCK' > 122 | inode->i_blocks = nblks << LOG_SECTORS_PER_BLOCK; > | ^~~~~~~~~~~~~~~~~~~~~ > In file included from fs/erofs/data.c:7: > fs/erofs/data.c: In function 'erofs_read_raw_page': > fs/erofs/internal.h:197:31: error: 'PAGE_SECTORS_SHIFT' undeclared (first use in this function); did you mean 'PA_SECTION_SHIFT'? > 197 | #define LOG_SECTORS_PER_BLOCK PAGE_SECTORS_SHIFT > | ^~~~~~~~~~~~~~~~~~ > fs/erofs/data.c:226:4: note: in expansion of macro 'LOG_SECTORS_PER_BLOCK' > 226 | LOG_SECTORS_PER_BLOCK; > | ^~~~~~~~~~~~~~~~~~~~~ > fs/erofs/internal.h:197:31: note: each undeclared identifier is reported only once for each function it appears in > 197 | #define LOG_SECTORS_PER_BLOCK PAGE_SECTORS_SHIFT > | ^~~~~~~~~~~~~~~~~~ > fs/erofs/data.c:226:4: note: in expansion of macro 'LOG_SECTORS_PER_BLOCK' > 226 | LOG_SECTORS_PER_BLOCK; > | ^~~~~~~~~~~~~~~~~~~~~ > fs/erofs/data.c: In function 'erofs_bmap': > fs/erofs/internal.h:197:31: error: 'PAGE_SECTORS_SHIFT' undeclared (first use in this function); did you mean 'PA_SECTION_SHIFT'? > 197 | #define LOG_SECTORS_PER_BLOCK PAGE_SECTORS_SHIFT > | ^~~~~~~~~~~~~~~~~~ > fs/erofs/data.c:351:16: note: in expansion of macro 'LOG_SECTORS_PER_BLOCK' > 351 | if (block >> LOG_SECTORS_PER_BLOCK >= blks) > | ^~~~~~~~~~~~~~~~~~~~~ > > Caused by commit > > 61c7d3d5e015 ("block: refactor duplicated macros") > > I have used the block tree from next-20200311 for today. > > -- > Cheers, > Stephen Rothwell Hi, I was building a kernel without erofs. Just including include/linux/blkdev.h will fix it, should I amend the patch or send a fix? Cheers, -- Matteo Croce per aspera ad upstream