2002-01-09 19:19:02

by Axel H. Siebenwirth

[permalink] [raw]
Subject: kdev_t changes cause NVdriver compile failure?

Hallo,

I have upgraded from 2.4.18pre1 to 2.5.2-pre10.
Now my NVdriver doesn't compile anymore. I know, you don't want to deal with
third-party object drivers.

My knowledge is poor, but by investigating through nv.c from
NVIDIA_kernel-1.0-2313 and linux kernel headers I found relations to kdev_t
and I also have seen that there have been changes in latest kernel
pre-patches.

Might this be related?

Thank you very much, I'm missing X very much:)

Axel Siebenwirth


2002-01-09 19:21:02

by Axel H. Siebenwirth

[permalink] [raw]
Subject: Re: kdev_t changes cause NVdriver compile failure?

Hallo,

I forgot the error output:

rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h NVdriver
cc -c -Wall -Wno-unknown-pragmas -Wno-multichar -O2 -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -D_X86_=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM
-DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2313 -I.
-I/lib/modules/2.5.2-pre10/build/include nv.c
nv.c: In function v_kern_open':
nv.c:1148: invalid operands to binary &
nv.c:1152: invalid operands to binary &
nv.c: In function v_kern_close':
nv.c:1259: invalid operands to binary &
make: *** [nv.o] Error 1

It happens both with gcc version 3.0.4 20020108 (prerelease) and
gcc version 2.95.3 20010315 (SuSE).

Thanks,
Axel Siebenwirth