Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp553572ybh; Thu, 12 Mar 2020 06:59:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu2jI48VlXFV4KpKw47RSkQthHuTrPwzaKTnfCH9Xh8oeLyG+wwKx0cOH9d8IAcwIvEnQN5 X-Received: by 2002:a05:6808:3d0:: with SMTP id o16mr2566611oie.12.1584021542361; Thu, 12 Mar 2020 06:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584021542; cv=none; d=google.com; s=arc-20160816; b=ZxJI9H034Uz1Ra2EZEgdL22J8vRVSbYVXFi1cGG6C66fU5cMCT6Yx22riSnAP3aPn0 DuPqIDCBgiVljZOajE8x5UtMpzk6Nyl7UwYmJrGzOKWYqSXJyojJpyAD+BunbUjUqGIl JqaWL9rHCOgYOUSLEHDo24nEXnttgsAWlKJPAHGo396N5f54Y1yakLi3ER9bKzISxkVm 0cwK2BeZbXdK4HnApQ8i0ESa7TxxEx+OHCYIYqFkifdKVtOjb6t40HDIq38Kk/j+qywY Einh6BH+9CpnrFomqGiWYe/NwT3gQQwo5e2k7E/yli1gCfAG10bCbiD8TnSRcPnonvYY ZNMQ== 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=zN4QMURyGwKx3cAee714OPFc7P9COefkkQIboHHsPiY=; b=ikHdUgNIW3FEwRzKbrNdJR5WgNIoqNi0l3MfMMLxp9BsDZA3WwVguPD42tQriYHHQc 3Ue/5EKBJHjDFLhOvjYB/1T35eNPK16xY9a5HEb8arAhIRAlem4m+xTxB23l8EmFnLmq CA1ZKGYZdCMbW2NZlAMQymel/FvSgFom8EhvNt0zWL8WYUNuRUjGMjFzvlS//s8HMCNo tIUfwN2YWStygV7fy/DaOrwA3Zjo1DPPVJug2iAxL6pwYKcLAOzyC0itSVFFl0xb+iCW cVyXDAALET1yIhj4HGFiJKR/+FkrW6uOnoIYE18DWXYlymFBMMINU+DLct6yumfvk7y6 bQPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hm6Gv9l1; 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 q197si712090oic.262.2020.03.12.06.58.48; Thu, 12 Mar 2020 06:59:02 -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=hm6Gv9l1; 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 S1727468AbgCLN54 (ORCPT + 99 others); Thu, 12 Mar 2020 09:57:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:22824 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727007AbgCLN5z (ORCPT ); Thu, 12 Mar 2020 09:57:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584021474; 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=zN4QMURyGwKx3cAee714OPFc7P9COefkkQIboHHsPiY=; b=hm6Gv9l1pi08A0UDjESPx7HeMIZimNrTDTOGWuKcT3W7wnKbSP0VyysV1gR+uI61PAymfD DpdawGkUdEEG2M/kxz/2RuZikjkhc7JMXhtQ2K+D04b+1Fxof0mtdkKjFOjB1lu5eYD8qv ySKok9pOL0wQkSaQnOI73kIPGXiAV10= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-458-pecU54h9PLqZM_2sUAaOxg-1; Thu, 12 Mar 2020 09:57:52 -0400 X-MC-Unique: pecU54h9PLqZM_2sUAaOxg-1 Received: by mail-ed1-f71.google.com with SMTP id p21so4835861edr.22 for ; Thu, 12 Mar 2020 06:57:52 -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=zN4QMURyGwKx3cAee714OPFc7P9COefkkQIboHHsPiY=; b=LS2liYo9w+py7NbNsxN4OdRsOuBM0FxuGbrfHRG6j3ccmIBQ/ZvwWr/Bdhb6AqdCIo oDGhU855fiG9rW6MrPwiA0cmnvJ7Bfe0/5mWS9rbd5JSOytQckpEu9rp/Z0glbECwFUo kCNXsSughXl6/tZGw5JZ3N4/jvMWEKWZQZwMO7H5plY/1VIRGV+3vQbj8bqY5KK1cBcA c0L6s/k1tK+gAobA2JF9pwA0Z1fjGSHfoQdgVinPDTMSoWpC+iho2npaVVcO7R6eZ/C5 36yoNoYOOCIqXOtsZRXhDIPUnbhVrHKjjarCiJhw6rO2diWQBAzEaLkBQsUZT2CegsZO EWfQ== X-Gm-Message-State: ANhLgQ1A7+cSZ6WpAqsRfvKKTXZ9UzbwYujhc0EynLyS3Xu6+Htygw47 0JzLqbWafCKPeQB/dvSuegtWrmDxfka6LQGNfP7hTevO2CRFr1mBUjxqjlLATBzxyfwDbWukFh3 x7mXOX1ZX1ucAhE/6yBBFkA1ETDkdnpvYpbJ0swMN X-Received: by 2002:a17:906:5612:: with SMTP id f18mr6523581ejq.69.1584021471326; Thu, 12 Mar 2020 06:57:51 -0700 (PDT) X-Received: by 2002:a17:906:5612:: with SMTP id f18mr6523556ejq.69.1584021470975; Thu, 12 Mar 2020 06:57:50 -0700 (PDT) MIME-Version: 1.0 References: <20200312135457.6891749e@canb.auug.org.au> In-Reply-To: From: Matteo Croce Date: Thu, 12 Mar 2020 14:57:14 +0100 Message-ID: Subject: Re: linux-next: build failure after merge of the block tree To: Jens Axboe Cc: Stephen Rothwell , 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 2:07 PM Jens Axboe wrote: > > On 3/12/20 4:12 AM, Matteo Croce wrote: > > 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? > > I'll drop the patch. I was worried about the patch to begin with, > something like this really should be done through cocinelle so there's > less concern of a stupid mistake. > > On top of that, somewhat miffed that you'd have a v3 of a patch, yet > haven't bothered to even _compile_ the parts you touch. That's > inexcusable. > > -- > Jens Axboe > I apologize, I was using a config with all in it but erofs, which was moved from staging in 5.4: $ grep -e BRD -e ZRAM -e DAX -e MD_RAID -e SDHCI= -e EXT2 -e SWAP -e DM_RAID -e EROFS .config CONFIG_SWAP=y # CONFIG_MEMCG_SWAP is not set CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANTS_THP_SWAP=y CONFIG_THP_SWAP=y # CONFIG_FRONTSWAP is not set CONFIG_MD_RAID0=y CONFIG_MD_RAID1=y CONFIG_MD_RAID10=y CONFIG_MD_RAID456=y CONFIG_DM_RAID=y CONFIG_MMC_SDHCI=y CONFIG_DAX=y CONFIG_DEV_DAX=y CONFIG_EXT2_FS=y # CONFIG_EXT2_FS_XATTR is not set # CONFIG_FS_DAX is not set # CONFIG_EROFS_FS is not set I'm running coccinelle with this change appended, and also an all allyesconfig --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -16,6 +16,7 @@ #include #include #include +#include #include "erofs_fs.h" Regards, -- Matteo Croce per aspera ad upstream