Skip to contentSkip to conversation

ALSA: hda: cs35l41: mark cs35l41_verify_id() static

PATCH Takashi Iwai 1 participant 1 message Oct 29, 2023 1 message not in the archive Sound

lore
Share & tools
lore

Takashi Iwai

author Applied
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The newly introduced function is global but only called in this one file and has no extern prototype, so it should probably be static:

sound/pci/hda/cs35l41_hda.c:733:5: error: no previous prototype for 'cs35l41_verify_id' [-Werror=missing-prototypes]
733 | int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid)

Fixes 881b7bce0c25 ("ALSA: hda: cs35l41: Run boot process during resume callbacks")

Thanks, applied now.

Takashi