ALSA: Remove __devinit annotation for pxa2xx_ac97_hw_probe to fix section mismatch warning
Subsystems (2)
PATCH 1/2 ALSA: Remove __devinit annotation for pxa2xx_ac97_hw_probe to fix section mismatch warning
This fixes below build warning:
WARNING: vmlinux.o(.text+0x1e632c): Section mismatch in reference from the function pxa2xx_ac97_probe() to the function .devinit.text:pxa2xx_ac97_hw_probe() The function pxa2xx_ac97_probe() references
the function __devinit pxa2xx_ac97_hw_probe().
This is often because pxa2xx_ac97_probe lacks a __devinit
annotation or the annotation of pxa2xx_ac97_hw_probe is wrong.
--- sound/arm/pxa2xx-ac97-lib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/arm/pxa2xx-ac97-lib.c +1 -1
@@ -313,7 +313,7 @@ int pxa2xx_ac97_hw_resume(void)EXPORT_SYMBOL_GPL (pxa2xx_ac97_hw_resume);#endif -int __devinit pxa2xx_ac97_hw_probe (struct platform_device *dev) +int pxa2xx_ac97_hw_probe (struct platform_device *dev) {int ret;pxa2xx_audio_ops_t *pdata = dev->dev.platform_data;
Signature · 1 line
1.7.5.4
PATCH 2/2 ALSA: pxa2xx-pcm: replace 0xffffffff with DMA_BIT_MASK macro
--- sound/arm/pxa2xx-pcm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sound/arm/pxa2xx-pcm.c +2 -2
@@ -80,7 +80,7 @@ static struct snd_pcm_ops pxa2xx_pcm_ops = { .mmap = pxa2xx_pcm_mmap, }; -static u64 pxa2xx_pcm_dmamask =0xffffffff ; +static u64 pxa2xx_pcm_dmamask =DMA_BIT_MASK (32 );int pxa2xx_pcm_new (struct snd_card *card,struct pxa2xx_pcm_client *client,struct snd_pcm **rpcm)
@@ -100,7 +100,7 @@ int pxa2xx_pcm_new(struct snd_card *card, struct pxa2xx_pcm_client *client,if (!card->dev->dma_mask) card->dev->dma_mask = &pxa2xx_pcm_dmamask;if (!card->dev->coherent_dma_mask) - card->dev->coherent_dma_mask =0xffffffff ; + card->dev->coherent_dma_mask =DMA_BIT_MASK (32 );if (play) {int stream =SNDRV_PCM_STREAM_PLAYBACK ;
Signature · 1 line
1.7.5.4
Quoted 6 lines · Axel Lin
This fixes below build warning:
WARNING:vmlinux.o(.text+0x1e632c): Section mismatch in reference from the functionpxa2xx_ac97_probe()to the function .devinit.text:pxa2xx_ac97_hw_probe() The functionpxa2xx_ac97_probe()references
the function__devinitpxa2xx_ac97_hw_probe().
This is often becausepxa2xx_ac97_probelacks a__devinit
annotation or the annotation ofpxa2xx_ac97_hw_probeis wrong.
This seems like the wrong fix - shouldn't we be adding annotations rather than removing them here?
2012/2/20 Mark Brown <[email protected]>:
Quoted 10 lines · Axel Lin
Quoted 6 lines
This fixes below build warning:
WARNING:vmlinux.o(.text+0x1e632c): Section mismatch in reference from the functionpxa2xx_ac97_probe()to the function .devinit.text:pxa2xx_ac97_hw_probe() The functionpxa2xx_ac97_probe()references
the function__devinitpxa2xx_ac97_hw_probe().
This is often becausepxa2xx_ac97_probelacks a__devinit
annotation or the annotation ofpxa2xx_ac97_hw_probeis wrong.This seems like the wrong fix - shouldn't we be adding annotations rather than removing them here?
I'll send a new patch to fix it. Thanks.
The change now is in sound/soc/pxa/pxa2xx-ac97.c, so I change the subject to:
[PATCH] ASoC: Add __devinit annotation for pxa2xx_ac97_probe
Axel