Skip to content

Commit 23cbfd6

Browse files
committed
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/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent b26e2af commit 23cbfd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sound/pci/azt3328.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,25 +412,25 @@ snd_azf3328_ctrl_outl(const struct snd_azf3328 *chip, unsigned reg, u32 value)
412412
outl(value, chip->ctrl_io + reg);
413413
}
414414

415-
static inline void
415+
static inline void __maybe_unused
416416
snd_azf3328_game_outb(const struct snd_azf3328 *chip, unsigned reg, u8 value)
417417
{
418418
outb(value, chip->game_io + reg);
419419
}
420420

421-
static inline void
421+
static inline void __maybe_unused
422422
snd_azf3328_game_outw(const struct snd_azf3328 *chip, unsigned reg, u16 value)
423423
{
424424
outw(value, chip->game_io + reg);
425425
}
426426

427-
static inline u8
427+
static inline u8 __maybe_unused
428428
snd_azf3328_game_inb(const struct snd_azf3328 *chip, unsigned reg)
429429
{
430430
return inb(chip->game_io + reg);
431431
}
432432

433-
static inline u16
433+
static inline u16 __maybe_unused
434434
snd_azf3328_game_inw(const struct snd_azf3328 *chip, unsigned reg)
435435
{
436436
return inw(chip->game_io + reg);

0 commit comments

Comments
 (0)