Skip to contentSkip to conversation

2.5.3-pre1 emu10k1

DISCUSSION Mathias Wiklander 2 participants 2 messages Jan 17, 2002 – Jan 18, 2002

lore
Share & tools
lore
#0 lore raw

When I try to compile emu10k1 as a module i get this error.

gcc -D__KERNEL__ -I/usr/src/v2.5.2/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-
strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DEMU10K1_SEQUENCER -c -o audio.o a
udio.c
audio.c: In function mu10k1_audio_open':
audio.c:1101: invalid operands to binary &
make[3]: *** [audio.o] Error 1
make[3]: Leaving directory /usr/src/v2.5.2/linux/drivers/sound/emu10k1'

/Eastbay

#1 lore raw

Change the MINOR(...) to minor(&...) on that line. There might be a few more like that.

This worked for the cvs emu10k1 audigy branch for me.

The 2.5.x kernels are working toward a better way of managing device identifiers. kdev_t is now a structure not a short. MINOR(x) is a macro that wants a short, just like its always been. But minor(x) is an inlined function that wants a pointer to the new kdev_t struct and returns a char representing the device minor number. I expect MINOR will be depreciated.

Quinn Harris

Quoted 19 lines · Mathias Wiklander

When I try to compile emu10k1 as a module i get this error.

gcc -D__KERNEL__ -I/usr/src/v2.5.2/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-
strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DEMU10K1_SEQUENCER -c -o audio.o a
udio.c
audio.c: In function mu10k1_audio_open':
audio.c:1101: invalid operands to binary &
make[3]: *** [audio.o] Error 1
make[3]: Leaving directory /usr/src/v2.5.2/linux/drivers/sound/emu10k1'

/Eastbay
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/