[ltp] put_cpu_ptr and get_cpu_ptr undefined

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Mon, 13 Dec 2004 13:11:43 +0100


I am trying to build the 5.8 release of the thinkpad tools and everything works okay, except the thinkpadpm.ko module wich has undefined stuff in it. I get the following output:
make -C 2.6/drivers
make[1]: Entering directory `/tmp/thinkpad-5.8/2.6/drivers'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C /lib/modules/2.6.9-nitro4/build SUBDIRS=/tmp/thinkpad-5.8/2.6/drivers modules
make[2]: Entering directory `/usr/src/linux-2.6.9-nitro4'
  CC [M]  /tmp/thinkpad-5.8/2.6/drivers/thinkpad.o
In file included from /tmp/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,
                 from /tmp/thinkpad-5.8/2.6/drivers/thinkpad.c:49:
/tmp/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171: warning: `packed' attribute ignored
  CC [M]  /tmp/thinkpad-5.8/2.6/drivers/smapi_core.o
In file included from /tmp/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,
                 from /tmp/thinkpad-5.8/2.6/drivers/smapi_core.c:39:
/tmp/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171: warning: `packed' attribute ignored
as   -o /tmp/thinkpad-5.8/2.6/drivers/smapi_call.o /tmp/thinkpad-5.8/2.6/drivers/smapi_call.s
  LD [M]  /tmp/thinkpad-5.8/2.6/drivers/smapi.o
  CC [M]  /tmp/thinkpad-5.8/2.6/drivers/superio.o
In file included from /tmp/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,
                 from /tmp/thinkpad-5.8/2.6/drivers/superio.c:41:
/tmp/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171: warning: `packed' attribute ignored
  CC [M]  /tmp/thinkpad-5.8/2.6/drivers/rtcmosram.o
In file included from /tmp/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,
                 from /tmp/thinkpad-5.8/2.6/drivers/rtcmosram.c:41:
/tmp/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171: warning: `packed' attribute ignored
  CC [M]  /tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.o
In file included from /tmp/thinkpad-5.8/2.6/drivers/../include/thinkpad_common.h:80,
                 from /tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c:42:
/tmp/thinkpad-5.8/2.6/drivers/../include/rtcmosram.h:171: warning: `packed' attribute ignored
/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c: In function `apm_bios_call':
/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c:208: warning: implicit declaration of function `get_cpu_ptr'
/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c:208: warning: assignment makes pointer from integer without a cast
/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c:234: warning: implicit declaration of function `put_cpu_ptr'
/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c: In function `apm_bios_call_simple':
/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.c:264: warning: assignment makes pointer from integer without a cast
  Building modules, stage 2.
  MODPOST
*** Warning: "put_cpu_ptr" [/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.ko] undefined!
*** Warning: "get_cpu_ptr" [/tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.ko] undefined!
  CC      /tmp/thinkpad-5.8/2.6/drivers/rtcmosram.mod.o
  LD [M]  /tmp/thinkpad-5.8/2.6/drivers/rtcmosram.ko
  CC      /tmp/thinkpad-5.8/2.6/drivers/smapi.mod.o
  LD [M]  /tmp/thinkpad-5.8/2.6/drivers/smapi.ko
  CC      /tmp/thinkpad-5.8/2.6/drivers/superio.mod.o
  LD [M]  /tmp/thinkpad-5.8/2.6/drivers/superio.ko
  CC      /tmp/thinkpad-5.8/2.6/drivers/thinkpad.mod.o
  LD [M]  /tmp/thinkpad-5.8/2.6/drivers/thinkpad.ko
  CC      /tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.mod.o
  LD [M]  /tmp/thinkpad-5.8/2.6/drivers/thinkpadpm.ko
make[2]: Leaving directory `/usr/src/linux-2.6.9-nitro4'
make[1]: Leaving directory `/tmp/thinkpad-5.8/2.6/drivers'



What can I do to fix the problem?