Re: Linux 2.5.25-dj1

From: Adrian Bunk (bunk@fs.tum.de)
Date: Wed Jul 10 2002 - 01:32:00 EST


The -dj patch changes three occurances of minor in ixj.c to minor_no:

<-- snip -->

...
- printk("phone%d ioctl, cmd: 0x%x, arg: 0x%lx\n", minor, cmd, arg);
- if (minor >= IXJMAX) {
- clear_bit(board, &j->busyflags);
+ printk("phone%d ioctl, cmd: 0x%x, arg: 0x%lx\n", minor_no, cmd, arg);
+ if (minor_no >= IXJMAX) {
+ clear_bit(board, j->busyflags);
...
- printk("phone%d ioctl end, cmd: 0x%x, arg: 0x%lx\n", minor, cmd, arg);
- clear_bit(board, &j->busyflags);
+ printk("phone%d ioctl end, cmd: 0x%x, arg: 0x%lx\n", minor_no, cmd, arg);
+ clear_bit(board, j->busyflags);
...

<-- snip -->

This causes the following compile error:

<-- snip -->

...
  gcc -Wp,-MD,./.phonedev.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.25-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix
include -DKBUILD_BASENAME=phonedev -c -o phonedev.o phonedev.c
  gcc -Wp,-MD,./.ixj.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.25-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix
include -DKBUILD_BASENAME=ixj -c -o ixj.o ixj.c
ixj.c: In function `ixj_ioctl':
ixj.c:6220: `minor_no' undeclared (first use in this function)
ixj.c:6220: (Each undeclared identifier is reported only once
ixj.c:6220: for each function it appears in.)
ixj.c:6204: warning: unused variable `minor'
ixj.c: At top level:
ixj.c:794: warning: `ixj_register' defined but not used
ixj.c:849: warning: `ixj_unregister' defined but not used
make[2]: *** [ixj.o] Error 1
make[2]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.25-full/drivers/telephony'

<-- snip -->

After changing the three minor_no back to minor it compiles.

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

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



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:16 EST