All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabian Frederick <fabf@skynet.be>
To: alsa-devel@alsa-project.org
Cc: Fabian Frederick <fabf@skynet.be>, Takashi Iwai <tiwai@suse.de>
Subject: [PATCH 1/1] OSS/DMASOUND: add __init to dmasound_init
Date: Mon,  9 Jun 2014 16:53:59 +0200	[thread overview]
Message-ID: <1402325639-2376-1-git-send-email-fabf@skynet.be> (raw)

dmasound_init is only called by __init functions:

__init dmasound_q40_init
__init amiga_audio_probe
__init dmasound_atari_init

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 sound/oss/dmasound/dmasound.h      | 2 +-
 sound/oss/dmasound/dmasound_core.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/oss/dmasound/dmasound.h b/sound/oss/dmasound/dmasound.h
index 01019f0..a181ed2 100644
--- a/sound/oss/dmasound/dmasound.h
+++ b/sound/oss/dmasound/dmasound.h
@@ -86,7 +86,7 @@ static inline int ioctl_return(int __user *addr, int value)
      *  Initialization
      */
 
-extern int dmasound_init(void);
+extern int __init dmasound_init(void);
 #ifdef MODULE
 extern void dmasound_deinit(void);
 #else
diff --git a/sound/oss/dmasound/dmasound_core.c b/sound/oss/dmasound/dmasound_core.c
index f4ee85a..1f0a42c 100644
--- a/sound/oss/dmasound/dmasound_core.c
+++ b/sound/oss/dmasound/dmasound_core.c
@@ -1394,7 +1394,7 @@ static int state_init(void)
      *  This function is called by _one_ chipset-specific driver
      */
 
-int dmasound_init(void)
+int __init dmasound_init(void)
 {
 	int res ;
 #ifdef MODULE
-- 
1.8.4.5

             reply	other threads:[~2014-06-09 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 14:53 Fabian Frederick [this message]
2014-06-11  5:10 ` [PATCH 1/1] OSS/DMASOUND: add __init to dmasound_init Fabian Frederick

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=1402325639-2376-1-git-send-email-fabf@skynet.be \
    --to=fabf@skynet.be \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.