Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9883EC61DA4 for ; Sun, 19 Feb 2023 14:50:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbjBSOuh convert rfc822-to-8bit (ORCPT ); Sun, 19 Feb 2023 09:50:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbjBSOuf (ORCPT ); Sun, 19 Feb 2023 09:50:35 -0500 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3761E395; Sun, 19 Feb 2023 06:50:33 -0800 (PST) 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 1pTkrn-000hkp-3v; Sun, 19 Feb 2023 15:40:39 +0100 Received: from dynamic-078-055-104-030.78.55.pool.telefonica.de ([78.55.104.30] helo=[192.168.1.11]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pTkrm-001AiQ-TO; Sun, 19 Feb 2023 15:40:39 +0100 Message-ID: <3c1b53fb670467b90138aaf3ef29bf235c2b4ffa.camel@physik.fu-berlin.de> 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: Sun, 19 Feb 2023 15:40:37 +0100 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.46.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 78.55.104.30 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 > --- Thanks for your patches! I'm still waiting for my kernel.org account to be created, so I can set up my own linux-sh tree. I hope that happens next week. There are already some patches piling up. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913