Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755987AbZAYQ5W (ORCPT ); Sun, 25 Jan 2009 11:57:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751923AbZAYQ5N (ORCPT ); Sun, 25 Jan 2009 11:57:13 -0500 Received: from styx.suse.cz ([82.119.242.94]:47269 "EHLO mail.suse.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751839AbZAYQ5M (ORCPT ); Sun, 25 Jan 2009 11:57:12 -0500 Date: Sun, 25 Jan 2009 17:57:10 +0100 (CET) From: Jiri Kosina To: Jaswinder Singh Rajput cc: Jiri Slaby , Dmitry Torokhov , linux-input@vger.kernel.org, marcel@holtmann.org, linux-kernel@vger.kernel.org, anssi.hannula@gmail.com, gregkh@suse.de, Sam Ravnborg , Ingo Molnar Subject: Re: [PATCH 09/10] HID: add compat support In-Reply-To: <3f9a31f40901232155q7f898f00l9a1cf16ca6c8fb75@mail.gmail.com> Message-ID: References: <1210931362-18422-1-git-send-email-jirislaby@gmail.com> <1210931362-18422-2-git-send-email-jirislaby@gmail.com> <1210931362-18422-3-git-send-email-jirislaby@gmail.com> <1210931362-18422-4-git-send-email-jirislaby@gmail.com> <1210931362-18422-5-git-send-email-jirislaby@gmail.com> <1210931362-18422-6-git-send-email-jirislaby@gmail.com> <1210931362-18422-7-git-send-email-jirislaby@gmail.com> <1210931362-18422-8-git-send-email-jirislaby@gmail.com> <1210931362-18422-9-git-send-email-jirislaby@gmail.com> <3f9a31f40901232155q7f898f00l9a1cf16ca6c8fb75@mail.gmail.com> User-Agent: Alpine 1.10 (LNX 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1236 Lines: 37 On Sat, 24 Jan 2009, Jaswinder Singh Rajput wrote: > This leads to 3 headers_check warnings: > > usr/include/linux/hid.h:66: leaks CONFIG_HID to userspace where it is not valid > usr/include/linux/hid.h:69: extern's make no sense in userspace > usr/include/linux/hid.h:76: extern's make no sense in userspace > > So I am moving whole above block in #ifdef __KEREL__ > > If you have any objections, then let me know, now it will look like this: > > #endif /* HID_FF */ > > +#ifdef __KERNEL__ > #ifdef CONFIG_HID_COMPAT > #define HID_COMPAT_LOAD_DRIVER(name) \ > /* prototype to avoid sparse warning */ \ > @@ -804,6 +805,7 @@ EXPORT_SYMBOL(hid_compat_##name) > extern void hid_compat_##name(void); \ > hid_compat_##name(); \ > } while (0) > +#endif /* __KERNEL__ */ > > #endif Thanks for catching this. Could you please resend the patch to me, with proper changelog and Signed-off-by: line? Thanks. -- Jiri Kosina SUSE Labs -- 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/