Re: [PATCH] do not call trace_printk on non-debug build

From: Greg KH
Date: Wed Apr 25 2018 - 02:12:46 EST


On Tue, Apr 24, 2018 at 07:02:34PM +0000, Wei Wang wrote:
> We have seen many cases vendor have shipped kernel/drivers with it, and
> have to clean up that every year. This was brought up in an internal
> discussion and Greg suggested have some feedback from upstream about what
> should be taken to prevent this globally besides fixing individual drivers.
> From him "I think this change makes sense at a high level, but there could
> be non-obvious reasons why this isn't the way things are handled right now."

I said that? Heh, I normally say things like "fix all the stupid
drivers", you must have caught me on a good day :)

Anyway, the drivers should be fixed, if they are doing foolish things
like this, the core kernel should not be "protecting them from
themselves", that way lies madness, just talk to the Windows kernel
developers about the hoops they jump through for this type of stuff...

thanks,

greg k-h