From mboxrd@z Thu Jan 1 00:00:00 1970 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 DC89BEB64D9 for ; Tue, 4 Jul 2023 05:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbjGDFaU convert rfc822-to-8bit (ORCPT ); Tue, 4 Jul 2023 01:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGDF34 (ORCPT ); Tue, 4 Jul 2023 01:29: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 2DC75BD; Mon, 3 Jul 2023 22:29: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 1qGYbp-000KjL-Qa; Tue, 04 Jul 2023 07:29:53 +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 1qGYbp-000dKf-JP; Tue, 04 Jul 2023 07:29:53 +0200 Message-ID: <4cd47aa1baed1ba9d2d995fdd96d4a9756c8cc17.camel@physik.fu-berlin.de> Subject: Re: [PATCH 3/4] sh: refactor header include path addition From: John Paul Adrian Glaubitz To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Randy Dunlap , Rich Felker , Yoshinori Sato , linux-sh@vger.kernel.org Date: Tue, 04 Jul 2023 07:29:52 +0200 In-Reply-To: <20230219141555.2308306-3-masahiroy@kernel.org> References: <20230219141555.2308306-1-masahiroy@kernel.org> <20230219141555.2308306-3-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 Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org On Sun, 2023-02-19 at 23:15 +0900, Masahiro Yamada wrote: > Shorten the code. No functional change intended. > > Signed-off-by: Masahiro Yamada > --- > > arch/sh/Makefile | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/sh/Makefile b/arch/sh/Makefile > index 0625796cfe7f..f1c6aace8acb 100644 > --- a/arch/sh/Makefile > +++ b/arch/sh/Makefile > @@ -145,8 +145,7 @@ cpuincdir-y += cpu-common # Must be last > > drivers-y += arch/sh/drivers/ > > -cflags-y += $(foreach d, $(cpuincdir-y), -I $(srctree)/arch/sh/include/$(d)) \ > - $(foreach d, $(machdir-y), -I $(srctree)/arch/sh/include/$(d)) > +cflags-y += $(addprefix -I $(srctree)/arch/sh/include/, $(cpuincdir-y) $(machdir-y)) > > KBUILD_CFLAGS += -pipe $(cflags-y) > KBUILD_CPPFLAGS += $(cflags-y) Reviewed-by: John Paul Adrian Glaubitz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913