mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>
To: "calvin@wbinvd.org" <calvin@wbinvd.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"airlied@gmail.com" <airlied@gmail.com>,
	"lucas.demarchi@intel.com" <lucas.demarchi@intel.com>,
	"thomas.hellstrom@linux.intel.com"
	<thomas.hellstrom@linux.intel.com>,
	"simona@ffwll.ch" <simona@ffwll.ch>
Subject: Re: [PATCH] drm/xe: Don't use absolute path in generated header comment
Date: Mon, 22 Dec 2025 16:56:47 +0000	[thread overview]
Message-ID: <40b24664850c231b1a2fd80a084d4a7f32b8148e.camel@intel.com> (raw)
In-Reply-To: <aUhQHcgL4U-HgSv6@mozart.vkv.me>

On Sun, 2025-12-21 at 11:53 -0800, Calvin Owens wrote:
> On Friday 10/31 at 07:48 -0700, Calvin Owens wrote:
> > Building the XE driver through Yocto throws this QA warning:
> > 
> >     WARNING: mc:house:linux-stable-6.17-r0 do_package_qa: QA Issue:
> > File /usr/src/debug/linux-
> > stable/6.17/drivers/gpu/drm/xe/generated/xe_device_wa_oob.h in
> > package linux-stable-src contains reference to TMPDIR [buildpaths]
> >     WARNING: mc:house:linux-stable-6.17-r0 do_package_qa: QA Issue:
> > File /usr/src/debug/linux-
> > stable/6.17/drivers/gpu/drm/xe/generated/xe_wa_oob.h in package
> > linux-stable-src contains reference to TMPDIR [buildpaths]
> > 
> > ...because the comment at the top of the generated header contains
> > the
> > absolute path to the rules file at build time:
> > 
> >     * This file was generated from rules: /home/calvinow/git/meta-
> > house/build/tmp-house/work-shared/nuc14rvhu7/kernel-
> > source/drivers/gpu/drm/xe/xe_device_wa_oob.rules
> > 
> > Fix this minor annoyance by putting the basename of the rules file
> > in
> > the generated comment instead of the absolute path, so the
> > generated
> > header contents no longer depend on the location of the kernel
> > source.
> 
> Hi all,
> 
> This is about as trivial as it gets: it's been a couple months, can I
> get some eyes on this please?
> 
> This is the only place in the entire kernel source where the content
> of
> a generated header depends on the absolute path to the kernel tree.
> It
> makes kernel source packages non-reproducible.

Sorry about that and for the delay.

I just resent the patch for CI:
https://lore.kernel.org/intel-xe/20251222165441.516102-2-rodrigo.vivi@intel.com/

We can push after passing it.
Thanks,
Rodrigo.

> 
> Thanks
> Calvin
> 
> > Signed-off-by: Calvin Owens <calvin@wbinvd.org>
> > ---
> >  drivers/gpu/drm/xe/xe_gen_wa_oob.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> > b/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> > index 247e41c1c48d..e7a50b1348b7 100644
> > --- a/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> > +++ b/drivers/gpu/drm/xe/xe_gen_wa_oob.c
> > @@ -195,7 +195,8 @@ int main(int argc, const char *argv[])
> >  		}
> >  	}
> >  
> > -	fprintf(args[ARGS_CHEADER].f, HEADER, args[ARGS_INPUT].fn,
> > prefix, prefix);
> > +	fprintf(args[ARGS_CHEADER].f, HEADER,
> > xbasename(args[ARGS_INPUT].fn),
> > +		prefix, prefix);
> >  
> >  	ret = parse(args[ARGS_INPUT].f, args[ARGS_CSOURCE].f,
> >  		    args[ARGS_CHEADER].f, prefix);
> > -- 
> > 2.47.3
> > 

  reply	other threads:[~2025-12-22 16:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-31 14:48 Calvin Owens
2025-12-21 19:53 ` Calvin Owens
2025-12-22 16:56   ` Vivi, Rodrigo [this message]
2025-12-22 20:26     ` Calvin Owens
2025-12-23 15:06       ` Rodrigo Vivi

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=40b24664850c231b1a2fd80a084d4a7f32b8148e.camel@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=airlied@gmail.com \
    --cc=calvin@wbinvd.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucas.demarchi@intel.com \
    --cc=simona@ffwll.ch \
    --cc=thomas.hellstrom@linux.intel.com \
    /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

all inboxes | Powered by JetHome®