From patchwork Thu Apr 24 06:25:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 4045771 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1BD369F1F4 for ; Thu, 24 Apr 2014 06:26:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 545AC2025A for ; Thu, 24 Apr 2014 06:26:25 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 695CD2022D for ; Thu, 24 Apr 2014 06:26:24 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8ED96265208; Thu, 24 Apr 2014 08:26:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 97366261673; Thu, 24 Apr 2014 08:26:10 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id D4072261673; Thu, 24 Apr 2014 08:26:08 +0200 (CEST) Received: from smtp-out-171.synserver.de (smtp-out-175.synserver.de [212.40.185.175]) by alsa0.perex.cz (Postfix) with ESMTP id C53E5261673 for ; Thu, 24 Apr 2014 08:26:00 +0200 (CEST) Received: (qmail 11262 invoked by uid 0); 24 Apr 2014 06:25:58 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 11104 Received: from ppp-188-174-32-4.dynamic.mnet-online.de (HELO lars-adi-laptop.fritz.box) [188.174.32.4] by 217.119.54.81 with SMTP; 24 Apr 2014 06:25:57 -0000 From: Lars-Peter Clausen To: Mark Brown , Liam Girdwood Date: Thu, 24 Apr 2014 08:25:56 +0200 Message-Id: <1398320756-18123-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 Cc: Fabio Estevam , Sascha Hauer , Lars-Peter Clausen , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ASoC: imx-audmux: Fix section mismatch X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP audmux_debugfs_init() is marked as __init, but is called from imx_audmux_probe() which is not marked as __init. This creates a section mismatch and a potential runtime crash (if imx_audmux_probe() is called after the .init section was dropped). This patch removes the __init annotation from audmux_debugfs_init(), which fixes the following warning: WARNING: sound/soc/built-in.o(.text+0x86960): Section mismatch in reference from the function imx_audmux_probe() to the function .init.text:audmux_debugfs_init() Signed-off-by: Lars-Peter Clausen --- sound/soc/fsl/imx-audmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index ac86993..267717a 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c @@ -145,7 +145,7 @@ static const struct file_operations audmux_debugfs_fops = { .llseek = default_llseek, }; -static void __init audmux_debugfs_init(void) +static void audmux_debugfs_init(void) { int i; char buf[20];