public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* scsi_unregister_driver in 2.6.10
@ 2005-01-11  0:57 Vivek Mahajan
  2005-01-11  3:00 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Vivek Mahajan @ 2005-01-11  0:57 UTC (permalink / raw)
  To: linux-scsi

I was working on my SCSI module and tried to use
scsi_unregister_driver(). But looks like it has been made GPL only. I
get unresolved symbol : driver_unregister(), when I tried to load the
module. I think it is #defined to driver_unregister() in
include/scsi/scsi_driver.h. And driver_unregister is exported as GPL
only.

At the same time, scsi_register_driver() works with non GPL code
without any problem. As this call is exclusively defined in
drivers/scsi/scsi_sysfs.c.

I was just wondering wss it unintentional Or there was a purpose
behind that to make scsi_register_driver( ) as non GPL and
scsi_unregister_driver( ) as GPL only.

Any help in this matter will be highly appreciated.

Regards,
Vivek

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

* Re: scsi_unregister_driver in 2.6.10
  2005-01-11  0:57 scsi_unregister_driver in 2.6.10 Vivek Mahajan
@ 2005-01-11  3:00 ` Matthew Wilcox
  2005-01-11  3:20   ` Vivek Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2005-01-11  3:00 UTC (permalink / raw)
  To: Vivek Mahajan; +Cc: linux-scsi

On Mon, Jan 10, 2005 at 05:57:32PM -0700, Vivek Mahajan wrote:
> I was working on my SCSI module and tried to use
> scsi_unregister_driver(). But looks like it has been made GPL only. I
> get unresolved symbol : driver_unregister(), when I tried to load the
> module. I think it is #defined to driver_unregister() in
> include/scsi/scsi_driver.h. And driver_unregister is exported as GPL
> only.
> 
> At the same time, scsi_register_driver() works with non GPL code
> without any problem. As this call is exclusively defined in
> drivers/scsi/scsi_sysfs.c.
> 
> I was just wondering wss it unintentional Or there was a purpose
> behind that to make scsi_register_driver( ) as non GPL and
> scsi_unregister_driver( ) as GPL only.

I think this was unintentional.  However, I'm not sure there's a
compelling reason to undo it -- scsi_register_driver is for registering
top-level drivers like st, sr, sd and osst.  What kind of driver is this
that you're writing?

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

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

* Re: scsi_unregister_driver in 2.6.10
  2005-01-11  3:00 ` Matthew Wilcox
@ 2005-01-11  3:20   ` Vivek Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Vivek Mahajan @ 2005-01-11  3:20 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-scsi

Thanks for ur reply back. The driver is an iSCSI driver which does
registeration with scsi generic driver for the various SATA drives. In
2.4 we used to use scsi_register_module() which is gone in 2.6.

It is a non GPL driver and I was just wondering what would be the work around.

Thanks muchly for your help.

Vivek


On Tue, 11 Jan 2005 03:00:07 +0000, Matthew Wilcox <matthew@wil.cx> wrote:
> On Mon, Jan 10, 2005 at 05:57:32PM -0700, Vivek Mahajan wrote:
> > I was working on my SCSI module and tried to use
> > scsi_unregister_driver(). But looks like it has been made GPL only. I
> > get unresolved symbol : driver_unregister(), when I tried to load the
> > module. I think it is #defined to driver_unregister() in
> > include/scsi/scsi_driver.h. And driver_unregister is exported as GPL
> > only.
> >
> > At the same time, scsi_register_driver() works with non GPL code
> > without any problem. As this call is exclusively defined in
> > drivers/scsi/scsi_sysfs.c.
> >
> > I was just wondering wss it unintentional Or there was a purpose
> > behind that to make scsi_register_driver( ) as non GPL and
> > scsi_unregister_driver( ) as GPL only.
> 
> I think this was unintentional.  However, I'm not sure there's a
> compelling reason to undo it -- scsi_register_driver is for registering
> top-level drivers like st, sr, sd and osst.  What kind of driver is this
> that you're writing?
> 
> --
> "Next the statesmen will invent cheap lies, putting the blame upon
> the nation that is attacked, and every man will be glad of those
> conscience-soothing falsities, and will diligently study them, and refuse
> to examine any refutations of them; and thus he will by and by convince
> himself that the war is just, and will thank God for the better sleep
> he enjoys after this process of grotesque self-deception." -- Mark Twain
>

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

end of thread, other threads:[~2005-01-11  3:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-11  0:57 scsi_unregister_driver in 2.6.10 Vivek Mahajan
2005-01-11  3:00 ` Matthew Wilcox
2005-01-11  3:20   ` Vivek Mahajan

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