Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391575pxb; Fri, 20 Nov 2020 08:23:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLNMrLUbKDEvcQ9Dx6tT04fbLd+rtMp2gR0obSCkorRqoqUVXO+A7aEnCvsrrnll4qG9qO X-Received: by 2002:a05:6402:2065:: with SMTP id bd5mr1135198edb.48.1605889395623; Fri, 20 Nov 2020 08:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889395; cv=none; d=google.com; s=arc-20160816; b=xrXicYOUjs26t+FDhsjTudvgCWwMqUGvSYQWQBlw8cuck1pjioddNuPCwTM8rpAzi3 /xxrvzmycVSOOnQ0Uq396H5paIOxzZIbd5XELXAnSAXh1nSt87JBmdh9FqL9Kzjv96mY Gwlxenm03bNSjJFu9VgcLQHqXCXmPHxqDbXyGxlW8ZYPR00TUBoeRGfsmiM4o6uANdKL C/pAJx94sXTW/ROCiMtF1ctpk3TV3/e5ru9+e2/NCIrzpcXL/9jseZ6Ubfvk7lgu6NLk KChjhps/a+qi8Q3ko0LGf1m5QEtDT83AgLTmFqJkNkRq0dEznJ7Fq12KQoKn6izGyHgn GR4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=roCzBSMaqcs2PlhVy9U9u9Xkh6NwEpPgMxE1yUN3UjY=; b=q7XC45Y/Kk2yhcg6m2BVAkne/9US5/X6wVMHVBY/iZXFUF7m2Hxx/92ItRIaMsMyUr sPHSZv25YlDXrAdV+tPFIVHHHKUasKHm88VeVz6zPZDoLsc6CVUzUPqTRkTHh46zyax+ R0KLn0mZ05pUFug36PwWcw4hNpBSITPWL8/NE/gsRdy6/KE+0/qH5kRwXGf799LPEdY4 y00MxaZfE79RLJcPSx2K6Dyes8rT6FgbD9DSsx+rFvR4h4yCw0LP7LSZdR1YxBDaobPY EGcRlXnQ36lY/g+RfcTEr1TJa/VeYxRIyPB2pgHWVucJLLI+HRVToVfqpTjcF5lH/qu4 Vo+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zMPhRu0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si2000956edq.430.2020.11.20.08.22.53; Fri, 20 Nov 2020 08:23:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zMPhRu0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729379AbgKTQSr (ORCPT + 99 others); Fri, 20 Nov 2020 11:18:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:35872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729355AbgKTQSo (ORCPT ); Fri, 20 Nov 2020 11:18:44 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BE1A924137; Fri, 20 Nov 2020 16:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889124; bh=hUJkunHo8Nfcr2uWL1x9GpPMBlvI204ks175M5PYJr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zMPhRu0Os3XEKHUs+gGQOmsihnr3R/UocQ7H0e1Ol0a61S50PPPs4pbp3QjRPE2C1 0UPxFy/E5EGty3PwH1bNn4cuHw67Z4+7SoMFvJxT/ee9E+xlkkZq17Mh5Q80DzTJvi xfJYeQ6OstFhB5AZ3cuGsLKEDoK+FJBVdnz2s8t4= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Support Opensource , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 17/38] ASoC: da7219: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:31 +0100 Message-Id: <20201120161653.445521-17-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120161653.445521-1-krzk@kernel.org> References: <20201120161653.445521-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match by multiple methods. Its of_device_id table is referenced via of_match_ptr() so it will be unused for !CONFIG_OF builds: sound/soc/codecs/da7219.c:1705:34: warning: ‘da7219_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/da7219.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 0b3b7909efc9..e9b45daec0ca 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -1702,11 +1702,13 @@ static struct snd_soc_dai_driver da7219_dai = { * DT/ACPI */ +#ifdef CONFIG_OF static const struct of_device_id da7219_of_match[] = { { .compatible = "dlg,da7219", }, { } }; MODULE_DEVICE_TABLE(of, da7219_of_match); +#endif #ifdef CONFIG_ACPI static const struct acpi_device_id da7219_acpi_match[] = { -- 2.25.1