From: Andrew Morton Date: Sun, 25 Jun 2006 12:47:32 +0000 (-0700) Subject: [PATCH] msnd section fix X-Git-Tag: v2.6.18-rc1~1008 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a2926b1449bcc3d348e2228114b04869dc2f3986;p=linux-2.6-omap-h63xx.git [PATCH] msnd section fix WARNING: sound/oss/msnd.o - Section mismatch: reference to .init.text:msnd_register from __ksymtab between '__ksymtab_msnd_register' (at offset 0x0) and '__ksymtab_msnd_unregister' This symbol is exported. It'll oops if the driver is nonmodular and the caller is modular. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/sound/oss/msnd.c b/sound/oss/msnd.c index 5dbfc0f9c3c..ba38d620009 100644 --- a/sound/oss/msnd.c +++ b/sound/oss/msnd.c @@ -47,7 +47,7 @@ static multisound_dev_t *devs[MSND_MAX_DEVS]; static int num_devs; -int __init msnd_register(multisound_dev_t *dev) +int msnd_register(multisound_dev_t *dev) { int i;