Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp754465lqh; Thu, 28 Mar 2024 15:48:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKggb4W/Ub0fWs/sKENjqXZG/EwAAoLpCXHgntAhGPDGshFSBqSAPYw+wITZewLZ68vKlVPQ/SkUVyUppzOKpGbjiq1Jyo7R3vsdJDKg== X-Google-Smtp-Source: AGHT+IGO77bdNerJWUqgGk8rj0WEccD/SeuwqdbWuab/4gVZGYlYX3pSKb6vooFlzLILZ3pgmAb5 X-Received: by 2002:a17:90a:d588:b0:2a0:3b1d:7c5 with SMTP id v8-20020a17090ad58800b002a03b1d07c5mr5310217pju.3.1711666089348; Thu, 28 Mar 2024 15:48:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711666089; cv=pass; d=google.com; s=arc-20160816; b=DEZelvRfk2YJFqMbZkFvMC0Au0gtlm2h33lnhU56GIl5gv4yEs+Er6xoD+pKuVC7SG +wKRf9KzOXWaBcMt51xq5nZ/BjsKKbtyjNAvpDu5Yxy/pwUsQIYZMLdp5aVKuODbTxuJ /4VhpyYudj8kSAzUdsE/Vq+pZeIcKLPSAOOe8jx1y8zyShIn7n1/hr8g4YYE0YNYgdIz 7qQ9y6W+aFkEPMmfUDhYKg5iq2LihGE72YFyE85kc7fs804jZwYfzbB/GphpSO122Nfa J5XcY0eu9xwhZASFsbW57dUOIeGtdTaBB966jDbh4Rsbqby9IJUgMt9C8K0hHJNnokiZ V40A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=eV/YSmVbD3VttwWZPbrn2IKM08VVoQbtdD2gYIJI8Oo=; fh=G0wB5gpSGaJJn1z+e3ZFppJfohmgXZFekYLPylEOcOE=; b=Mz2jTpRpeFlsDr//o3OoZacL9KNjolMTMCquVGwQvanCCfMaeK1GmGcjUJGPXBEbfk cEXy9+gQIFBlhYlQi0n4s08FMqYHVv8B06X70y3NF6HIIYfC/ADKIq+G5aN5P7vSpKPB X6DooZFIzzhiPCsE7S+Gfh6ip6YldpJrASEuk2RSD56nA9gE0Q/7lz9dW9HNYHYex1N8 GMWuMLGtpOViuZjo7XKQOF1mJKh99yXBogN9byEkBJXST2OG0KgLZYXb/dUb4HZmuJvP MRzY1Fmva5taEz1Er2BAyu7iiKAKSFjIWsJgJ7hRPKguYoA6zlS2UXqpLWXU4HU50l1C 9h3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-123787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 13-20020a63010d000000b005dc359329fasi2185752pgb.23.2024.03.28.15.48.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 15:48:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=irl.hu dmarc=pass fromdomain=irl.hu); spf=pass (google.com: domain of linux-kernel+bounces-123787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=irl.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 022AB2913F3 for ; Thu, 28 Mar 2024 22:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3001A3FBB3; Thu, 28 Mar 2024 22:48:01 +0000 (UTC) Received: from irl.hu (irl.hu [95.85.9.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 936B61D68F; Thu, 28 Mar 2024 22:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.85.9.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711666080; cv=none; b=AAizFBf8dgC8l5MarwZxu6EYdoz0QDs56addKZZry94yGHb/t3gh4SzIxy+nXUDdXxmchwut8iearyQeg0Ad4FVhNZl3syEIUtLticW/MEB2sidWV3Wx1yuGLf0Q5ZAykMTfUDk1V7hqc0oLL33RGe/braKQHgMo+mZ8+HWAQRI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711666080; c=relaxed/simple; bh=4ad7yQtm68+AT2mdcchsQ2drGN+aCD6c8DrgJXxKOTI=; h=From:To:Cc:Subject:Date:Message-ID:Mime-Version:Content-Type; b=RRDG6CCJjjHw4bXTTGdHk+wZ/Ro75Zyo/90Tf2omi1DKa3S58HGHs8HOGFGU/GO6Q4gEa1l8phqYrw4yK9brvbtl4mqUovxmDHiUxNO+8C6FqvvknQOGmr5rH8VceCGUZvPcOMN5OqTgrmJDfXlOtmPRsQZlKBb6l5mQFmv4KHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu; spf=pass smtp.mailfrom=irl.hu; arc=none smtp.client-ip=95.85.9.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=irl.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irl.hu Received: from fedori.lan (51b68717.dsl.pool.telekom.hu [::ffff:81.182.135.23]) (AUTH: CRAM-MD5 soyer@irl.hu, ) by irl.hu with ESMTPSA id 0000000000069CB0.000000006605F396.0024401B; Thu, 28 Mar 2024 23:47:50 +0100 From: Gergo Koteles To: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Gergo Koteles , kernel test robot Subject: [PATCH] ASoC: tas2781: mark dvc_tlv with __maybe_unused Date: Thu, 28 Mar 2024 23:47:37 +0100 Message-ID: <0e461545a2a6e9b6152985143e50526322e5f76b.1711665731.git.soyer@irl.hu> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mime-Autoconverted: from 8bit to 7bit by courier 1.0 Since we put dvc_tlv static variable to a header file it's copied to each module that includes the header. But not all of them are actually used it. Fix this W=1 build warning: include/sound/tas2781-tlv.h:18:35: warning: 'dvc_tlv' defined but not used [-Wunused-const-variable=] Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202403290354.v0StnRpc-lkp@intel.com/ Fixes: ae065d0ce9e3 ("ALSA: hda/tas2781: remove digital gain kcontrol") Signed-off-by: Gergo Koteles --- include/sound/tas2781-tlv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sound/tas2781-tlv.h b/include/sound/tas2781-tlv.h index 4038dd421150..1dc59005d241 100644 --- a/include/sound/tas2781-tlv.h +++ b/include/sound/tas2781-tlv.h @@ -15,7 +15,7 @@ #ifndef __TAS2781_TLV_H__ #define __TAS2781_TLV_H__ -static const DECLARE_TLV_DB_SCALE(dvc_tlv, -10000, 100, 0); +static const __maybe_unused DECLARE_TLV_DB_SCALE(dvc_tlv, -10000, 100, 0); static const DECLARE_TLV_DB_SCALE(amp_vol_tlv, 1100, 50, 0); #endif base-commit: 2d0401ee38d43ab0e4cdd02dfc9d402befb2b5c8 -- 2.44.0