diff mbox series

ASoC: Intel: sof_sdw_amp: mark coeff tables with __maybe_unused

Message ID 20221118015106.532302-1-yung-chuan.liao@linux.intel.com (mailing list archive)
State Accepted
Commit 041fe8858475a0337b28404ec5136f4fc583b3aa
Headers show
Series ASoC: Intel: sof_sdw_amp: mark coeff tables with __maybe_unused | expand

Commit Message

Bard Liao Nov. 18, 2022, 1:51 a.m. UTC
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

The same file provides two tables used in separate drivers, make them
as __maybe_unused to avoid errors:

sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h:163:17: error:
‘dell_0b00_bq_params’ defined but not used
[-Werror=unused-const-variable=]
  163 | static const u8 dell_0b00_bq_params[] = {

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Nov. 18, 2022, 3:25 p.m. UTC | #1
On Fri, 18 Nov 2022 09:51:06 +0800, Bard Liao wrote:
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> 
> The same file provides two tables used in separate drivers, make them
> as __maybe_unused to avoid errors:
> 
> sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h:163:17: error:
> ‘dell_0b00_bq_params’ defined but not used
> [-Werror=unused-const-variable=]
>   163 | static const u8 dell_0b00_bq_params[] = {
> 
> [...]

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: sof_sdw_amp: mark coeff tables with __maybe_unused
      commit: 041fe8858475a0337b28404ec5136f4fc583b3aa

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h b/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
index 82230fbb5b05..4a3e6fdbd623 100644
--- a/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
+++ b/sound/soc/intel/boards/sof_sdw_amp_coeff_tables.h
@@ -11,7 +11,7 @@ 
 #define RT1308_MAX_BQ_REG 480
 #define RT1316_MAX_BQ_REG 580
 
-static const u8 dell_0a5d_bq_params[] = {
+static const u8 __maybe_unused dell_0a5d_bq_params[] = {
 	0xb0, 0xc5, 0x00,  /* address: 0xc5b0; data: 0x00 */
 	0xb1, 0xc5, 0x32,
 	0xb2, 0xc5, 0x44,
@@ -160,7 +160,7 @@  static const u8 dell_0a5d_bq_params[] = {
 	0x50, 0xc5, 0x01,
 };
 
-static const u8 dell_0b00_bq_params[] = {
+static const u8 __maybe_unused dell_0b00_bq_params[] = {
 	0x03, 0xc2, 0x00,
 	0x04, 0xc2, 0xb2,
 	0x05, 0xc2, 0xe0,