Re: [PATCH 20/27] [ALSA] caiaq - fix section mismatch warning

From: Takashi Iwai
Date: Mon Feb 18 2008 - 05:35:58 EST


At Sun, 17 Feb 2008 13:22:57 +0100,
Sam Ravnborg wrote:
>
> Fix following warning:
> WARNING: vmlinux.o(.text+0x11ec01a): Section mismatch in reference from the function setup_card() to the function .devinit.text:snd_usb_caiaq_control_init()
>
> setup_card() are only used by init_card().
> init_card() are only used by snd_probe()
> snd_probe() are used for the .probe parameter in usb_driver.probe
>
> Annotate them all __devinit to fix the warning.
>
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Cc: Daniel Mack <daniel@xxxxxxxx>
> Cc: Takashi Iwai <tiwai@xxxxxxx>
> Cc: Jaroslav Kysela <perex@xxxxxxxx>

Thanks, applied to ALSA tree now. I did another fix for this section
mismatch, but reverted it now since yours is better :)


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