public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* What should be done with wrong warning "please use bus_type methods." on sd, sr, st and osst?
@ 2008-03-24 14:00 Eric Piel
  2008-03-24 15:24 ` James Bottomley
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Piel @ 2008-03-24 14:00 UTC (permalink / raw)
  To: linux-scsi, Russell King; +Cc: James.Bottomley, Tilman Schmidt

Hello,

Since commit 751bf4d7865e4ced406be93b04c7436d866d3684 (scsi_sysfs: 
restore prep_fn when ULD is removed), the warning "Driver '%s' needs 
updating - please use bus_type methods." is generated for several scsi 
drivers (sr, sg, st and osst). It does so because it thinks that the 
driver remove() functions will not be called (cf 
__device_release_driver()). Actually, they are called by scsi_bus_remove().

This has been noted already a couple of times [1] [2] [3], but it seems 
absolutely nothing conclusive came out of the reports.

What should be done? Delete the warning? Change it so it doesn't get 
triggered if drv->bus->remove == scsi_bus_remove? Merge 
scsi_bus_remove() into the driver remove() functions? Disregard the 
monthly warming reports?

Eric

[1] http://lkml.org/lkml/2008/1/10/47
[2] http://lkml.org/lkml/2008/2/20/547
[3] http://lkml.org/lkml/2008/3/22/198

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

end of thread, other threads:[~2008-03-25 22:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 14:00 What should be done with wrong warning "please use bus_type methods." on sd, sr, st and osst? Eric Piel
2008-03-24 15:24 ` James Bottomley
2008-03-24 17:59   ` Greg KH
2008-03-24 18:16     ` James Bottomley
2008-03-25 22:20       ` Éric Piel
2008-03-25 22:34         ` James Bottomley

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