Patch "ASoC: tas2781: mark dvc_tlv with __maybe_unused" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: tas2781: mark dvc_tlv with __maybe_unused

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-tas2781-mark-dvc_tlv-with-__maybe_unused.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0221e56c87e6e6da9a7362f5758e60e39831401b
Author: Gergo Koteles <soyer@xxxxxx>
Date:   Thu Mar 28 23:47:37 2024 +0100

    ASoC: tas2781: mark dvc_tlv with __maybe_unused
    
    [ Upstream commit 831ec5e3538e989c7995137b5c5c661991a09504 ]
    
    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 <lkp@xxxxxxxxx>
    Closes: https://lore.kernel.org/oe-kbuild-all/202403290354.v0StnRpc-lkp@xxxxxxxxx/
    Fixes: ae065d0ce9e3 ("ALSA: hda/tas2781: remove digital gain kcontrol")
    Signed-off-by: Gergo Koteles <soyer@xxxxxx>
    Message-ID: <0e461545a2a6e9b6152985143e50526322e5f76b.1711665731.git.soyer@xxxxxx>
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/sound/tas2781-tlv.h b/include/sound/tas2781-tlv.h
index 4038dd421150a..1dc59005d241f 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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux