Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2507342ybg; Fri, 31 Jul 2020 01:32:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5wry0ntLHCHPbslyM3pbuJUT0rBF82GMCBPwjKCh4lynRdv7hWU5gsZ21tRDsGai3GWdT X-Received: by 2002:a17:906:46c6:: with SMTP id k6mr2764920ejs.230.1596184321607; Fri, 31 Jul 2020 01:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596184321; cv=none; d=google.com; s=arc-20160816; b=pYgGwvdxaI5NRk5Q4kC7vIuNVgycF19O4B1fw37MlBZcHhyj5unreZn9Tr5AT9+sf0 wAdwluFcNs6a6hZsfP6Z1HBzk0klM5pzNK9Ne+MiLqJHunVmnk3Y6303WDIzFEpQ1Ya8 03FMp809oqDClOTdekCVfrHPFpFL46cPGlj8UvEIUGXMHx+or/A2YqJwUZFk6IJI9U2E VJrA+xRWiuYoUm19T1Bxq1/RbLWYMhBmu5SLzqYMcDrHd0yMSQ0eKruXROTb7rzeD9i/ BBi5IDBnF05stGqtdpya/FybcIl7Zvmfmw4qU+REbXXxK3Fg77YHzDoTDQtZfmPjUJyz l5mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gfLaTJi3HvuSfdEe5h9GZbRHZDIs/RpxGyTSvuwTLOA=; b=fP4Go4BfC7oV0CspmUwfnDjaR135Sx52vlORBMSidaGTq4vSosrO3IGCqFswtdnP8b LJjKeQff4svAy2/ICUXcwU6TxwpwZxzuTVgEti9i0+Fd9BPpoJ5m+4B6NjTvrvbuLWP6 gIRLe3PBhXoClJ5zrURyB2xEkiNX2y+cwbtUQWMGchfN8b4hfNNrcMJBYiNJCtnGg3fX 2oZdXXK8COmFEg8OTljpcuNyL625R4mXua/7uJDB7FxdyIpMi0eGZAWccKFLzKhlYTSZ EH6x/O7f43KsPa0E8FNd5rnKP5NbFyks6Zyom/ggqkXOGvj1KaR88B4hRTZ7hKIV+3Ub jHJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dN9reR2J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si4556485ejx.53.2020.07.31.01.31.39; Fri, 31 Jul 2020 01:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dN9reR2J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731603AbgGaIbL (ORCPT + 99 others); Fri, 31 Jul 2020 04:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730233AbgGaIbJ (ORCPT ); Fri, 31 Jul 2020 04:31:09 -0400 Received: from mail-ua1-x944.google.com (mail-ua1-x944.google.com [IPv6:2607:f8b0:4864:20::944]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AF14C061574 for ; Fri, 31 Jul 2020 01:31:09 -0700 (PDT) Received: by mail-ua1-x944.google.com with SMTP id p27so5223727uaa.12 for ; Fri, 31 Jul 2020 01:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gfLaTJi3HvuSfdEe5h9GZbRHZDIs/RpxGyTSvuwTLOA=; b=dN9reR2Jx4AJzk00vuPel0cO9u2V2RtbysmbLrr08J0dkl3trDKyBVMKXbAe0xcy0O CYngVLfEaCZqSXiuRkbdvlvAjOZEiLZD/37ccGgDDkqSA1jPHmToRQ7wEANvm9Or9a6X HtsPExfwSZBYUyNwXdNOOFWmYroM2T92pBzsLYP5Wvw0t6muWWk7o3Mig1BO6PeDIWqA Iadifv1FqyIKpqzTQ7vXz/VPMxzXRqPm32TSFzpAh4F9Lwuis2IxmoBFCQuYE3XMZklQ rO+nG8Z7aHHRDGVpPQ8KYcP2QK+5AGZMK7WDuUeh6WluEIwN2Yv7vTmzYbbr3toRRYTc K57Q== 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:content-transfer-encoding; bh=gfLaTJi3HvuSfdEe5h9GZbRHZDIs/RpxGyTSvuwTLOA=; b=YXRd6JHDG5ntrFaTl+VWfwRofpeZ8zcZc7yHFKCNdEpwj7hybA0rkCXbd4q1VnJnI2 U4Qy6gT4xq9BkOdeVZtkb+aYMODkwuI4UuRKoK5Deh+/FRaRP/7sTpMayBhbCFwQhE/y YbyT2tEEnDWV7m5du6oVDG6mw7T1pqh57T5fD4cmru+A2PWf+mRh2CgJj45msGkL1+nX Hia0fYFhiIvo521CnFJvcidcZ5vuuxGHmHLbD+IgBVU52BNcqiLlSf0LdKXCx3GcOSyq hzc1xFxzqYI4ZZ18Y7by7Iae90JOl961G3rzrn6sdifHsWY1SVKbKJVNfI1jjFDh1O3h JoIw== X-Gm-Message-State: AOAM533lEWK+dOfjOb1BgMHMrRG/syL+9tvTPIHvZQ311TcUbMPK98zh RdYW3gHzeGHf4BZo4om2XFr1dinUxcxYcN5oaG7Z5Qqjsei44Q== X-Received: by 2002:ab0:5a72:: with SMTP id m47mr1764468uad.86.1596184268349; Fri, 31 Jul 2020 01:31:08 -0700 (PDT) MIME-Version: 1.0 References: <20200730214659.0fbfdfc4@canb.auug.org.au> <72b073ba-ee41-1a1c-ce6c-ffd8b5936b09@hisilicon.com> <20200731140842.46abe589@canb.auug.org.au> In-Reply-To: <20200731140842.46abe589@canb.auug.org.au> From: Naresh Kamboju Date: Fri, 31 Jul 2020 14:00:57 +0530 Message-ID: Subject: Re: linux-next: Tree for Jul 30 [build failure on arm64] To: Stephen Rothwell , Christoph Hellwig Cc: Shaokun Zhang , Linux Next Mailing List , Linux Kernel Mailing List , Al Viro , Arnd Bergmann , lkft-triage@lists.linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 Jul 2020 at 09:38, Stephen Rothwell wrote= : > > Hi all, > > On Fri, 31 Jul 2020 10:46:52 +0800 Shaokun Zhang wrote: > > > > There's a build failure on arm64: > > > > In file included from ./include/linux/compat.h:17:0, > > from ./arch/arm64/include/asm/stat.h:13, > > from ./include/linux/stat.h:6, > > from ./include/linux/sysfs.h:22, > > from ./include/linux/kobject.h:20, > > from ./include/linux/of.h:17, > > from ./include/linux/irqdomain.h:35, > > from ./include/linux/acpi.h:13, > > from ./include/acpi/apei.h:9, > > from ./include/acpi/ghes.h:5, > > from ./include/linux/arm_sdei.h:8, > > from arch/arm64/kernel/asm-offsets.c:10: > > ./include/linux/fs.h: In function =E2=80=98vfs_whiteout=E2=80=99: > > ./include/linux/fs.h:1709:32: error: =E2=80=98S_IFCHR=E2=80=99 undeclar= ed (first use in this function) > > return vfs_mknod(dir, dentry, S_IFCHR | WHITEOUT_MODE, WHITEOUT_DEV); > > ^ > > ./include/linux/fs.h:1709:32: note: each undeclared identifier is repor= ted only once for each > > function it appears in > > ./include/linux/fs.h: At top level: > > ./include/linux/fs.h:1855:46: warning: =E2=80=98struct kstat=E2=80=99 d= eclared inside parameter list > > int (*getattr) (const struct path *, struct kstat *, u32, unsigned in= t); > > ^ > > ./include/linux/fs.h:1855:46: warning: its scope is only this definitio= n or declaration, which is > > probably not what you want > > ./include/linux/fs.h: In function =E2=80=98__mandatory_lock=E2=80=99: > > ./include/linux/fs.h:2325:25: error: =E2=80=98S_ISGID=E2=80=99 undeclar= ed (first use in this function) > > return (ino->i_mode & (S_ISGID | S_IXGRP)) =3D=3D S_ISGID; > > ^ > > ./include/linux/fs.h:2325:35: error: =E2=80=98S_IXGRP=E2=80=99 undeclar= ed (first use in this function) > > return (ino->i_mode & (S_ISGID | S_IXGRP)) =3D=3D S_ISGID; > > ^ > > ./include/linux/fs.h: In function =E2=80=98invalidate_remote_inode=E2= =80=99: > > ./include/linux/fs.h:2588:6: error: implicit declaration of function = =E2=80=98S_ISREG=E2=80=99 > > [-Werror=3Dimplicit-function-declaration] > > if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || > > ^ > > ./include/linux/fs.h:2588:32: error: implicit declaration of function = =E2=80=98S_ISDIR=E2=80=99 > > [-Werror=3Dimplicit-function-declaration] > > if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || > > ^ > > ./include/linux/fs.h:2589:6: error: implicit declaration of function = =E2=80=98S_ISLNK=E2=80=99 > > [-Werror=3Dimplicit-function-declaration] > > S_ISLNK(inode->i_mode)) > > ^ > > ./include/linux/fs.h: In function =E2=80=98execute_ok=E2=80=99: > > ./include/linux/fs.h:2768:26: error: =E2=80=98S_IXUGO=E2=80=99 undeclar= ed (first use in this function) > > return (inode->i_mode & S_IXUGO) || S_ISDIR(inode->i_mode); > > Presumably caused by commit > > b902bfb3f0e9 ("arm64: stop using directly") I have reverted this commit b902bfb3f0e9 ("arm64: stop using directly") and rebuilt arm64 failed due to below errors/warnings. make -sk KBUILD_BUILD_USER=3DTuxBuild -C/linux -j16 ARCH=3Darm64 CROSS_COMPILE=3Daarch64-linux-gnu- HOSTCC=3Dgcc CC=3D"sccache aarch64-linux-gnu-gcc" O=3Dbuild Image # In file included from ../include/linux/stat.h:6, from ../include/linux/sysfs.h:22, from ../include/linux/kobject.h:20, from ../include/linux/of.h:17, from ../include/linux/irqdomain.h:35, from ../include/linux/acpi.h:13, from ../include/acpi/apei.h:9, from ../include/acpi/ghes.h:5, from ../include/linux/arm_sdei.h:8, from ../arch/arm64/kernel/asm-offsets.c:10: ../arch/arm64/include/asm/stat.h:20:2: error: unknown type name =E2=80=98co= mpat_u64=E2=80=99 20 | compat_u64 st_dev; | ^~~~~~~~~~ ../arch/arm64/include/asm/stat.h:31:2: error: unknown type name =E2=80=98co= mpat_u64=E2=80=99 31 | compat_u64 st_rdev; | ^~~~~~~~~~ ../arch/arm64/include/asm/stat.h:34:2: error: unknown type name =E2=80=98co= mpat_s64=E2=80=99 34 | compat_s64 st_size; | ^~~~~~~~~~ ../arch/arm64/include/asm/stat.h:36:2: error: unknown type name =E2=80=98co= mpat_u64=E2=80=99 36 | compat_u64 st_blocks; /* Number of 512-byte blocks allocated. */ | ^~~~~~~~~~ ../arch/arm64/include/asm/stat.h:47:2: error: unknown type name =E2=80=98co= mpat_u64=E2=80=99 47 | compat_u64 st_ino; | ^~~~~~~~~~ make[2]: *** [../scripts/Makefile.build:114: arch/arm64/kernel/asm-offsets.s] Error 1 - Naresh