Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758290AbZAUBl0 (ORCPT ); Tue, 20 Jan 2009 20:41:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752668AbZAUBlR (ORCPT ); Tue, 20 Jan 2009 20:41:17 -0500 Received: from hera.kernel.org ([140.211.167.34]:33666 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752566AbZAUBlQ (ORCPT ); Tue, 20 Jan 2009 20:41:16 -0500 Subject: Confusion in usr/include/linux/videodev.h From: Jaswinder Singh Rajput To: mchehab@infradead.org, linux-media@vger.kernel.org, video4linux-list@redhat.com, Sam Ravnborg , Ingo Molnar , LKML Content-Type: text/plain Date: Wed, 21 Jan 2009 07:10:38 +0530 Message-Id: <1232502038.3123.61.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 (2.24.2-3.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 25 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 #endif Thanks -- JSR -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/