diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-08-22 18:01:09 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 09:59:24 -0400 |
commit | 1fcaee6ee212fc214c1327d788afa10899c22e3a (patch) | |
tree | dd8a23e45d2de54e82ac5f3ac853cf719ab24b9f /sound/pci/hda | |
parent | abaeeb59c94b6efc368f5058009c1d82ce031abd (diff) |
[ALSA] hda-intel - Fix compile with gcc-3.x
gcc-3.x doesn't like forward inlining:
CC [M] sound/pci/hda/hda_codec.o
sound/pci/hda/hda_codec.c: In function 'snd_hda_codec_free':
sound/pci/hda/hda_codec.c:517: sorry, unimplemented: inlining failed in call to 'free_hda_cache': function body not available
sound/pci/hda/hda_codec.c:534: sorry, unimplemented: called from here
sound/pci/hda/hda_codec.c:517: sorry, unimplemented: inlining failed in call to 'free_hda_cache': function body not available
sound/pci/hda/hda_codec.c:535: sorry, unimplemented: called from here
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b1eee9a044fe..46d4253642d7 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -514,7 +514,7 @@ static int read_widget_caps(struct hda_codec *codec, hda_nid_t fg_node) | |||
514 | 514 | ||
515 | static void init_hda_cache(struct hda_cache_rec *cache, | 515 | static void init_hda_cache(struct hda_cache_rec *cache, |
516 | unsigned int record_size); | 516 | unsigned int record_size); |
517 | static inline void free_hda_cache(struct hda_cache_rec *cache); | 517 | static void free_hda_cache(struct hda_cache_rec *cache); |
518 | 518 | ||
519 | /* | 519 | /* |
520 | * codec destructor | 520 | * codec destructor |
@@ -707,7 +707,7 @@ static void __devinit init_hda_cache(struct hda_cache_rec *cache, | |||
707 | cache->record_size = record_size; | 707 | cache->record_size = record_size; |
708 | } | 708 | } |
709 | 709 | ||
710 | static inline void free_hda_cache(struct hda_cache_rec *cache) | 710 | static void free_hda_cache(struct hda_cache_rec *cache) |
711 | { | 711 | { |
712 | kfree(cache->buffer); | 712 | kfree(cache->buffer); |
713 | } | 713 | } |