Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp421513pxj; Fri, 14 May 2021 06:45:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkNf5iWlCGjW72dqwZeZs4SyBp1X0I1eraUpiZ1fa88PJV8BkhO4+ORzjxikQDqJap/qjk X-Received: by 2002:a05:6e02:104b:: with SMTP id p11mr2789170ilj.275.1620999915248; Fri, 14 May 2021 06:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620999915; cv=none; d=google.com; s=arc-20160816; b=yMQuG/1+ID4H0yXPAiPThCYuoJG+v3IRHjcqe21Mp5WzNq/4UmVWAqV2h7Rd5BPXGs 4Q7o36UytN9u5JMKVh0kUIv17bfn/4BYJ+4qzOB6/OBRwERYEcEJmGhqfu+drIxmdEyE LP32LgasyCQzIW3RT8N+lD5cZ2AO/F1cGeBat7Z/CQItRvpGf8nfY0CJQy2Y8q67UNfQ MUMydmyDOSThUBJFjtyPVVG/suMlCCVeZhVA4oRbC6unp1F93C32TcyRqgLYFaK+us68 4LGoy7/Lx9f2W8z+APPmbZq7L8bnTDz1QuDZCUgJCd+7k27Q2DdvOz1lezBfkBYuONQi V+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LpbN0oYS5OyfBX8beeqIIaOsFrQnrs8M3miaysU+jMg=; b=gg/BlNuE3ErgmEn9LK1IYgDEMWEOVqXXGlEBwb1h5cycuOk9W2jTlZe6h68KEZLqj+ sBtEWSQnk0kgx7eOkMvIgE3onaIBhdnv1nXcQw5hyrydYLZcOFWq+QKazfub+szmcm4l zNbFTyGwjsYOde1Whziu3qr7pKQ1zk9Kq4jW5zoRnXp/+Lb0he0ddeHUprQGZP4h5K9y g2uTaUT+VycBFJ4l25a0/nOQ4QLkLoIb6QmxUAQ+UINfoMyszsGB/K3O2pIbhR6Te+rz 98dWJpVtnnkKh8EaDR88Idq/uzQnKoq8ukVpJ0CEQNDab88g6pfd4Z33MDaNwm3Tv1US KPqA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si6684853ilc.30.2021.05.14.06.45.02; Fri, 14 May 2021 06:45:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbhENFfV (ORCPT + 99 others); Fri, 14 May 2021 01:35:21 -0400 Received: from ozlabs.ru ([107.174.27.60]:54794 "EHLO ozlabs.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhENFfU (ORCPT ); Fri, 14 May 2021 01:35:20 -0400 Received: from fstn1-p1.ozlabs.ibm.com. (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id DADC4AE80046; Fri, 14 May 2021 01:33:36 -0400 (EDT) From: Alexey Kardashevskiy To: linuxppc-dev@lists.ozlabs.org Cc: Alexey Kardashevskiy , linux-kernel@vger.kernel.org, Michael Ellerman , Masahiro Yamada Subject: [PATCH kernel] powerpc/makefile: Remove flag duplicates when generating vdso linker scripts Date: Fri, 14 May 2021 15:33:34 +1000 Message-Id: <20210514053334.653596-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cmd_cpp_lds_S rule already has -P and -U$(ARCH) so there is no need in duplicating these, clean that up. Since only -C is left and scripts/Makefile.build have -C removed since commit 5cb0512c02ec ("Kbuild: don't pass "-C" to preprocessor when processing linker scripts") this follows the lead and removes CPPFLAGS_vdso(32|64).lds altogether. Signed-off-by: Alexey Kardashevskiy --- scripts/checkpatch.pl complains as it does not handle quotes in the commit subject line well. oh well. --- arch/powerpc/kernel/vdso32/Makefile | 1 - arch/powerpc/kernel/vdso64/Makefile | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/powerpc/kernel/vdso32/Makefile b/arch/powerpc/kernel/vdso32/Makefile index 7d9a6fee0e3d..7420e88d5aa3 100644 --- a/arch/powerpc/kernel/vdso32/Makefile +++ b/arch/powerpc/kernel/vdso32/Makefile @@ -44,7 +44,6 @@ asflags-y := -D__VDSO32__ -s obj-y += vdso32_wrapper.o targets += vdso32.lds -CPPFLAGS_vdso32.lds += -P -C -Upowerpc # link rule for the .so file, .lds has to be first $(obj)/vdso32.so.dbg: $(src)/vdso32.lds $(obj-vdso32) $(obj)/vgettimeofday.o FORCE diff --git a/arch/powerpc/kernel/vdso64/Makefile b/arch/powerpc/kernel/vdso64/Makefile index 2813e3f98db6..fb118630c334 100644 --- a/arch/powerpc/kernel/vdso64/Makefile +++ b/arch/powerpc/kernel/vdso64/Makefile @@ -30,7 +30,6 @@ ccflags-y := -shared -fno-common -fno-builtin -nostdlib \ asflags-y := -D__VDSO64__ -s targets += vdso64.lds -CPPFLAGS_vdso64.lds += -P -C -U$(ARCH) # link rule for the .so file, .lds has to be first $(obj)/vdso64.so.dbg: $(src)/vdso64.lds $(obj-vdso64) $(obj)/vgettimeofday.o FORCE -- 2.30.2