Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jens Remus" <jremus@linux.ibm.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf build: Respect V=1 for Python extension builds
Date: Mon, 08 Jun 2026 15:28:15 +0000	[thread overview]
Message-ID: <20260608152816.7FCB01F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260608151525.2358438-1-jremus@linux.ibm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `setup_quiet` variable is not initialized before its conditional assignment, allowing it to inherit arbitrary values from the user's environment when `V=1` is used.
--

commit 8926935922228db2605e3a9cb12821c9b36a4337
Author: Jens Remus <jremus@linux.ibm.com>

perf build: Respect V=1 for Python extension builds

This commit modifies the perf build system to conditionally pass the --quiet
flag to setup.py. It aims to respect the V=1 verbose build flag to ease
debugging of Python extension compilation issues.

> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
> index 76b35ac19acbf..5fd6044680df5 100644
> --- a/tools/perf/Makefile.perf
> +++ b/tools/perf/Makefile.perf
> @@ -401,6 +401,10 @@ export PYTHON_EXTBUILD_LIB PYTHON_EXTBUILD_TMP
>  
>  python-clean := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT)python/perf*.so
>  
> +ifneq ($(quiet),)
> +setup_quiet=--quiet
> +endif
> +

[Severity: Low]
Does this leave setup_quiet uninitialized when V=1 is used?

Because make imports environment variables automatically, if a user happens
to have an environment variable named setup_quiet, it could be unintentionally
passed directly to util/setup.py when the quiet variable evaluates to empty.

Would it be safer to explicitly initialize setup_quiet to an empty string
before the conditional block to prevent environment variable contamination?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260608151525.2358438-1-jremus@linux.ibm.com?part=1

  reply	other threads:[~2026-06-08 15:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08 15:15 [PATCH] perf build: Respect V=1 for Python extension builds Jens Remus
2026-06-08 15:28 ` sashiko-bot [this message]
2026-06-08 15:32 ` Ian Rogers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260608152816.7FCB01F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=jremus@linux.ibm.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox