linux-mips-fnet
[Top] [All Lists]

__initfunc(), kernel coding logic?

To: linux-mips@fnet.fr
Subject: __initfunc(), kernel coding logic?
From: Richard van den Berg <R.vandenBerg@inter.NL.net>
Date: Thu, 2 Jul 1998 17:28:15 +0200 (MET DST)
Hi,

I am stuck with __initfunc(), trying to make the ethernet driver more
talkative while booting I didn't succeed. So I replaced it with these
lines of code:

---------------

#include <linux/kernel.h>

__initfunc(void my_test(void))
{

        printk("see if this shows up\n");

        return 0;
}

---------------

It compiles with "declance.c:4: warning: return-type defaults to `int'"
and gets nicely archived and linked but doesn't show up when booting. My
question is what likes __initfunc() to see to behave decently?

Regards,

Richard

<Prev in Thread] Current Thread [Next in Thread>