On 14 Feb 2005 at 17:15, Dave Jones wrote: > On Tue, Feb 15, 2005 at 12:02:52AM +0200, Stephen Biggs wrote: > Content-Description: Mail message body > > Description: compile warning cleanup - silence compiler warning for > > unused function that is either actually used as a driver function in a > > table or is truly unused > > > > +++ linux-2.6.11-rc3-mm2/drivers/net/ibmlana.c 2005-02-12 17:22:13.000000000 +0200 > > @@ -901,7 +901,7 @@ static void ibmlana_set_multicast_list(s > > > > static int startslot; /* counts through slots when probing multiple devices */ > > > > -static int ibmlana_probe(struct net_device *dev) > > +static int __attribute__((unused)) ibmlana_probe(struct net_device *dev) > > It's called in init_module(). I guess you only tried this in the built-in case ? It compiles both with allyesconfig and allmodconfig. The "unused" attribute is a better solution than #ifdef MODULE. Please consider applying. > > Dave > >