public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Confusion in usr/include/linux/videodev.h
@ 2009-01-21  1:40 Jaswinder Singh Rajput
  2009-01-21  1:50 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2009-01-21  1:40 UTC (permalink / raw)
  To: mchehab, linux-media, video4linux-list, Sam Ravnborg, Ingo Molnar,
	LKML

usr/include/linux/videodev.h is giving 2 warnings in 'make headers_check':
 usr/include/linux/videodev.h:19: leaks CONFIG_VIDEO to userspace where it is not valid
 usr/include/linux/videodev.h:314: leaks CONFIG_VIDEO to userspace where it is not valid

Whole file is covered with #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)

It means this file is only valid for kernel mode if CONFIG_VIDEO_V4L1_COMPAT is defined but in user mode it is always valid.
		
Can we choose some better alternative Or can we use this file as:

#ifdef CONFIG_VIDEO_V4L1_COMPAT
#include <linux/videodev.h>
#endif


Thanks
--
JSR



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-01-21  9:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21  1:40 Confusion in usr/include/linux/videodev.h Jaswinder Singh Rajput
2009-01-21  1:50 ` Mauro Carvalho Chehab
2009-01-21  4:44   ` Jaswinder Singh Rajput
2009-01-21  8:54     ` Trent Piepho
2009-01-21  8:59       ` Jaswinder Singh Rajput
2009-01-21  9:09         ` Arnd Bergmann
2009-01-21  9:51           ` Trent Piepho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox