lkml.org 
[lkml]   [2006]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] pktgen: Adds missing __init.

>diff --git a/net/core/pktgen.c b/net/core/pktgen.c
>index 06cad2d..5eeae0d 100644
>--- a/net/core/pktgen.c
>+++ b/net/core/pktgen.c
>@@ -2883,7 +2883,7 @@ static int pktgen_add_device(struct pktg
> return add_dev_to_thread(t, pkt_dev);
> }
>
>-static struct pktgen_thread *pktgen_find_thread(const char* name)
>+static struct pktgen_thread __init *pktgen_find_thread(const char* name)

I do not know what CodingStyle says about it (it is correct GCC code),
what do the others think of the more often placement of __init as in
__init static struct pktgen_thread *pktgen_find_thread(const char *name)
or
static __init struct pktgen_thread *pktgen_find_thread(const char *name)
[depending on what people like]



Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-06 20:09    [W:0.037 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site