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 X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DB7AC433DF for ; Thu, 18 Jun 2020 02:41:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AF522193E for ; Thu, 18 Jun 2020 02:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592448116; bh=ste0z3yUk+LG1qt3/ESUU8jN0ibjLxgrmCIBBS5yR60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Uc7JnuFrtMV+wu8DvMkjHDuNsvMuAEvfKA8a5xttet0M1X5F22QQ/I49igYmk97Dq 5bL9uCuIeYs0acwQGA4x//eIgF8y3qRzCkuN+syLQIouH8ncRUHk9J0A6KRRNz4u6u BplGHF8Tr9fn6jBTGTmlsmnkhE0gce955LkmUm8w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387854AbgFRClv (ORCPT ); Wed, 17 Jun 2020 22:41:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728171AbgFRBMR (ORCPT ); Wed, 17 Jun 2020 21:12:17 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BB20221924; Thu, 18 Jun 2020 01:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592442736; bh=ste0z3yUk+LG1qt3/ESUU8jN0ibjLxgrmCIBBS5yR60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=spS7tZXzjyxJUIWK829iDEK4uVxtqsMOPr3Yu0xq6ZJN7RLBmjl4HPnIObvYK8nup CwjsBoGuqDocSl3+H3EnjbAJur/TC8hNm6Ot98SwFJH+/2bEVDEh4uoW81WM11sYd4 m/TuQvnWks/n7NQD6BwpPsygzoHbpVwTX8sKlr5Q= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Nathan Chancellor , Sasha Levin , linux-um@lists.infradead.org Subject: [PATCH AUTOSEL 5.7 191/388] um: do not evaluate compiler's library path when cleaning Date: Wed, 17 Jun 2020 21:04:48 -0400 Message-Id: <20200618010805.600873-191-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200618010805.600873-1-sashal@kernel.org> References: <20200618010805.600873-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit 7e49afc03212010d0ee27532a75cfeb0125bd868 ] Since commit a83e4ca26af8 ("kbuild: remove cc-option switch from -Wframe-larger-than="), 'make ARCH=um clean' emits an error message as follows: $ make ARCH=um clean gcc: error: missing argument to '-Wframe-larger-than=' We do not care compiler flags when cleaning. Use the '=' operator for lazy expansion because we do not use LDFLAGS_pcap.o or LDFLAGS_vde.o when cleaning. While I was here, I removed the redundant -r option because it already exists in the recipe. Fixes: a83e4ca26af8 ("kbuild: remove cc-option switch from -Wframe-larger-than=") Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor [build] Signed-off-by: Sasha Levin --- arch/um/drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/um/drivers/Makefile b/arch/um/drivers/Makefile index a290821e355c..2a249f619467 100644 --- a/arch/um/drivers/Makefile +++ b/arch/um/drivers/Makefile @@ -18,9 +18,9 @@ ubd-objs := ubd_kern.o ubd_user.o port-objs := port_kern.o port_user.o harddog-objs := harddog_kern.o harddog_user.o -LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a) +LDFLAGS_pcap.o = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a) -LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a) +LDFLAGS_vde.o = $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a) targets := pcap_kern.o pcap_user.o vde_kern.o vde_user.o -- 2.25.1