views:

31

answers:

1

I keep getting compilation error for a kernel module:

XXX: In function 'yyy':
ZZZ:125: error: implicit declaration of function '__arch__swab32'

PowerPC, 2.6.30.x, Kamikaze toolchain. According to this the identifier went away after 2.6.28. What should I use instead?

+2  A: 

You should be using the generic __swab32 from linux/swab.h (which also exists on earlier kernel versions).

caf