Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1303377ybt; Tue, 7 Jul 2020 12:18:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIt0kArrvtilWRcvym3RBcVjmb27GlkhWATw3UBN+3exQKWp7UnOk7O9/rUo3F/UbAzseS X-Received: by 2002:a17:906:c201:: with SMTP id d1mr41990193ejz.40.1594149504734; Tue, 07 Jul 2020 12:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594149504; cv=none; d=google.com; s=arc-20160816; b=1FYaMVVZNzMR2V97+7Sjqk+GliZW1vdGhw2OVjlYQGH6cUYErsfsL5clqjSVvoGZZB wWvh+LbvbQhs8Gz8mvhZjBOH4d0Lw4gGaXol1BbtXHHYN6++bYZa2q7skLmICvPgkrgY OGSnxW8W144k8ZlHkJdkhfjVUqrwy4jph3eKMW5blgtKFZlbKJAXgX9m2kKwxwgtFWsY zMivzL3QavdrHXLPSb7gr0xGVCDY4i+Uj0ZSM85b3Rjt4yAyG6CiwiXsfImXsgTH6Ufc T99tEP4XrLifoh6ksi7kGDd8rW3H22z6BQ5PNEu9lqco/EFgEOyu53GStp5uj7Q4+kAq DkHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=nRWoG6uIKI6X9ZTRT2v3nyS/83YxM98hVtO3kh/2yE4=; b=zMI89Skeg00CfKmIOJhGPurJwMoTErlz84c9bWmjo+XJ80BKwR//7iyI+VSRuMayXE rcsCc6dajGn6cl7zHz8t3C7nIUzfpzFHlB5xmqka/E2g6LXD1846yi0HuX/im+0nNb77 JBmrhgXFpIr5iFA/V/0+vQu6bAYuE34fZSesrkhBMxzbE2lioQi1+jHQuXcpHjpLlHiS KS2K5D5b7Xk/F4x63esUjTsPycySOQzxic24D4Loajl1pFNIMYSKGEorXloE0QgVJy+F rNlDy1sNaR34GYBNey+WZXg9z/iKLn3wClYXom5XAHSOjY95F8aPnEgV4RE3P3IDdDdL Sm4Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si15942534edy.494.2020.07.07.12.18.01; Tue, 07 Jul 2020 12:18:24 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728713AbgGGTQn (ORCPT + 99 others); Tue, 7 Jul 2020 15:16:43 -0400 Received: from mga01.intel.com ([192.55.52.88]:5637 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728692AbgGGTQk (ORCPT ); Tue, 7 Jul 2020 15:16:40 -0400 IronPort-SDR: Y/n4nTHtD08uP2USfbUkgTjL7Oxsg2cPyg47YkvB1UF/3k4oz+D4g5BjHYUMbOjsjLZGkGI+XP 5uSWFaSAAzNQ== X-IronPort-AV: E=McAfee;i="6000,8403,9675"; a="165753003" X-IronPort-AV: E=Sophos;i="5.75,324,1589266800"; d="scan'208";a="165753003" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 12:16:40 -0700 IronPort-SDR: /suSIlxaokPqR671iiUxFN6GYWeFBnGgoSr6SrYAdcFMWA592cksoAJz+aA+siuLWXuDPD6XE0 pqmOvKGkbfZg== X-IronPort-AV: E=Sophos;i="5.75,324,1589266800"; d="scan'208";a="388601639" Received: from mrtorger-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.254.77.62]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 12:16:39 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Lee Jones , Pierre-Louis Bossart , Arnaud Pouliquen , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 06/10] ASoC: sti: uniperif: fix 'defined by not used' warning Date: Tue, 7 Jul 2020 14:16:11 -0500 Message-Id: <20200707191615.98296-7-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707191615.98296-1-pierre-louis.bossart@linux.intel.com> References: <20200707191615.98296-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix W=1 warning. The table uni_tdm_hw is declared in a header included by multiple C file. This isn't really a good practice but for now using __maybe_unused makes the following warning go away. sound/soc/sti/sti_uniperif.c:12: sound/soc/sti/uniperif.h:1351:38: warning: ‘uni_tdm_hw’ defined but not used [-Wunused-const-variable=] 1351 | static const struct snd_pcm_hardware uni_tdm_hw = { | ^~~~~~~~~~ Signed-off-by: Pierre-Louis Bossart --- sound/soc/sti/uniperif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sti/uniperif.h b/sound/soc/sti/uniperif.h index 2dc2da5d458b..a16adeb7c1e9 100644 --- a/sound/soc/sti/uniperif.h +++ b/sound/soc/sti/uniperif.h @@ -1348,7 +1348,7 @@ struct sti_uniperiph_data { struct sti_uniperiph_dai dai_data; }; -static const struct snd_pcm_hardware uni_tdm_hw = { +static __maybe_unused const struct snd_pcm_hardware uni_tdm_hw = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID, -- 2.25.1