Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27175211rwd; Mon, 3 Jul 2023 22:29:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMfmHX3alUAaGHuKk0PbNRbw7/FlGSUf+zFPNDH+UPd2BlSJaXS+dm/Dq0E5QEfHkFyMLy X-Received: by 2002:a05:6871:550:b0:1b0:533f:ee0c with SMTP id t16-20020a056871055000b001b0533fee0cmr13904796oal.16.1688448570171; Mon, 03 Jul 2023 22:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688448570; cv=none; d=google.com; s=arc-20160816; b=D/uWG8n+S3S+ZtPpZ9abxHCbwiGdSqYzpq2iCXwzevnqSPRfUML+bLgNivFTObgu4+ qhhSjB9F8vHQ3aD1e9ZuNGPVcuqG/hqg08qgkY/u0qGsyYat4t+hzBn5nWlzknNi7nye sBTy9LTEEIf7d2DzjgeybA7Fvu2vX2Q+QcH67PE1Gj7oNw8c2nr+gibV/7fNWEfVbUR/ PKG47JKTCKT6R4HPQdK9stY3AWtVELKvgk/clnUS2weIGo2/N5u9iVVNkki97rfL8hSO 3H3fN3Nhyf/c3kg9ETgEARvTthmnDAS/RXNR3ks9PsAJG4NgQhAMzf2BbVZSsvNQzexz oAnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=7cQm7xEzeA1tRF8UwpwfcJHvIQoyXgXwoJs0JPnzUI4=; fh=HpKr7X8FjXUsPimuJSNPoNb3+d2I8s3pip6R/++GEbc=; b=mxFdZM3dyKV19rTejpiwqxeUG6oB0mt35tEaqi7DoWeL9dCV93LrazbxR6+bsjKIpg Mz2c5o36GMP5MSn9YteFkhiobdrF/QHOhjT0vARPkTjzpoHbHYFHz1eN8ZcaufoNJTRq oLbDpAlkitjKR/438rZMcThuwi8JWKfoAfdLA7G6JnkrbrwBaEYaDj6EHtmmp6ullbNE 1nKZBySHTKabzfQ2LD+Tf+Yvuc8G5NycP+Z8ERVzM/gxh6SpEsWkwtHRmoKNugSQ0xug nLtYxgXmQG1Ag9JcIf5KOh1BVomb5njO9bejs+ijEoxOE7U2bMOXhuJgktO3REYNlBKk CtBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj6-20020a17090b3e8600b00263220254e2si14741640pjb.41.2023.07.03.22.29.17; Mon, 03 Jul 2023 22:29:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbjGDF05 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Jul 2023 01:26:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjGDF04 (ORCPT ); Tue, 4 Jul 2023 01:26:56 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3623DBD; Mon, 3 Jul 2023 22:26:55 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qGYYu-000K0B-3G; Tue, 04 Jul 2023 07:26:52 +0200 Received: from p57bd997f.dip0.t-ipconnect.de ([87.189.153.127] helo=suse-laptop.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qGYYt-000d1u-S1; Tue, 04 Jul 2023 07:26:52 +0200 Message-ID: Subject: Re: [PATCH 1/4] sh: fix -Wmissing-include-dirs warnings for various platforms From: John Paul Adrian Glaubitz To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Randy Dunlap , kernel test robot , Rich Felker , Yoshinori Sato , linux-sh@vger.kernel.org Date: Tue, 04 Jul 2023 07:26:51 +0200 In-Reply-To: <20230219141555.2308306-1-masahiroy@kernel.org> References: <20230219141555.2308306-1-masahiroy@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.3 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.153.127 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro! On Sun, 2023-02-19 at 23:15 +0900, Masahiro Yamada wrote: > The 0day bot reports a lot of warnings (or errors due to CONFIG_WERROR) > like this: > > cc1: error: arch/sh/include/mach-hp6xx: No such file or directory [-Werror=missing-include-dirs] > > Indeed, arch/sh/include/mach-hp6xx does not exist. > > -Wmissing-include-dirs is W=1 warning, but it may be annoying > when CONFIG_BTRFS_FS is enabled because fs/btrfs/Makefile > unconditionally adds this warning option. > > arch/sh/Makefile defines machdir-y for two purposes: > > - Build platform code in arch/sh/boards/mach-*/ > - Add arch/sh/include/mach-*/ to the header search path > > For the latter, some platforms use arch/sh/include/mach-common/ instead > of having its own arch/sh/include/mach-*/. > > Drop unneeded machdir-y to not include non-existing include directory. > > To build arch/sh/boards/mach-*/, use the standard obj-y syntax in > arch/sh/boards/Makefile. > > Reported-by: kernel test robot > Link: https://lore.kernel.org/oe-kbuild-all/202302190641.30VVXnPb-lkp@intel.com/ > Signed-off-by: Masahiro Yamada > --- > > arch/sh/Makefile | 18 +----------------- > arch/sh/boards/Makefile | 19 +++++++++++++++++++ > 2 files changed, 20 insertions(+), 17 deletions(-) > > diff --git a/arch/sh/Makefile b/arch/sh/Makefile > index 5c8776482530..a9cad5137f92 100644 > --- a/arch/sh/Makefile > +++ b/arch/sh/Makefile > @@ -116,31 +116,15 @@ export ld-bfd > > # Mach groups > machdir-$(CONFIG_SOLUTION_ENGINE) += mach-se > -machdir-$(CONFIG_SH_HP6XX) += mach-hp6xx > machdir-$(CONFIG_SH_DREAMCAST) += mach-dreamcast > machdir-$(CONFIG_SH_SH03) += mach-sh03 > -machdir-$(CONFIG_SH_RTS7751R2D) += mach-r2d > -machdir-$(CONFIG_SH_HIGHLANDER) += mach-highlander > machdir-$(CONFIG_SH_MIGOR) += mach-migor > -machdir-$(CONFIG_SH_AP325RXA) += mach-ap325rxa > machdir-$(CONFIG_SH_KFR2R09) += mach-kfr2r09 > machdir-$(CONFIG_SH_ECOVEC) += mach-ecovec24 > -machdir-$(CONFIG_SH_SDK7780) += mach-sdk7780 > machdir-$(CONFIG_SH_SDK7786) += mach-sdk7786 > machdir-$(CONFIG_SH_X3PROTO) += mach-x3proto > -machdir-$(CONFIG_SH_SH7763RDP) += mach-sh7763rdp > -machdir-$(CONFIG_SH_SH4202_MICRODEV) += mach-microdev > machdir-$(CONFIG_SH_LANDISK) += mach-landisk > -machdir-$(CONFIG_SH_LBOX_RE2) += mach-lboxre2 > -machdir-$(CONFIG_SH_RSK) += mach-rsk > - > -ifneq ($(machdir-y),) > -core-y += $(addprefix arch/sh/boards/, \ > - $(filter-out ., $(patsubst %,%/,$(machdir-y)))) > -endif > - > -# Common machine type headers. Not part of the arch/sh/boards/ hierarchy. > -machdir-y += mach-common > +machdir-y += mach-common > > # Companion chips > core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ > diff --git a/arch/sh/boards/Makefile b/arch/sh/boards/Makefile > index 4002a22a7c40..b57219436ace 100644 > --- a/arch/sh/boards/Makefile > +++ b/arch/sh/boards/Makefile > @@ -18,3 +18,22 @@ obj-$(CONFIG_SH_APSH4A3A) += board-apsh4a3a.o > obj-$(CONFIG_SH_APSH4AD0A) += board-apsh4ad0a.o > > obj-$(CONFIG_SH_DEVICE_TREE) += of-generic.o > + > +obj-$(CONFIG_SOLUTION_ENGINE) += mach-se/ > +obj-$(CONFIG_SH_HP6XX) += mach-hp6xx/ > +obj-$(CONFIG_SH_DREAMCAST) += mach-dreamcast/ > +obj-$(CONFIG_SH_SH03) += mach-sh03/ > +obj-$(CONFIG_SH_RTS7751R2D) += mach-r2d/ > +obj-$(CONFIG_SH_HIGHLANDER) += mach-highlander/ > +obj-$(CONFIG_SH_MIGOR) += mach-migor/ > +obj-$(CONFIG_SH_AP325RXA) += mach-ap325rxa/ > +obj-$(CONFIG_SH_KFR2R09) += mach-kfr2r09/ > +obj-$(CONFIG_SH_ECOVEC) += mach-ecovec24/ > +obj-$(CONFIG_SH_SDK7780) += mach-sdk7780/ > +obj-$(CONFIG_SH_SDK7786) += mach-sdk7786/ > +obj-$(CONFIG_SH_X3PROTO) += mach-x3proto/ > +obj-$(CONFIG_SH_SH7763RDP) += mach-sh7763rdp/ > +obj-$(CONFIG_SH_SH4202_MICRODEV)+= mach-microdev/ > +obj-$(CONFIG_SH_LANDISK) += mach-landisk/ > +obj-$(CONFIG_SH_LBOX_RE2) += mach-lboxre2/ > +obj-$(CONFIG_SH_RSK) += mach-rsk/ Can you fix the tabs so that the mach directories are all aligned? Other than that: Reviewed-by: John Paul Adrian Glaubitz Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913