lkml.org 
[lkml]   [2008]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] HID: avoid sparse warning in HID_COMPAT_LOAD_DRIVER
On Tue, 16 Dec 2008, Ben Dooks wrote:

> > #ifdef CONFIG_HID_COMPAT
> > #define HID_COMPAT_LOAD_DRIVER(name) \
> > +/* prototype to avoid sparse warning */ \
> > +extern void hid_compat_##name(void); \
> > void hid_compat_##name(void) { } \
> surely this could simply be changed to 'static void
> hid_compat_##name(void)' if it is only being defined to be an empty

This will cause gcc emit warnings about unused symbols.

--
Jiri Kosina
SUSE Labs


\
 
 \ /
  Last update: 2008-12-16 17:05    [from the cache]
©2003-2011 Jasper Spaans