From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 6/7] Char: stallion, mark functions as init
Date: Fri, 13 Oct 2006 23:09:10 +0200 (CEST) [thread overview]
Message-ID: <2287885601299026682@wsc.cz> (raw)
stallion, mark functions as init
Use __init macro for functions, that may be freed after initialization.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit d98c2128256f2d3e12868353ae0b07e68f47428a
tree 895047d691ed284a2a174517032a76c4746cd5e8
parent 76e0df22163abb8b552f6e77652839b40a76752d
author Jiri Slaby <jirislaby@gmail.com> Fri, 13 Oct 2006 00:14:58 +0200
committer Jiri Slaby <jirislaby@gmail.com> Fri, 13 Oct 2006 00:14:58 +0200
drivers/char/stallion.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c
index 02bd0ba..51f46c2 100644
--- a/drivers/char/stallion.c
+++ b/drivers/char/stallion.c
@@ -700,7 +700,7 @@ static struct class *stallion_class;
* Check for any arguments passed in on the module load command line.
*/
-static void stl_argbrds(void)
+static void __init stl_argbrds(void)
{
struct stlconf conf;
struct stlbrd *brdp;
@@ -767,7 +767,7 @@ static unsigned long stl_atol(char *str)
* Parse the supplied argument string, into the board conf struct.
*/
-static int stl_parsebrd(struct stlconf *confp, char **argp)
+static int __init stl_parsebrd(struct stlconf *confp, char **argp)
{
char *sp;
int i;
@@ -2016,7 +2016,7 @@ static int __init stl_initports(struct s
* Try to find and initialize an EasyIO board.
*/
-static int stl_initeio(struct stlbrd *brdp)
+static int __init stl_initeio(struct stlbrd *brdp)
{
struct stlpanel *panelp;
unsigned int status;
@@ -2157,7 +2157,7 @@ static int stl_initeio(struct stlbrd *br
* dealing with all types of ECH board.
*/
-static int stl_initech(struct stlbrd *brdp)
+static int __init stl_initech(struct stlbrd *brdp)
{
struct stlpanel *panelp;
unsigned int status, nxtid, ioaddr, conflict;
@@ -2416,7 +2416,7 @@ static int __init stl_brdinit(struct stl
* Find the next available board number that is free.
*/
-static int stl_getbrdnr(void)
+static int __init stl_getbrdnr(void)
{
int i;
@@ -2440,7 +2440,7 @@ #ifdef CONFIG_PCI
* configuration space.
*/
-static int stl_initpcibrd(int brdtype, struct pci_dev *devp)
+static int __init stl_initpcibrd(int brdtype, struct pci_dev *devp)
{
struct stlbrd *brdp;
@@ -2502,7 +2502,7 @@ static int stl_initpcibrd(int brdtype, s
*/
-static int stl_findpcibrds(void)
+static int __init stl_findpcibrds(void)
{
struct pci_dev *dev = NULL;
int i, rc;
@@ -2538,7 +2538,7 @@ #endif
* since the initial search and setup is too different.
*/
-static int stl_initbrds(void)
+static int __init stl_initbrds(void)
{
struct stlbrd *brdp;
struct stlconf *confp;
reply other threads:[~2006-10-13 21:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2287885601299026682@wsc.cz \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox