Skip to content

Commit f7f869f

Browse files
wqyoungmichalsimek
authored andcommitted
kbuild: add xilinx-sdirxss.h/xilinx-hls.h/xilinx-v4l2-events.h to no-header-test
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 d6fc9fc ("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 <[email protected]> State: pending
1 parent c64541f commit f7f869f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: usr/include/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ no-header-test += linux/v4l2-mediabus.h
4343
no-header-test += linux/v4l2-subdev.h
4444
no-header-test += linux/videodev2.h
4545
no-header-test += linux/vm_sockets.h
46+
no-header-test += linux/xilinx-sdirxss.h
47+
no-header-test += linux/xilinx-hls.h
48+
no-header-test += linux/xilinx-v4l2-events.h
4649
no-header-test += sound/asequencer.h
4750
no-header-test += sound/asoc.h
4851
no-header-test += sound/asound.h

0 commit comments

Comments
 (0)