public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dev_printk() is now GPL-only
@ 2006-08-07  2:57 Matthew Wilcox
  2006-08-07  3:09 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2006-08-07  2:57 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel


Does dev_driver_string() really need to be GPL-only?  Up to this point,
proprietary modules have been entitled to call dev_printk(), but now:

#define dev_printk(level, dev, format, arg...)  \
        printk(level "%s %s: " format , dev_driver_string(dev) , (dev)->bus_id , ## arg)

with

EXPORT_SYMBOL_GPL(dev_driver_string);

means that they're not allowed to.

On a related note, one might wonder if

        return dev->driver ? dev->driver->name :
	                        (dev->bus ? dev->bus->name : "");

really qualifies for the full weight of copyright enforcement, and query
whether using it makes your driver a derived work.  Particularly since
all one is doing is asking the kernel for a nice printk prefix and know
nothing about the innards of the device model.


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

end of thread, other threads:[~2006-09-24  5:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07  2:57 dev_printk() is now GPL-only Matthew Wilcox
2006-08-07  3:09 ` Greg KH
2006-09-24  5:35   ` Matthew Wilcox

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