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

From: Mathieu Desnoyers
Date: Fri Oct 27 2023 - 09:37:42 EST


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 ?

Thanks,

Mathieu


url: https://github.com/intel-lab-lkp/linux/commits/Mathieu-Desnoyers/Fix-rseq-uapi-Adapt-header-includes-to-follow-glibc-header-changes/20231026-054939
base: linus/master
patch link: https://lore.kernel.org/r/20231025214811.2066376-1-mathieu.desnoyers%40efficios.com
patch subject: [PATCH] Fix: rseq uapi: Adapt header includes to follow glibc header changes
config: i386-randconfig-001-20231026 (https://download.01.org/0day-ci/archive/20231027/202310271556.LunB8KLv-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231027/202310271556.LunB8KLv-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310271556.LunB8KLv-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

usr/include/linux/rseq.h:14: include of <linux/types.h> is preferred over <asm/types.h>
usr/include/linux/rseq.h:47: found __[us]{8,16,32,64} type without #include <linux/types.h>


--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com