From patchwork Tue Nov 18 12:12:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5328091 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3AA6CC11AC for ; Tue, 18 Nov 2014 12:13:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C7AD20136 for ; Tue, 18 Nov 2014 12:13:39 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0BF6320179 for ; Tue, 18 Nov 2014 12:13:38 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0BEF626514A; Tue, 18 Nov 2014 13:13:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id D579E260487; Tue, 18 Nov 2014 13:13:26 +0100 (CET) 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 322C426049C; Tue, 18 Nov 2014 13:13:25 +0100 (CET) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by alsa0.perex.cz (Postfix) with ESMTP id DF41A260476 for ; Tue, 18 Nov 2014 13:13:16 +0100 (CET) Received: by mail-pd0-f173.google.com with SMTP id ft15so2328031pdb.18 for ; Tue, 18 Nov 2014 04:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=GuGcCNYYcflNkMLuzVraFNOM6l1q96GHOB40tAga3IU=; b=RjYAUj7jg7+jllBcYlFaqDmS+iN+2uKqgLXNLpeVmqIubJG0s1rXi3HTAwuSnLFJEe 5UcvldA/AR9f+st6bTTbX+PY1c6YN9Mtw3CjNIYHf1ZHaezbHcPowrk3hQvNUa38kepv ptEo1P7ouEqEOLEDd3MXDvatWigPkSk1D39DSCQj8t4vKct2+9X6PXUNFNcwdMvtBjQD GfaQ+llBQNfNQb4bOy2eWGXJXRZ0NVEGvx3v3c/jLt8EZHs8kWGXf9A4TfjPXlIuSXQc +RaTORp+mOLXvCaf+ViDoHfCFJf9X/HBQ5/0hGIxmWeqU1BWTQE6TEPosIeEj6a36X6l RI8w== X-Received: by 10.68.87.226 with SMTP id bb2mr10645776pbb.136.1416312794618; Tue, 18 Nov 2014 04:13:14 -0800 (PST) Received: from localhost.localdomain ([122.169.182.195]) by mx.google.com with ESMTPSA id lg8sm7153310pab.41.2014.11.18.04.13.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Nov 2014 04:13:13 -0800 (PST) From: Sudip Mukherjee To: Bard Liao , Oder Chiou , Liam Girdwood , Mark Brown , Takashi Iwai Date: Tue, 18 Nov 2014 17:42:54 +0530 Message-Id: <1416312774-4472-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: alsa-devel@alsa-project.org, Sudip Mukherjee , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: rt286: build warning of 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 From: Sudip Mukherjee while building we were getting the following build warning: Section mismatch in reference from the function rt286_i2c_probe() to the variable .init.data:force_combo_jack_table The function rt286_i2c_probe() references the variable __initdata force_combo_jack_table. This is often because rt286_i2c_probe lacks a __initdata annotation or the annotation of force_combo_jack_table is wrong. we were getting the warning as force_combo_jack_table was marked with __initdata Signed-off-by: Sudip Mukherjee --- sound/soc/codecs/rt286.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c index 2e818aa..2cd4fe4 100644 --- a/sound/soc/codecs/rt286.c +++ b/sound/soc/codecs/rt286.c @@ -1206,7 +1206,7 @@ static const struct acpi_device_id rt286_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, rt286_acpi_match); -static struct dmi_system_id force_combo_jack_table[] __initdata = { +static struct dmi_system_id force_combo_jack_table[] = { { .ident = "Intel Wilson Beach", .matches = {