[ldv-project] Fwd: Patch 'usb: phy: remove exported function from __init section' applied to my tree

Denis Yefremov yefremov.denis at gmail.com
Tue Apr 23 19:06:12 MSK 2013


---------- Forwarded message ----------
From: <balbi at ti.com>
Date: 2013/4/23
Subject: Patch 'usb: phy: remove exported function from __init section'
applied to my tree
To: yefremov.denis at gmail.com
Cc: yefremov.denis at gmail.com, balbi at ti.com


Hi,

This is a note to let you know that the patch:

        usb: phy: remove exported function from __init section

has been applied to my tree and can be found at:

        http://bit.ly/11IARrq

a snapshot of the tree can be downloaded from:

        http://bit.ly/13UfTN1

Note that it might take up to 20 minutes for kernel.org to synchronize
the changes to its frontend servers.

If you have any concerns, please let me know by replying to this mail.

>From 19d8ceddda8b3a806a0960106ae6aa4dcc21df3b Mon Sep 17 00:00:00 2001
From: Denis Efremov <yefremov.denis at gmail.com>
Date: Thu, 18 Apr 2013 17:13:31 +0400
Subject: [PATCH] usb: phy: remove exported function from __init section

The symbol usb_bind_phy is exported and annotated __init.
It looks like section mismatch. Fix by removing the
__init annotation of usb_bind_phy.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Denis Efremov <yefremov.denis at gmail.com>
Signed-off-by: Felipe Balbi <balbi at ti.com>
---
 drivers/usb/phy/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c
index f52c006..a9984c7 100644
--- a/drivers/usb/phy/phy.c
+++ b/drivers/usb/phy/phy.c
@@ -413,7 +413,7 @@ EXPORT_SYMBOL_GPL(usb_remove_phy);
  *
  * To be used by platform specific initialization code.
  */
-int __init usb_bind_phy(const char *dev_name, u8 index,
+int usb_bind_phy(const char *dev_name, u8 index,
                                const char *phy_dev_name)
 {
        struct usb_phy_bind *phy_bind;
--
1.8.2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxtesting.org/pipermail/ldv-project/attachments/20130423/90ad582a/attachment.html>


More information about the ldv-project mailing list