Re: usb gadget Section mismatch warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 30 Mar 2011 10:42:46 -0400 (EDT) Alan Stern wrote:

> On Tue, 29 Mar 2011, Randy Dunlap wrote:
> 
> > In 2.6.39-rc1 on x86_64, I get 92 total section mismatch warnings.
> > usb/gadget accounts for 75 of those.
> > 
> > Does usb/gadget code have any special considerations for hotplug-ability
> > that is different from the rest of the kernel source tree?
> 
> As far as I know, there are no special requirements.  The mismatches 
> probably arose for historical reasons.  People working on gagdget 
> drivers tend to be oriented toward embedded systems, where minimizing 
> memory consumption is a prime concern.  Therefore they try hard to make 
> sure that code and data can be unloaded when no longer needed.  But 
> when the first gadget drivers were being written, the rules for doing 
> this correctly weren't clearly understood and mistakes were made.  
> Later drivers copied those mistakes, and nobody cared about the 
> mismatch warnings badly enough to fix them.

OK, thanks for the info.

> In theory, fixing them should be a straightforward, almost mechanical 
> job.  Provided one can track down the exact causes, of course.  There 
> used to be a Kbuild option for diagnosing section mismatches, but I 
> can't find it now -- and I don't remember how much detail it provided.

Sure, I already build with CONFIG_DEBUG_SECTION_MISMATCH=y for added
diagnostics.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux