Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1392580pxb; Fri, 20 Nov 2020 08:24:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCUVqKGcQHlYOTRnlB2mj662O/OSF8JaILHknvCDIEzYKxSzbA4++eRiBRhKWdWHvaoZ+m X-Received: by 2002:a17:906:7cc:: with SMTP id m12mr32708470ejc.365.1605889476792; Fri, 20 Nov 2020 08:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605889476; cv=none; d=google.com; s=arc-20160816; b=hwyBFTNYEmuViRWgiuqNwKw4jdLtii5bcMGRtHaa+h1E8tiAolwWp/yyi/kbsbPNx1 u5qNPF1lVEDfHvcQWlvmTbYNDE0cRGtVFhJSHeymKnVBXUH5EpgQJC84LjEWSTgE5qkV 7c+Usxml4yClJymQ4Dm82a4AU4UhZ49bRMrX7tKo6IbUypuuSOM/KchsETsYeuLQHfNx 7R444g3P/KpQQDZ0A5UkHKopt6vOYFt1WUKsM29SPA7/bF/HLHCCl+nLozcJHdtq52i2 bJGeAJEr+TkLnwN+H50T9BcfYaqsqxiaXzPZMn6LJo1ePUpnbfu82+ZsZ+v5a0zgsbup s0jg== 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=fvtNLUsgeSqyWYmJdI4TUeK5rU9a92L5lyRAk9Td91U=; b=DKPvvQ0vQlDYldyIeoIwPfvcEy0QPApVPwB6TOp/DdzNWE0nq9+4Pa+2cWczebsxbR uwlDmFWZr7vJ6Cfk2TdVYEUZVY/SOIvoWWsw+Px8WP2ophi05QOIRjtbf7MVyLn2Er6v cvh9YWhnKhhdtFw3XbxwlE/WO97+vFd72TRGpZj3bsT9NmjIIX0dbOsDnrFxjk0ltl7F +kefxzte2z2Ui8EZtG6QBODjvIB8BmxmyNbbYuUlppgctlvjihlllMH0y0dWyGwC0xxH QUd3YWm6RXPaMBYgS24sKixCF4Vu2hYZFUXUlBSX2fUXOWdbFrMkBUy3jsr0f37uZ5bh kJwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oosmMJ6C; 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 n8si2021715edo.202.2020.11.20.08.24.12; Fri, 20 Nov 2020 08:24:36 -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=oosmMJ6C; 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 S1729687AbgKTQTw (ORCPT + 99 others); Fri, 20 Nov 2020 11:19:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:37858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729649AbgKTQTu (ORCPT ); Fri, 20 Nov 2020 11:19:50 -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 28B83223FD; Fri, 20 Nov 2020 16:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889189; bh=eg5/nyaqALzijU8H2GOtWYcQapgeWcHG71oF3tWQQWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oosmMJ6CyU8Xo45/D/STkGuWo95XQARTBuVHD7D7pNzuZMePPS6rIIf6DMebY/CKz 9gpaJQd0sOszdfdQpuOrwI0EDGrS3imX/6/WHX/cXQnoX+831lbcdAdEMfTwPXDq++ SG6uIQDR/1Q/Qq2SawkIZPvlE0Ah0urCmeDcgC5A= 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 33/38] ASoC: es7241: mark OF related data as maybe unused Date: Fri, 20 Nov 2020 17:16:47 +0100 Message-Id: <20201120161653.445521-33-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 be compile tested with !CONFIG_OF making certain data unused: sound/soc/codecs/es7241.c:206:33: warning: ‘es7241_chip’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/es7241.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/es7241.c b/sound/soc/codecs/es7241.c index 87991bd4acef..2344a0b03518 100644 --- a/sound/soc/codecs/es7241.c +++ b/sound/soc/codecs/es7241.c @@ -203,7 +203,7 @@ static const struct es7241_clock_mode es7241_modes[] = { }, }; -static const struct es7241_chip es7241_chip = { +static const struct es7241_chip es7241_chip __maybe_unused = { .modes = es7241_modes, .mode_num = ARRAY_SIZE(es7241_modes), }; -- 2.25.1