Upon upgrading to gentoo-sources-2.6.20-r5 reinstalling the alsa-driver package fails to compile properly. Problem relates to the pci_save_state and pci_restore_state defined in /usr/include/linux/pci.h. Reproducible: Always Steps to Reproduce: 1.emerge -av alsa-driver 2.see the code compiling 3.see it error :) Actual Results: In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/driver.h:46, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/opl3.h:54, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/../../alsa-kernel/drivers/opl3/opl3_synth.c:22, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_synth.c:2: /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h: In function 'snd_pci_orig_save_state': /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:1134: error: too many arguments to function 'pci_save_state' /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h: In function 'snd_pci_orig_restore_state': /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:1138: error: too many arguments to function 'pci_restore_state' make[5]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_synth.o] Error 1 make[5]: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/driver.h:46, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/opl3.h:54, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_lib.c:26: /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h: In function 'snd_pci_orig_save_state': /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:1134: error: too many arguments to function 'pci_save_state' /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h: In function 'snd_pci_orig_restore_state': /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:1138: error: too many arguments to function 'pci_restore_state' make[5]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_lib.o] Error 1 In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:892, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/driver.h:46, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/opl3.h:54, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/../../alsa-kernel/drivers/opl3/opl3_voice.h:22, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/../../alsa-kernel/drivers/opl3/opl3_seq.c:25, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_seq.c:1: include/linux/pci.h:531: error: expected identifier or '(' before numeric constant In file included from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/driver.h:46, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/sound/opl3.h:54, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/../../alsa-kernel/drivers/opl3/opl3_voice.h:22, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/../../alsa-kernel/drivers/opl3/opl3_seq.c:25, from /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_seq.c:1: /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h: In function 'snd_pci_orig_save_state': /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:1134: error: too many arguments to function 'pci_save_state' /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h: In function 'snd_pci_orig_restore_state': /var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/include/adriver.h:1138: error: too many arguments to function 'pci_restore_state' make[5]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3/opl3_seq.o] Error 1 make[4]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers/opl3] Error 2 make[3]: *** [/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1/drivers] Error 2 make[2]: *** [_module_/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc1/work/alsa-driver-1.0.14rc1] Error 2 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.20-gentoo-r5' make: *** [compile] Error 2 Expected Results: Compiled successfully. The pci_save_state and pci_restore_state seem to be not implemented. As taken from pci.h static __inline__ int pci_save_state(struct pci_dev *dev) { return 0; } static __inline__ int pci_restore_state(struct pci_dev *dev) { return 0; } Plus alsa-driver calls the method with too many params.
Created attachment 115821 [details] emerge info
Not baselayout.
You need 1.0.14_rc3 for 2.6.20 kernels.
(In reply to comment #3) > You need 1.0.14_rc3 for 2.6.20 kernels. > rc3 works.