Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758649AbYBRKf4 (ORCPT ); Mon, 18 Feb 2008 05:35:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755651AbYBRKfs (ORCPT ); Mon, 18 Feb 2008 05:35:48 -0500 Received: from ns1.suse.de ([195.135.220.2]:38054 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755584AbYBRKfr (ORCPT ); Mon, 18 Feb 2008 05:35:47 -0500 Date: Mon, 18 Feb 2008 11:35:46 +0100 Message-ID: From: Takashi Iwai To: Sam Ravnborg Cc: LKML , Andrew Morton , Daniel Mack , Jaroslav Kysela Subject: Re: [PATCH 20/27] [ALSA] caiaq - fix section mismatch warning In-Reply-To: <1203250984-11285-20-git-send-email-sam@ravnborg.org> References: <20080217121255.GA10519@uranus.ravnborg.org> <1203250984-11285-20-git-send-email-sam@ravnborg.org> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta28) (fuki) (+CVS-20070806) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 998 Lines: 27 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 > Cc: Daniel Mack > Cc: Takashi Iwai > Cc: Jaroslav Kysela 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/