Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1391293pxb; Fri, 20 Nov 2020 08:22:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwqB9+t4YDGzzCo+PD7tVEKDcftIvlknv9qWO1wQALODRnk6MFcYt89grbG9D2aqT0WUc+ X-Received: by 2002:aa7:cc0e:: with SMTP id q14mr35040089edt.326.1605889368990; Fri, 20 Nov 2020 08:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889368; cv=none; d=google.com; s=arc-20160816; b=D4hcjj2pMJpbNQ6h6Uq2HEFTBAqXE07TW9cTqY8Z4G6wA3RWrha6b8stA2CuJAYe2j NFanTzIk9rjWd1iog74N2hSKJN1bnpssPIjweIS5QSXu6bt/RLDYJm6bk7xcBZTA4HYR ZTgbSvmj2Oe9WQRLbB0f8BGW9d/sIBg1ple85hUFbJtH7AgMow64FgWnLxPEQw3kRvqa iz1UHl8Ny2aKs7RqLsQmFCc3w77wiQs6xz4fpcPML4utRqxmDSaCiBtk4Pr+h1ADlm0B 2QZfCXanke7FGxugmuugY4IT1q95YO4xCMq4Qc0uyZ3OujB7sUlSE7HqD+FTltPj2PR7 pWcA== 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=CsfSA5AJUEwCE0pt+1DGCqLPew/4qpoLemKSwCBloWk=; b=ZxQXaDUinhc6JAhcV1cQdi+y5+o4wI96C9xr9M6lFy0bglGKAu0L1584MQ/5XKRZ0K SrUJLmsNG1Z/kBZITIPxJe4rBmQUaQLbOLDp8JCgFlGZ/ZLvqnCdyHilC6MfBgPgY2EK EpGPFT4E4S4HQEEtO8PZGbfjGIou+ZN7nzW8Zz9VKCapZOVjDeYEYtvNxk+Y6jAr0EQd sA5nAknj7UiNkB4QTMaJpW0zZ+jsL/RyYu9W1wSjisZxfOcgI8XoJfVz6BYVgJMGaiwH T/9LbLV9shzOHKa6V3+MBJEYMn80mczAELEblpDgCfbgt/B0Q2j8KgLWIGIYAFIpOtIa JFIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iR4EmOpG; 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 bh4si2190693ejb.421.2020.11.20.08.22.24; Fri, 20 Nov 2020 08:22:48 -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=iR4EmOpG; 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 S1729498AbgKTQTF (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:36508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729494AbgKTQTC (ORCPT ); Fri, 20 Nov 2020 11:19:02 -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 B886024073; Fri, 20 Nov 2020 16:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889142; bh=+k60xKKTSOCYcdQsboL2M+3cBbm3IYtR2+dW8V1VbbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iR4EmOpGCEwGeGfJkDncJT5/4sOhJdxx0/nGG4zFNh2KEWQxfOv8fcRWHus1hYkJh MhwuKOkmslcp65Hg8SWDjgdHTpYXHA4h0azYKyVkoYKjeAy08gNwrYjxJY/98J2uMJ RBVfibmokp6gJdB5r+q6XlYsVLpUIDrwVPGzq7+o= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org Cc: Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 22/38] ASoC: max98371: skip of_device_id table when !CONFIG_OF Date: Fri, 20 Nov 2020 17:16:36 +0100 Message-Id: <20201120161653.445521-22-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/max98371.c:411:34: warning: ‘max98371_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/max98371.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98371.c b/sound/soc/codecs/max98371.c index dfee05f985bd..0b438303e1d5 100644 --- a/sound/soc/codecs/max98371.c +++ b/sound/soc/codecs/max98371.c @@ -408,11 +408,13 @@ static const struct i2c_device_id max98371_i2c_id[] = { MODULE_DEVICE_TABLE(i2c, max98371_i2c_id); +#ifdef CONFIG_OF static const struct of_device_id max98371_of_match[] = { { .compatible = "maxim,max98371", }, { } }; MODULE_DEVICE_TABLE(of, max98371_of_match); +#endif static struct i2c_driver max98371_i2c_driver = { .driver = { -- 2.25.1