[Linux-Xtensa] [PATCH 6/7] xtensa: ISS: fix section mismatch in iss_net_setup

Max Filippov jcmvbkbc at gmail.com
Mon May 27 09:21:49 PDT 2013


iss_net_setup is only called from __setup, so it should be marked
__init.

Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
---
 arch/xtensa/platforms/iss/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/xtensa/platforms/iss/network.c b/arch/xtensa/platforms/iss/network.c
index 7d0fea6..56f88b7 100644
--- a/arch/xtensa/platforms/iss/network.c
+++ b/arch/xtensa/platforms/iss/network.c
@@ -700,7 +700,7 @@ struct iss_net_init {
 
 #define ERR KERN_ERR "iss_net_setup: "
 
-static int iss_net_setup(char *str)
+static int __init iss_net_setup(char *str)
 {
 	struct iss_net_private *device = NULL;
 	struct iss_net_init *new;
-- 
1.7.7.6



More information about the linux-xtensa mailing list