]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
parisc: Move find_pa_parent_type() out of init section
authorHelge Deller <deller@gmx.de>
Fri, 18 May 2018 14:08:10 +0000 (16:08 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 18 May 2018 14:21:48 +0000 (16:21 +0200)
The 0-DAY kernel test infrastructure reported that inet_put_port() may
reference the find_pa_parent_type() function, so it can't be moved into the
init section.

Fixes: b86db40e1ecc ("parisc: Move various functions and strings to init section")
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/drivers.c

index ee5a78a151a6acac9b4520892fac57ba4c6e5f71..e0e1c9775c320b46d85da0f2e6ce22bc2275b9fb 100644 (file)
@@ -268,7 +268,7 @@ static struct parisc_device *find_device_by_addr(unsigned long hpa)
  * Walks up the device tree looking for a device of the specified type.
  * If it finds it, it returns it.  If not, it returns NULL.
  */
-const struct parisc_device * __init
+const struct parisc_device *
 find_pa_parent_type(const struct parisc_device *padev, int type)
 {
        const struct device *dev = &padev->dev;