From patchwork Tue Dec 11 12:01:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 153453 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp528484ljp; Tue, 11 Dec 2018 04:02:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/XYXX9bzmxv9CtStLzyQfWhcRLrZthTcKXwTeE5wW/4U1Hqog/5ecKFytB0Y0kbZEJLwJfv X-Received: by 2002:a63:507:: with SMTP id 7mr13978024pgf.411.1544529745836; Tue, 11 Dec 2018 04:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544529745; cv=none; d=google.com; s=arc-20160816; b=nao/3YKwGgebKuID0WFbxSXyjP9ovGkd7+qyWy/Ged1gCFY+Z0qzPBuLgXIA2R9T70 VHxp4rTEYQ1HZvK++FLzj4CXeSRzBvIZ4n/MCYZ/VjDNrM3mH3uJvfWwphcphk1fhxcH 4+tXl28GVWWU9KI+sN072iMtRXoKIzRa4xHHYlyUh3xaaG6Q4mGQOIi+R5v2ODEOqAHx F00xesf6dbsCOOr7jYuJ4rCteDmU2dwwusE9op5VMlSMyHMtMZGjum9Fm89TExSLnDuA xFPo1o1QcFNmB+1+ZCgG1XuCYPzAYwPFQ+LV9rjAuubHvzGYcherkLEkenNEtzoCIMCD Pw4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=JOz1NbW/eQCO86k0paK1LttJjfqJznbFcoz0vSbQd00=; b=Qiqk5+errQKkskFNn4IACVg98fBjiL6X7FHQefMZMXs0NPyIQPoY9eziT2eXlKZg6w IgyPR5xyYEzzTVw0X/TAlrHUHde1Jra/mBn5A2VE6VvvN0tccryG3W5EgqKxGAxlfM9H 4Uly33WBkzvynyszmefy6Dx47OTnmJjk2lZcgd/wETAohdvg8iIAw7rSln2hpF2Bgwd4 3WNns1bPPPjGn69Z9qg5973h33tM/6UJSsSsf0f3zt7l/5JWhjG1dZcop2PocyFYAJw2 9b+IJ+DdYplcUvHKtDmE+bmEDymYYZzfZx4pIIUsis/MsYNqSeRiW5pxoN0iLzw01/O8 7iRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2sk5z57m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si12149134pgf.450.2018.12.11.04.02.25; Tue, 11 Dec 2018 04:02:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2sk5z57m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726531AbeLKMCX (ORCPT + 31 others); Tue, 11 Dec 2018 07:02:23 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:34039 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbeLKMCL (ORCPT ); Tue, 11 Dec 2018 07:02:11 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id wBBC1w9Y007779; Tue, 11 Dec 2018 21:02:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wBBC1w9Y007779 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544529720; bh=JOz1NbW/eQCO86k0paK1LttJjfqJznbFcoz0vSbQd00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2sk5z57mVCjmkomfBvYnN4HY9u1Z9qK42vbmwRGKzhYsKtgJwuGmA23xdYVI6ozzq 8jn1BL1wYYRV6qjJH4gAJzhxAJ7zhbOfJ6XfhTfEU22Bieg2wajMYd0ugstg1Mi4JH Seb2dPu4MdPq1EIxZ8fiDMWASLtKA9c1HnHGftyTLK10lzhCFhb4oiPVZ8dNprj9hW iL7uKvOV/KGlG8CRYgDXvQe6a9dPbhzPcoac55BxeN3kOVaFjiEpMDVkzHVm13CaEZ n4oXRnonvdHwJzjvGt86gaN0t4OgIeXoKGv5Di3NLM4HgZ/NhSAz6SFRCV5S2lODf4 neT2gk4kQXtbQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] kbuild: refactor quiet_modtag Date: Tue, 11 Dec 2018 21:01:54 +0900 Message-Id: <1544529716-4917-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544529716-4917-1-git-send-email-yamada.masahiro@socionext.com> References: <1544529716-4917-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org part-of-module and quiet_modtag are set for the same targets. Define quiet_modtag based on part-of-module. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.7.4 diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 5a4fd82..f26ae45 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -98,18 +98,13 @@ modkern_cflags = \ $(if $(part-of-module), \ $(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE), \ $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL)) -quiet_modtag := $(empty) $(empty) +quiet_modtag = $(if $(part-of-module),[M], ) $(real-obj-m) : part-of-module := y $(real-obj-m:.o=.i) : part-of-module := y $(real-obj-m:.o=.s) : part-of-module := y $(real-obj-m:.o=.lst): part-of-module := y -$(real-obj-m) : quiet_modtag := [M] -$(real-obj-m:.o=.i) : quiet_modtag := [M] -$(real-obj-m:.o=.s) : quiet_modtag := [M] -$(real-obj-m:.o=.lst): quiet_modtag := [M] - quiet_cmd_cc_s_c = CC $(quiet_modtag) $@ cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $<