2.6.35-rc5 build on MIPSEL macro "get_current" passed 2 arguments, but takes just 0
Hello Debian kernel people,
This E-mail is to report a kernel build failure that I encountered.
On a MIPSEL system I do get this output
| CC [M] drivers/power/power_supply_core.o
| CC [M] drivers/power/power_supply_sysfs.o
| CC [M] drivers/power/power_supply_leds.o
| LD [M] drivers/power/power_supply.o
| CC [M] drivers/power/ds2782_battery.o
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:216:48: error: macro "get_current" passed 2 arguments, but takes just 0
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:
| In function 'ds278x_get_status':
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:216: warning: assignment makes integer from pointer without a cast
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:257:50: error: macro "get_current" passed 2 arguments, but takes just 0
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:
| In function 'ds278x_battery_get_property':
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:257: warning: assignment makes integer from pointer without a cast
| make[7]: *** [drivers/power/ds2782_battery.o] Error 1
| make[6]: *** [drivers/power] Error 2
| make[5]: *** [drivers] Error 2
| make[4]: *** [sub-make] Error 2
| make[3]: *** [all] Error 2
| make[3]: Leaving directory
| `/usr/src/Linux/debian-svn/debian/build/build_mipsel_none_4kc-malta'
| make[2]: *** [debian/stamps/build_mipsel_none_4kc-malta_plain] Error 2
What I did to get there comes mostly from the kernel-handbook.
This is what I exactly ( # comment added afterwars ) did:
| svn co svn://svn.debian.org/svn/kernel/dists/trunk/linux-2.6 debian-svn
| cd debian-svn
| svn log # checked that work for http://bugs.debian.org/583689 is included
| cd ..
| apt-get source -d linux-2.6
| cd debian-svn/
| debian/rules orig # failed, it asked for 2.6.32~rc5
| cd ..
| wget http://ftp.debian.org/pool/main/l/linux-2.6/linux-2.6_2.6.35~rc5.orig.tar.gz
| cd -
| debian/rules orig
| debian/rules debian/control
| fakeroot debian/rules binary
What can I do to get beyond
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:216:48: error: macro "get_current" passed 2 arguments, but takes just 0
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/power/ds2782_battery.c:257:50: error: macro "get_current" passed 2 arguments, but takes just 0
???