Re: [PATCH] Fix: rseq uapi: Adapt header includes to follow glibc header changes

From: Steven Rostedt
Date: Fri Oct 27 2023 - 10:06:49 EST


On Fri, 27 Oct 2023 09:37:26 -0400
Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> wrote:

> On 2023-10-27 03:53, kernel test robot wrote:
> > Hi Mathieu,
> >
> > kernel test robot noticed the following build warnings:
> >
> > [auto build test WARNING on linus/master]
> > [also build test WARNING on v6.6-rc7 next-20231026]
> > [If your patch is applied to the wrong git tree, kindly drop us a note.
> > And when submitting patch, we suggest to use '--base' as documented in
> > https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> The test robot complains about using <asm/types.h> in uapi headers for
> !__KERNEL__ case.
>
> Steven, was there something wrong with including linux/types.h in uapi
> headers ?
>

Actually, linux/types.h includes asm/types.h so I don't think that was the
issue. I think the issue was mostly with:

#include <asm/byteorder.h>

Replacing linux/types.h with asm/types.h worked, but may have been
unnecessary.

-- Steve