From patchwork Tue Jan 7 21:48:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 182772 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp3355798och; Sun, 12 Jan 2020 08:55:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyFLvd8Nfg9c55Pc/WOAZ+9Fv1pid+t+weKa4VvtPcMhI7vjrWTFVMhOADtRFmPj17gZ5qb X-Received: by 2002:a5d:6346:: with SMTP id b6mr14090060wrw.354.1578845870874; Sun, 12 Jan 2020 08:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578845870; cv=none; d=google.com; s=arc-20160816; b=O3E668+FsKJNU6iZFI+QQueHMmk/te7+5ZXbMY/iQg4B6zRjQ3yiDYdLfBlvBySuMG 3FHSG7XnBLDQhZjn52ZOkjmktQMihO4RP9JL/jQcNO6Rki6coNb6KMmNGwk2cEzKQHY1 +Cy3bVe1wmYQ8QIgzpHez7+HSq9Jn0ii+WmvZm0lrckKs9y9Z0IHjrrcf0AndVYlg85j /oRFE380ZJg197K0j93zyiQgTqzwkTYRI0nschBFp/EV7JDThj6sAFNhxkvgo8ffz1dN C47oLh0YYLFF2iLRIvrsYqfdg1ebeSPqFB+c1/lFOmoFDNQxD4/6iLTO8ALm/bcB+NW0 ToDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-filter:delivered-to :dkim-signature:dkim-filter; bh=JCuus1NvDM3Zu6ksMvtHH/xe0q9D6nl0CS7aRsRZ2d4=; b=UkDWt3pPh4NWXOAcrYOi903ISB1sJlpodP8icTBiluu4J1iClHASxPlVuVxwD0hlgE ee3xrus9ueZql7mli16oVS+ozgu6cFf6kuZpt7bdgnkO0AxCzrIcInl4Lrd1lRat/28E XVbHL9eDXgqqeA9Er/bdaGVb6eipgw6jW4iCzfvBA8ZjWw0H4Wc/lDlutd4YNahMZ3Ny Gw1DqZQ/KiWXCOhsJXvhdgAMi5pejMHkl7na92gVULh8k0D2BYcH97l8p5i/zdiaJiXv C8YAZnGk5PKF1iS8VRnTCHFxCieL3QL4fjE6zXQq8g1Qy3WYIeIO9q/n7w62lthtpsLY pqog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=YFhJGv6b; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id z2si7538305wrp.315.2020.01.12.08.17.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jan 2020 08:17:50 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=YFhJGv6b; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B5D8517A2; Tue, 7 Jan 2020 22:49:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B5D8517A2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1578433794; bh=lQNUQvV7INsB/vZ+y77ZZ6nfNBONHtEaD8bXkVXWOh8=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=YFhJGv6bkyC1B1UWrKLVU9eDdDb54eaWD9ifC3KmTGxqWps4DssPuKUNBTouiOBa8 FjA8rHGHbsMbnVKV8mZO1BaaFgnCNUEMIjkbJb9arf4/u5Ka9zq4QJ5XvTmjIT7ySo n1ObwISC+W7EKexS0NO/2557hEZlnR39/AkBSh5w= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 39AE3F80140; Tue, 7 Jan 2020 22:49:04 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id AF49EF8010B; Tue, 7 Jan 2020 22:49:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B2F3EF8010B for ; Tue, 7 Jan 2020 22:48:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B2F3EF8010B Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MhDIw-1jK8o71gSg-00eM6j; Tue, 07 Jan 2020 22:48:49 +0100 From: Arnd Bergmann To: Liam Girdwood , Mark Brown , "Angus Ainslie (Purism)" Date: Tue, 7 Jan 2020 22:48:35 +0100 Message-Id: <20200107214846.1284981-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:hgbuQXLAyzDG0JLda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7s87lS3kIS FgidAOeuevJObQ50bHXv4L660UbaB6NlG1LAyBViHHO+b6q9gwVkwRvlgR+gGpsPxvqsgIW8l 6RkABryq024BZXlNUo7A== Cc: alsa-devel@alsa-project.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Takashi Iwai , Thomas Gleixner , Enrico Weigelt , Allison Randal Subject: [alsa-devel] [PATCH] ASoC: gtm601: fix build warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The driver produces warnings without CONFIG_OF, and makes no sense without it either: sound/soc/codecs/gtm601.c:50:34: error: 'bm818_dai' defined but not used [-Werror=unused-variable] static struct snd_soc_dai_driver bm818_dai = { ^~~~~~~~~ sound/soc/codecs/gtm601.c:32:34: error: 'gtm601_dai' defined but not used [-Werror=unused-variable] static struct snd_soc_dai_driver gtm601_dai = { ^~~~~~~~~~ Remove the #ifdef check to avoid the warning. Fixes: 057a317a8d94 ("ASoC: gtm601: add Broadmobi bm818 sound profile") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/gtm601.c | 2 -- 1 file changed, 2 deletions(-) -- 2.20.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c index 7f05ebcb88d1..ae9e1c70ca57 100644 --- a/sound/soc/codecs/gtm601.c +++ b/sound/soc/codecs/gtm601.c @@ -87,14 +87,12 @@ static int gtm601_platform_probe(struct platform_device *pdev) (struct snd_soc_dai_driver *)dai_driver, 1); } -#if defined(CONFIG_OF) static const struct of_device_id gtm601_codec_of_match[] = { { .compatible = "option,gtm601", .data = (void *)>m601_dai }, { .compatible = "broadmobi,bm818", .data = (void *)&bm818_dai }, {}, }; MODULE_DEVICE_TABLE(of, gtm601_codec_of_match); -#endif static struct platform_driver gtm601_codec_driver = { .driver = {