Bug 8929

Summary: Many warnings at compiling the sound core
Product: Drivers Reporter: Patrick Matthäi (patrick)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: protasnb
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.22.5 Subsystem:
Regression: --- Bisected commit-id:
Attachments: My Kernel config

Description Patrick Matthäi 2007-08-23 05:41:43 UTC
Distribution: Debian Sid
Hardware Environment: 32 bit System, Terratec Aureon 5.1 Fun
Software Environment: GCC 4.2.1
Problem Description:

I get following warnings at compiling the soundcore:


sound/core/pcm.c: In function ‘snd_pcm_attach_substream’:
sound/core/pcm.c:867: warning: passing argument 1 of ‘__constant_c_and_count_memset’ discards qualifiers from pointer target type
sound/core/pcm.c:867: warning: passing argument 1 of ‘__constant_c_memset’ discards qualifiers from pointer target type
sound/core/pcm.c:877: warning: passing argument 1 of ‘__constant_c_and_count_memset’ discards qualifiers from pointer target type
sound/core/pcm.c:877: warning: passing argument 1 of ‘__constant_c_memset’ discards qualifiers from pointer target type
  CC [M]  sound/core/pcm_native.o
include/sound/pcm.h: In function ‘hw_param_interval_c’:
include/sound/pcm.h:800: warning: passing argument 1 of ‘hw_param_interval’ discards qualifiers from pointer target type
  CC [M]  sound/core/pcm_lib.o
include/sound/pcm.h: In function ‘hw_param_mask_c’:
include/sound/pcm.h:794: warning: passing argument 1 of ‘hw_param_mask’ discards qualifiers from pointer target type
include/sound/pcm.h: In function ‘hw_param_interval_c’:
include/sound/pcm.h:800: warning: passing argument 1 of ‘hw_param_interval’ discards qualifiers from pointer target type
  CC [M]  sound/core/pcm_timer.o
  CC [M]  sound/core/pcm_misc.o
  CC [M]  sound/core/pcm_memory.o
  CC [M]  sound/core/rawmidi.o
  CC [M]  sound/core/rtctimer.o
  CC [M]  sound/core/timer.o
  CC [M]  sound/core/sound.o
  CC [M]  sound/core/init.o
sound/core/init.c: In function ‘snd_card_disconnect’:
sound/core/init.c:307: warning: the address of ‘snd_shutdown_f_ops’ will always evaluate as ‘true’
Comment 1 Patrick Matthäi 2007-08-23 05:42:16 UTC
Created attachment 12504 [details]
My Kernel config
Comment 2 Natalie Protasevich 2008-02-07 00:09:52 UTC
This problem is probably long gone. I just tried compiling recent git tree with your config and didn't get this error. I think it's safe to close the bug.