public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* new warnings from partial __devexit removal
@ 2012-11-26 20:38 Arnd Bergmann
  2012-11-26 22:50 ` gregkh
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2012-11-26 20:38 UTC (permalink / raw)
  To: Bill Pemberton; +Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org

This is probably known and fixed already, but in case it's not, let me just
mention that I saw two new warnings with ARM allyesconfig about a
__devexit being removed but the __devexit_p() still being there:

drivers/tty/serial/xilinx_uartps.c:1000:12: error: 'xuartps_remove' defined but not used [-Werror=unused-function]
drivers/usb/gadget/mv_udc_core.c:2131:12: error: 'mv_udc_remove' defined but not used [-Werror=unused-function]

Both patches were merged by Greg on Nov 19. I assume that there are a
few more, but I have not checked. These were the only ones that
caused warnings for me.

	Arnd

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

* Re: new warnings from partial __devexit removal
  2012-11-26 20:38 new warnings from partial __devexit removal Arnd Bergmann
@ 2012-11-26 22:50 ` gregkh
  2012-11-27  9:01   ` Arnd Bergmann
  2012-11-27 13:39   ` Bill Pemberton
  0 siblings, 2 replies; 4+ messages in thread
From: gregkh @ 2012-11-26 22:50 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Bill Pemberton, linux-kernel@vger.kernel.org

On Mon, Nov 26, 2012 at 08:38:32PM +0000, Arnd Bergmann wrote:
> This is probably known and fixed already, but in case it's not, let me just
> mention that I saw two new warnings with ARM allyesconfig about a
> __devexit being removed but the __devexit_p() still being there:
> 
> drivers/tty/serial/xilinx_uartps.c:1000:12: error: 'xuartps_remove' defined but not used [-Werror=unused-function]
> drivers/usb/gadget/mv_udc_core.c:2131:12: error: 'mv_udc_remove' defined but not used [-Werror=unused-function]

What platform has -Werror=unused-function set?

Bill, care to send follow-on patches to resolve these warnings?

thanks,

greg k-h

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

* Re: new warnings from partial __devexit removal
  2012-11-26 22:50 ` gregkh
@ 2012-11-27  9:01   ` Arnd Bergmann
  2012-11-27 13:39   ` Bill Pemberton
  1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2012-11-27  9:01 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org; +Cc: Bill Pemberton, linux-kernel@vger.kernel.org

On Monday 26 November 2012, gregkh@linuxfoundation.org wrote:
> On Mon, Nov 26, 2012 at 08:38:32PM +0000, Arnd Bergmann wrote:
> > This is probably known and fixed already, but in case it's not, let me just
> > mention that I saw two new warnings with ARM allyesconfig about a
> > __devexit being removed but the __devexit_p() still being there:
> > 
> > drivers/tty/serial/xilinx_uartps.c:1000:12: error: 'xuartps_remove' defined but not used [-Werror=unused-function]
> > drivers/usb/gadget/mv_udc_core.c:2131:12: error: 'mv_udc_remove' defined but not used [-Werror=unused-function]
> 
> What platform has -Werror=unused-function set?

My test script to check if any new warnings have come in sets -Werror.

I have a git branch that has workarounds for all known gcc warnings on ARM, so
one of my tests after merging stuff is to pull that one into my for-next branch
and build all defconfigs and all{yes,no,mod}config.

	Arnd

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

* Re: new warnings from partial __devexit removal
  2012-11-26 22:50 ` gregkh
  2012-11-27  9:01   ` Arnd Bergmann
@ 2012-11-27 13:39   ` Bill Pemberton
  1 sibling, 0 replies; 4+ messages in thread
From: Bill Pemberton @ 2012-11-27 13:39 UTC (permalink / raw)
  To: gregkh; +Cc: Arnd Bergmann, linux-kernel@vger.kernel.org

gregkh@linuxfoundation.org writes:
> 
> On Mon, Nov 26, 2012 at 08:38:32PM +0000, Arnd Bergmann wrote:
> > This is probably known and fixed already, but in case it's not, let me just
> > mention that I saw two new warnings with ARM allyesconfig about a
> > __devexit being removed but the __devexit_p() still being there:
> > 
> > drivers/tty/serial/xilinx_uartps.c:1000:12: error: 'xuartps_remove' defined but not used [-Werror=unused-function]
> > drivers/usb/gadget/mv_udc_core.c:2131:12: error: 'mv_udc_remove' defined but not used [-Werror=unused-function]
> 
> What platform has -Werror=unused-function set?
> 
> Bill, care to send follow-on patches to resolve these warnings?
> 

I don't understand how my changes would causing the warning.  Both
functions are put in the platform_driver struct using __exit_p, not
__devexit_p.  It seems like you should get the warning with or without
my changes as long as MODULE is not defined.

-- 
Bill



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

end of thread, other threads:[~2012-11-27 13:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 20:38 new warnings from partial __devexit removal Arnd Bergmann
2012-11-26 22:50 ` gregkh
2012-11-27  9:01   ` Arnd Bergmann
2012-11-27 13:39   ` Bill Pemberton

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