From: Randy D. <rd...@us...> - 2003-06-10 05:55:09
|
Update of /cvsroot/acpi/pmtools/pmtest In directory sc8-pr-cvs1:/tmp/cvs-serv1205 Modified Files: Makefile pmtest.c Log Message: fix Makefile for 2.4 and 2.5 modules usage; correct printk args in pmtest.c; Index: Makefile =================================================================== RCS file: /cvsroot/acpi/pmtools/pmtest/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- Makefile 31 Mar 2003 03:35:17 -0000 1.1.1.1 +++ Makefile 10 Jun 2003 05:55:04 -0000 1.2 @@ -1,12 +1,9 @@ -KERNEL_INCLUDE := /usr/src/linux/include - -CC = gcc +# makefile for pmtest kernel module +# usage: +# cd /path/to/kernel/source/ && make SUBDIRS=/path/to/source/pmtest/ all -CFLAGS := -Wall -fno-strength-reduce -fomit-frame-pointer -CFLAGS := $(CFLAGS) -D__KERNEL__ -DMODULE -I$(KERNEL_INCLUDE) -CFLAGS := $(CFLAGS) -Wall -Wno-unused -Wno-multichar +all: pmtest.o -all: pmtest.o +obj-m := pmtest.o -clean: - $(RM) *.o +clean-files := *.o *.ko *.mod.c Index: pmtest.c =================================================================== RCS file: /cvsroot/acpi/pmtools/pmtest/pmtest.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- pmtest.c 31 Mar 2003 03:35:17 -0000 1.1.1.1 +++ pmtest.c 10 Jun 2003 05:55:05 -0000 1.2 @@ -47,7 +47,7 @@ pmdev = pm_find(PM_UNKNOWN_DEV, pmdev); if (!pmdev) break; - i += sprintf(i, "%d 0x%lx %d\n", + i += sprintf(i, "%d 0x%lx %lu\n", pmdev->type, pmdev->id, pmdev->state); @@ -146,3 +146,4 @@ module_init(pmtest_init); module_exit(pmtest_exit); +MODULE_LICENSE("GPL"); |