linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Section mismatch in drivers/usb/gadget/fotg210-udc.c
@ 2013-06-19 20:06 Paul Gortmaker
       [not found] ` <1371736393-5518-1-git-send-email-yhchen@faraday-tech.com>
  2013-07-03 17:00 ` Section mismatch in drivers/usb/gadget/fotg210-udc.c Paul Gortmaker
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Gortmaker @ 2013-06-19 20:06 UTC (permalink / raw)
  To: Yuan-Hsin Chen; +Cc: Felipe Balbi, linux-next@vger.kernel.org, linux-usb

Hi guys,

This was seen on a linux-next (Jun18th tree) allmodconfig build:

WARNING: drivers/usb/gadget/fotg210-udc.o(.data+0x0): Section mismatch in reference from the variable fotg210_driver to the function .init.text:fotg210_udc_probe()
The variable fotg210_driver references
the function __init fotg210_udc_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Paul.

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

* Re: [PATCH] usb: gadget: fotg210-udc: Use module_platform_driver_probe macro
       [not found] ` <1371736393-5518-1-git-send-email-yhchen@faraday-tech.com>
@ 2013-06-20 12:16   ` Felipe Balbi
       [not found]     ` <20130620121610.GE9817-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2013-06-20 12:16 UTC (permalink / raw)
  To: Yuan-Hsin Chen; +Cc: balbi, linux-next, linux-usb, fengguang.wu, paul.gortmaker

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

Hi,

On Thu, Jun 20, 2013 at 01:53:13PM +0000, Yuan-Hsin Chen wrote:
> Because fotg210-udc is configured as a non-hotpluggable device,
> that makes sense to use module_platform_driver_probe() instead of
> module_platform_driver(). This also fixes the section mismatch issue.
> 
> Signed-off-by: Yuan-Hsin Chen <yhchen@faraday-tech.com>

I would rather see you remove __init annotation from your probe()
function. The reason being that it will users to bind/unbind the driver
through sysfs, which is pretty good for testing, at least.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] usb: gadget: fotg210-udc: Use module_platform_driver_probe macro
       [not found]     ` <20130620121610.GE9817-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
@ 2013-06-21  6:36       ` Yuan-Hsin Chen
  0 siblings, 0 replies; 5+ messages in thread
From: Yuan-Hsin Chen @ 2013-06-21  6:36 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Yuan-Hsin Chen,
	linux-next-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, USB list,
	fengguang.wu-ral2JQCrhuEAvxtiuMwx3w, Paul Gortmaker

Hi,


On Thu, Jun 20, 2013 at 8:16 PM, Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> wrote:
>
> Hi,
>
> On Thu, Jun 20, 2013 at 01:53:13PM +0000, Yuan-Hsin Chen wrote:
> > Because fotg210-udc is configured as a non-hotpluggable device,
> > that makes sense to use module_platform_driver_probe() instead of
> > module_platform_driver(). This also fixes the section mismatch issue.
> >
> > Signed-off-by: Yuan-Hsin Chen <yhchen-w0jeGXs5+AWXmMXjJBpWqg@public.gmane.org>
>
> I would rather see you remove __init annotation from your probe()
> function. The reason being that it will users to bind/unbind the driver
> through sysfs, which is pretty good for testing, at least.

I see and will send a patch later. Thanks.

Yuan-Hsin

>
>
> --
> balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Section mismatch in drivers/usb/gadget/fotg210-udc.c
  2013-06-19 20:06 Section mismatch in drivers/usb/gadget/fotg210-udc.c Paul Gortmaker
       [not found] ` <1371736393-5518-1-git-send-email-yhchen@faraday-tech.com>
@ 2013-07-03 17:00 ` Paul Gortmaker
       [not found]   ` <CAP=VYLpsF7bmF2HZ84_WV0YtbGqHoPDMaE=a9p9UhovHeckkRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Gortmaker @ 2013-07-03 17:00 UTC (permalink / raw)
  To: Yuan-Hsin Chen; +Cc: Felipe Balbi, linux-next@vger.kernel.org, linux-usb

On Wed, Jun 19, 2013 at 4:06 PM, Paul Gortmaker
<paul.gortmaker@windriver.com> wrote:
> Hi guys,
>
> This was seen on a linux-next (Jun18th tree) allmodconfig build:
>
> WARNING: drivers/usb/gadget/fotg210-udc.o(.data+0x0): Section mismatch in reference from the variable fotg210_driver to the function .init.text:fotg210_udc_probe()
> The variable fotg210_driver references
> the function __init fotg210_udc_probe()
> If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Hi,

Wondering if this fell through the cracks?   I recall the fix being discussed,
but yet I'm still seeing the problem when I build today's linux-next, and the
merge window has already opened on Monday.

Paul.
--


>
> Paul.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-next" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Section mismatch in drivers/usb/gadget/fotg210-udc.c
       [not found]   ` <CAP=VYLpsF7bmF2HZ84_WV0YtbGqHoPDMaE=a9p9UhovHeckkRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-07-03 17:08     ` Paul Gortmaker
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Gortmaker @ 2013-07-03 17:08 UTC (permalink / raw)
  To: Yuan-Hsin Chen
  Cc: Felipe Balbi, linux-next-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA

On Wed, Jul 3, 2013 at 1:00 PM, Paul Gortmaker
<paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> wrote:
> On Wed, Jun 19, 2013 at 4:06 PM, Paul Gortmaker
> <paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> wrote:
>> Hi guys,
>>
>> This was seen on a linux-next (Jun18th tree) allmodconfig build:
>>
>> WARNING: drivers/usb/gadget/fotg210-udc.o(.data+0x0): Section mismatch in reference from the variable fotg210_driver to the function .init.text:fotg210_udc_probe()
>> The variable fotg210_driver references
>> the function __init fotg210_udc_probe()
>> If the reference is valid then annotate the
>> variable with __init* or __refdata (see linux/init.h) or name the variable:
>> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
>
> Hi,
>
> Wondering if this fell through the cracks?   I recall the fix being discussed,
> but yet I'm still seeing the problem when I build today's linux-next, and the
> merge window has already opened on Monday.

I guess Yuan-Hsin isn't even able to see these mails; I'm getting a
rather odd bounce message:

-----------------
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the
server for the recipient domain faraday-tech.com by
mailhost1.faraday-tech.com. [210.59.249.140].

The error that the other server returned was:
553 5.1.3 <yhchen-w0jeGXs5+AWXmMXjJBpWqg@public.gmane.org>... Check FTC account failure!
-----------------

I've no idea what that means, other than the fix will probably have to
come from someone other than Yuan-Hsin...

Paul.
--

>
> Paul.
> --
>
>
>>
>> Paul.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-next" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-07-03 17:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-19 20:06 Section mismatch in drivers/usb/gadget/fotg210-udc.c Paul Gortmaker
     [not found] ` <1371736393-5518-1-git-send-email-yhchen@faraday-tech.com>
2013-06-20 12:16   ` [PATCH] usb: gadget: fotg210-udc: Use module_platform_driver_probe macro Felipe Balbi
     [not found]     ` <20130620121610.GE9817-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2013-06-21  6:36       ` Yuan-Hsin Chen
2013-07-03 17:00 ` Section mismatch in drivers/usb/gadget/fotg210-udc.c Paul Gortmaker
     [not found]   ` <CAP=VYLpsF7bmF2HZ84_WV0YtbGqHoPDMaE=a9p9UhovHeckkRg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-03 17:08     ` Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).