From: Quanyang Wang <quanyang.w...@windriver.com>

When enabling CONFIG_UAPI_HEADER_TEST, there will be compile error as
below:

In file included from ./usr/include/linux/xilinx-sdirxss.h:7,
                 from <command-line>:32:
./usr/include/linux/videodev2.h:2418:20: error: field ‘timestamp’ has 
incomplete type
 2418 |  struct timespecx  timestamp;
      |                    ^~~~~~~~~

This is because that xilinx-sdirxss.h/xilinx-hls.h/xilinx-v4l2-events.h
include "videodev2.h" which includes "sys/timer.h". Just as what said in
commit d6fc9fcbaa655 ("kbuild: compile-test exported headers to ensure
they are self-contained"), these headers will result header-test failure
for some compilers. So let's add these 3 header to no-header-test list
just like other headers which include "videodev2.h"

Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com>
---
 usr/include/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/usr/include/Makefile b/usr/include/Makefile
index f6b3c85d900ed..eb1a41f64bd8f 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -48,6 +48,9 @@ no-header-test += linux/v4l2-mediabus.h
 no-header-test += linux/v4l2-subdev.h
 no-header-test += linux/videodev2.h
 no-header-test += linux/vm_sockets.h
+no-header-test += linux/xilinx-sdirxss.h
+no-header-test += linux/xilinx-hls.h
+no-header-test += linux/xilinx-v4l2-events.h
 no-header-test += sound/asequencer.h
 no-header-test += sound/asoc.h
 no-header-test += sound/asound.h
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10092): 
https://lists.yoctoproject.org/g/linux-yocto/message/10092
Mute This Topic: https://lists.yoctoproject.org/mt/84148448/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to