mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
ALSA: azt3328: Put __maybe_unused for inline functions for gameport
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>
This commit is contained in:
parent
b26e2afb38
commit
23cbfd6fed
@ -412,25 +412,25 @@ snd_azf3328_ctrl_outl(const struct snd_azf3328 *chip, unsigned reg, u32 value)
|
|||||||
outl(value, chip->ctrl_io + reg);
|
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)
|
snd_azf3328_game_outb(const struct snd_azf3328 *chip, unsigned reg, u8 value)
|
||||||
{
|
{
|
||||||
outb(value, chip->game_io + reg);
|
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)
|
snd_azf3328_game_outw(const struct snd_azf3328 *chip, unsigned reg, u16 value)
|
||||||
{
|
{
|
||||||
outw(value, chip->game_io + reg);
|
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)
|
snd_azf3328_game_inb(const struct snd_azf3328 *chip, unsigned reg)
|
||||||
{
|
{
|
||||||
return inb(chip->game_io + 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)
|
snd_azf3328_game_inw(const struct snd_azf3328 *chip, unsigned reg)
|
||||||
{
|
{
|
||||||
return inw(chip->game_io + reg);
|
return inw(chip->game_io + reg);
|
||||||
|
Loading…
Reference in New Issue
Block a user