Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1601017pxb; Wed, 2 Feb 2022 08:26:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJya6oKldX9yH2PAy+dAeRS04P0yLLGoS2OWUg3KP7+LXBvwYJuM4oYWHCGN3ZByLrq1/4iN X-Received: by 2002:a17:906:4781:: with SMTP id cw1mr25901394ejc.264.1643819167234; Wed, 02 Feb 2022 08:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643819167; cv=none; d=google.com; s=arc-20160816; b=J1yz8C6aIUkOwxf1twqhFYPQNJ1ux7ueTHH3ljCjm1fSmmHnEV8v9NdlveRcbeSzNG m+o2VNHmJqtGKBxHCu0VjzDIsyprVmUDU7+O+7rxILgUQHxIqHtm+p8nQdSc/ixzyw4p EVI72122SifP1WsEbbcsNBjMvdKICo/ZAKeTPJnZOqxN+EZUE5xsiTdpSvmdcgznEndU dc15CpG8MH3o6jNI1L0gYVBxQk0Elj5cBAtjbfPj844w6A3jiLCc7nuTGXwvQyczdiyW 9PuzIGxkin11rS9z6npe62DP0JpwVjlwBKnIccEqd+niW09EfI2bbzNwi77V5tPns42b oMaA== 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:dkim-signature; bh=tQiYYp2ovy8Ucarz7tFQ23djX33uJSuov2w00wZV1Gw=; b=FsND7VV2gPibZSnl2Gm2yivgb8/0kdIYmuAmFIFisHwKLm9UHFv1c6sp407S1phxrB ttREQfBXjmiK2CTAadGMLfHxA7oWc6K7hg06ho34fei3Nd+/edJkEPrurDGc8zGYsHuv rq1+UrHtDv8m5Np+aqOa3jkYI3joQ4JGlW+Uai+hvpCrAr76Pj5j49slgpOmy2hpax6X xpoB/ZomhLUlSZTVAj8kvSevjezDT/4Nc6Dz/g4q1Sn4oj/08t5byQS4kCoNudfPbqQl J30YDQw1nuHtbKLIjgkHZJ1mtJReFXx4jTSQZnOlGkP1PNz9am97W505V4GsjUpYZt98 eBMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dhhd/MEA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z28si10726739ejl.19.2022.02.02.08.25.41; Wed, 02 Feb 2022 08:26:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Dhhd/MEA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbiBAV0F (ORCPT + 99 others); Tue, 1 Feb 2022 16:26:05 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:45992 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiBAV0D (ORCPT ); Tue, 1 Feb 2022 16:26:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 86B096178A; Tue, 1 Feb 2022 21:26:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97AFEC340EB; Tue, 1 Feb 2022 21:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643750762; bh=6rnbOLJWBXVcGSJXTpu5MBi3+thi4vJ8d5VSjUdberY=; h=From:To:Cc:Subject:Date:From; b=Dhhd/MEA9V36isB/2df/xB+n7aVMViQshGcJ809iMiNksJYNOM25MGq1Rjcvea6hS MDnGkplsw4bHHiimDBeTaK8F1iQLAx400U9OWtG1iggxrwBu6hEKKlLvIMFu5PPcPH HxNzWTOeR8kR98kFxKzxdLm1Gi3snkwL5ySOEhyLIeeiZQM3anwFcfopWk/CfDiloL GlW5F4qHDt8x4xAlQDs1EselJlOjS+gzEX8YAiJXYaTXkEQ2iEDxAcppHH7m/bR5vN tTIIaq/mJC4jkTYfi+CoDXt4EAAT3K+IqsPcJkyFc19cfEFQhQ87+yJMFO/U0GXXzD 6gzs5j2h1aGPg== From: Nathan Chancellor To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] tools/resolve_btfids: Do not print any commands when building silently Date: Tue, 1 Feb 2022 14:25:04 -0700 Message-Id: <20220201212503.731732-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with 'make -s', there is some output from resolve_btfids: $ make -sj"$(nproc)" oldconfig prepare MKDIR .../tools/bpf/resolve_btfids/libbpf/ MKDIR .../tools/bpf/resolve_btfids//libsubcmd LINK resolve_btfids Silent mode means that no information should be emitted about what is currently being done. Use the $(silent) variable from Makefile.include to avoid defining the msg macro so that there is no information printed. Fixes: fbbb68de80a4 ("bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object") Signed-off-by: Nathan Chancellor --- This should apply to either bpf or bpf-next so no subject prefix. I would prefer it goes in sooner rather than later but I'll leave that up to you all. tools/bpf/resolve_btfids/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile index 9ddeca947635..320a88ac28c9 100644 --- a/tools/bpf/resolve_btfids/Makefile +++ b/tools/bpf/resolve_btfids/Makefile @@ -9,7 +9,11 @@ ifeq ($(V),1) msg = else Q = @ - msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))"; + ifeq ($(silent),1) + msg = + else + msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))"; + endif MAKEFLAGS=--no-print-directory endif base-commit: 26291c54e111ff6ba87a164d85d4a4e134b7315c -- 2.35.1