Skip to content

Commit 27219a5

Browse files
rfvirgiltiwai
authored andcommitted
ALSA: hda: hda_component: Add missing #include guards
Add the conventional include guards around the content of the hda_component.h header file. This prevents double-declaration of struct hda_component if the header gets included multiple times. This isn't causing any problems with current code, so no need to backport to older kernels. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Message-ID: <20240307111216.45053-1-rf@opensource.cirrus.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent cecc34a commit 27219a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sound/pci/hda/hda_component.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* Cirrus Logic International Semiconductor Ltd.
77
*/
88

9+
#ifndef __HDA_COMPONENT_H__
10+
#define __HDA_COMPONENT_H__
11+
912
#include <linux/acpi.h>
1013
#include <linux/component.h>
1114

@@ -82,3 +85,5 @@ static inline void hda_component_manager_unbind(struct hda_codec *cdc,
8285
{
8386
component_unbind_all(hda_codec_dev(cdc), comps);
8487
}
88+
89+
#endif /* ifndef __HDA_COMPONENT_H__ */

0 commit comments

Comments
 (0)