[PATCH FYI 0/7] Updating some kernel headers with the kernel sources

Arnaldo Carvalho de Melo posted 7 patches 7 months ago
tools/arch/x86/include/asm/cpufeatures.h      |  5 ++++-
tools/arch/x86/include/asm/msr-index.h        |  8 +++++++
tools/include/linux/bits.h                    |  5 ++---
tools/include/linux/compiler.h                | 22 +++++++++++++++++++
tools/include/uapi/linux/bits.h               |  8 ++-----
tools/include/vdso/unaligned.h                | 12 +++++-----
.../trace/beauty/include/uapi/linux/vhost.h   |  4 ++--
7 files changed, 46 insertions(+), 18 deletions(-)
[PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Arnaldo Carvalho de Melo 7 months ago
From: Arnaldo Carvalho de Melo <acme@redhat.com>

Just FYI,

	Updating some kernel headers with the kernel sources.

- Arnaldo

Arnaldo Carvalho de Melo (7):
  tools include UAPI: Sync linux/vhost.h with the kernel sources
  tools arch x86: Sync the msr-index.h copy with the kernel sources
  tools headers x86 cpufeatures: Sync with the kernel sources to pick
    ZEN6 and Indirect Target Selection (ITS) bits
  tools headers: Sync the linux/unaligned.h copy with the kernel sources
  tools headers: Synchronize uapi/linux/bits.h with the kernel sources
  tools headers compiler: Pick the const_true() define from the kernel
    sources
  tools headers: Synchronize linux/bits.h with the kernel sources

 tools/arch/x86/include/asm/cpufeatures.h      |  5 ++++-
 tools/arch/x86/include/asm/msr-index.h        |  8 +++++++
 tools/include/linux/bits.h                    |  5 ++---
 tools/include/linux/compiler.h                | 22 +++++++++++++++++++
 tools/include/uapi/linux/bits.h               |  8 ++-----
 tools/include/vdso/unaligned.h                | 12 +++++-----
 .../trace/beauty/include/uapi/linux/vhost.h   |  4 ++--
 7 files changed, 46 insertions(+), 18 deletions(-)

-- 
2.49.0
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Yury Norov 7 months ago
On Mon, May 19, 2025 at 06:41:19PM -0300, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
> 
> Just FYI,
> 
> 	Updating some kernel headers with the kernel sources.
> 
> - Arnaldo

For patches 5, 6 and 7:
Acked-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>

Would you like me to take those in bitmap-for-next?

Thanks,
Yury
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Arnaldo Carvalho de Melo 7 months ago
On Mon, May 19, 2025 at 11:48:11PM -0400, Yury Norov wrote:
> On Mon, May 19, 2025 at 06:41:19PM -0300, Arnaldo Carvalho de Melo wrote:
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> > Just FYI,

> > 	Updating some kernel headers with the kernel sources.

> For patches 5, 6 and 7:
> Acked-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>

Thanks, added to the patches.
 
> Would you like me to take those in bitmap-for-next?

Since this affects just the tooling, and removes a warning when building
them, I think its better for those to be carried in the perf-tools-next
tree, ok?

Cheers,

- Arnaldo
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Yury Norov 7 months ago
On Tue, May 20, 2025 at 12:56:36PM -0300, Arnaldo Carvalho de Melo wrote:
> On Mon, May 19, 2025 at 11:48:11PM -0400, Yury Norov wrote:
> > On Mon, May 19, 2025 at 06:41:19PM -0300, Arnaldo Carvalho de Melo wrote:
> > > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> > > Just FYI,
> 
> > > 	Updating some kernel headers with the kernel sources.
> 
> > For patches 5, 6 and 7:
> > Acked-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
> 
> Thanks, added to the patches.
>  
> > Would you like me to take those in bitmap-for-next?
> 
> Since this affects just the tooling, and removes a warning when building
> them, I think its better for those to be carried in the perf-tools-next
> tree, ok?

Sure. Thanks for handling this.
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Vincent Mailhol 7 months ago
On Tue. 20 May 2025 at 06:41, Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> Just FYI,
>
>         Updating some kernel headers with the kernel sources.
>
> - Arnaldo
>
> Arnaldo Carvalho de Melo (7):
>   tools include UAPI: Sync linux/vhost.h with the kernel sources
>   tools arch x86: Sync the msr-index.h copy with the kernel sources
>   tools headers x86 cpufeatures: Sync with the kernel sources to pick
>     ZEN6 and Indirect Target Selection (ITS) bits
>   tools headers: Sync the linux/unaligned.h copy with the kernel sources
>   tools headers: Synchronize uapi/linux/bits.h with the kernel sources
>   tools headers compiler: Pick the const_true() define from the kernel
>     sources
>   tools headers: Synchronize linux/bits.h with the kernel sources

Note that there are new upcoming changes in bits.h and build_bug.h
which are queue in the bitmap tree:

  https://github.com/norov/linux/commits/bitmap-for-next/

So, if you prefer, you can wait for the beginning of the merge windows
when the above changes will be merged and do the sync with all those
changes (this is just a suggestion, I am not objecting to this series
in any way).

>  tools/arch/x86/include/asm/cpufeatures.h      |  5 ++++-
>  tools/arch/x86/include/asm/msr-index.h        |  8 +++++++
>  tools/include/linux/bits.h                    |  5 ++---
>  tools/include/linux/compiler.h                | 22 +++++++++++++++++++
>  tools/include/uapi/linux/bits.h               |  8 ++-----
>  tools/include/vdso/unaligned.h                | 12 +++++-----
>  .../trace/beauty/include/uapi/linux/vhost.h   |  4 ++--
>  7 files changed, 46 insertions(+), 18 deletions(-)

Yours sincerely,
Vincent Mailhol
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Arnaldo Carvalho de Melo 7 months ago
On Tue, May 20, 2025 at 09:44:05AM +0900, Vincent Mailhol wrote:
> On Tue. 20 May 2025 at 06:41, Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> >         Updating some kernel headers with the kernel sources.

> >   tools headers: Synchronize uapi/linux/bits.h with the kernel sources
> >   tools headers compiler: Pick the const_true() define from the kernel
> >     sources
> >   tools headers: Synchronize linux/bits.h with the kernel sources
 
> Note that there are new upcoming changes in bits.h and build_bug.h
> which are queue in the bitmap tree:
 
>   https://github.com/norov/linux/commits/bitmap-for-next/
 
> So, if you prefer, you can wait for the beginning of the merge windows
> when the above changes will be merged and do the sync with all those
> changes (this is just a suggestion, I am not objecting to this series
> in any way).

I think there is value in doing it now, as it clears up the build
warnings and solves already one prep work that syncing would entail,
namely the inclusion of const_true() in the tools compiler.h file.

I think I can take your "I am not objecting to this series in any way."
as an Acked-by?

Thanks!

- Arnaldo
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Vincent Mailhol 7 months ago
On 21/05/2025 at 00:52, Arnaldo Carvalho de Melo wrote:
> On Tue, May 20, 2025 at 09:44:05AM +0900, Vincent Mailhol wrote:
>> On Tue. 20 May 2025 at 06:41, Arnaldo Carvalho de Melo <acme@kernel.org> wrote:

(...)

> I think there is value in doing it now, as it clears up the build
> warnings and solves already one prep work that syncing would entail,
> namely the inclusion of const_true() in the tools compiler.h file.

Ack.

> I think I can take your "I am not objecting to this series in any way."
> as an Acked-by?

Sure. You can add my Acked-by to patch 6 and 7 (the ones in which you put me in
CC). I did not have a look at the other ones (and do not plan to do so).


Yours sincerely,
Vincent Mailhol
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Arnaldo Carvalho de Melo 7 months ago
On Wed, May 21, 2025 at 01:02:49AM +0900, Vincent Mailhol wrote:
> On 21/05/2025 at 00:52, Arnaldo Carvalho de Melo wrote:
> > On Tue, May 20, 2025 at 09:44:05AM +0900, Vincent Mailhol wrote:
> >> On Tue. 20 May 2025 at 06:41, Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> 
> (...)
> 
> > I think there is value in doing it now, as it clears up the build
> > warnings and solves already one prep work that syncing would entail,
> > namely the inclusion of const_true() in the tools compiler.h file.
> 
> Ack.
> 
> > I think I can take your "I am not objecting to this series in any way."
> > as an Acked-by?
> 
> Sure. You can add my Acked-by to patch 6 and 7 (the ones in which you put me in
> CC). I did not have a look at the other ones (and do not plan to do so).

Thanks, just did it,

- Arnaldo
Re: [PATCH FYI 0/7] Updating some kernel headers with the kernel sources
Posted by Namhyung Kim 7 months ago
Hi Arnaldo,

On Mon, May 19, 2025 at 06:41:19PM -0300, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
> 
> Just FYI,
> 
> 	Updating some kernel headers with the kernel sources.
> 
> - Arnaldo
> 
> Arnaldo Carvalho de Melo (7):
>   tools include UAPI: Sync linux/vhost.h with the kernel sources
>   tools arch x86: Sync the msr-index.h copy with the kernel sources
>   tools headers x86 cpufeatures: Sync with the kernel sources to pick
>     ZEN6 and Indirect Target Selection (ITS) bits
>   tools headers: Sync the linux/unaligned.h copy with the kernel sources
>   tools headers: Synchronize uapi/linux/bits.h with the kernel sources
>   tools headers compiler: Pick the const_true() define from the kernel
>     sources
>   tools headers: Synchronize linux/bits.h with the kernel sources

Thanks for doing this!  Do you want to add it to v6.15?  I feel like
it's slightly late for this cycle, but I can try if you want.

Thanks,
Namhyung

> 
>  tools/arch/x86/include/asm/cpufeatures.h      |  5 ++++-
>  tools/arch/x86/include/asm/msr-index.h        |  8 +++++++
>  tools/include/linux/bits.h                    |  5 ++---
>  tools/include/linux/compiler.h                | 22 +++++++++++++++++++
>  tools/include/uapi/linux/bits.h               |  8 ++-----
>  tools/include/vdso/unaligned.h                | 12 +++++-----
>  .../trace/beauty/include/uapi/linux/vhost.h   |  4 ++--
>  7 files changed, 46 insertions(+), 18 deletions(-)
> 
> -- 
> 2.49.0
>