ALSA: azt3328: Put __maybe_unused for inline functions for gameport
authorTakashi Iwai <tiwai@suse.de>
Wed, 13 Aug 2025 15:36:27 +0000 (17:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Aug 2025 15:40:41 +0000 (17:40 +0200)
Some inline functions are unused depending on kconfig, and the recent
change for clang builds made those handled as errors with W=1.
For avoiding pitfalls, mark those with __maybe_unused attributes.

Link: https://patch.msgid.link/20250813153628.12303-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/azt3328.c

index 4418b9ae33e60478c28b1bc68ba1c29cb2825f2a..b33344f65b8c72e5a3798df0fb0051ca4c02d0e5 100644 (file)
@@ -412,25 +412,25 @@ snd_azf3328_ctrl_outl(const struct snd_azf3328 *chip, unsigned reg, u32 value)
        outl(value, chip->ctrl_io + reg);
 }
 
-static inline void
+static inline void __maybe_unused
 snd_azf3328_game_outb(const struct snd_azf3328 *chip, unsigned reg, u8 value)
 {
        outb(value, chip->game_io + reg);
 }
 
-static inline void
+static inline void __maybe_unused
 snd_azf3328_game_outw(const struct snd_azf3328 *chip, unsigned reg, u16 value)
 {
        outw(value, chip->game_io + reg);
 }
 
-static inline u8
+static inline u8 __maybe_unused
 snd_azf3328_game_inb(const struct snd_azf3328 *chip, unsigned reg)
 {
        return inb(chip->game_io + reg);
 }
 
-static inline u16
+static inline u16 __maybe_unused
 snd_azf3328_game_inw(const struct snd_azf3328 *chip, unsigned reg)
 {
        return inw(chip->game_io + reg);