xfs
[Top] [All Lists]

kernel.h

To: linux-xfs@xxxxxxxxxxx
Subject: kernel.h
From: Kris Verbeeck <kris.verbeeck@xxxxxxxxx>
Date: Thu, 14 Jun 2001 21:08:17 +0200
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi,

1) After booting a linux 2.4.5 kernel with XFS support the
kernel.h file contains the following lines:

  /* Kernel type package kernel2.4.5-xfs-2.4.5-xfs is not
installed2.4.5-xfs */

  #ifndef __MODULE_KERNEL_package kernel2.4.5-xfs-2.4.5-xfs is not
installed
  #define __MODULE_KERNEL_package kernel2.4.5-xfs-2.4.5-xfs is not
installed 1
  #endif

Why are they in there?  They are not valid C code.

2) Another problem I have is when I want to recompile the
NVidia kernel module for my GeForce 2 graphics adapter with
this new patched kernel.  I get a lot of errors, where before
with the unpatched kernel everything went alright.  A log
of the make output is attached to this mail.

Any ideas on this?  Haven't found anything in the FAQ's of
either XFS or NVidia about this.

BTW: I had a similar problem with a 2.4.2 kernel, so it is not
the actual kernel version that is the problem.

thx in advance
rm -f nv.o os-interface.o os-registry.o Module-linux NVdriver
cc -c -Wall -Wno-unknown-pragmas -Wno-multichar -O  -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=1251  -I. 
-I/lib/modules/2.4.5-xfs/build/include nv.c
In file included from /lib/modules/2.4.5-xfs/build/include/linux/fs.h:19,
                 from nv-linux.h:54,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/linux/dcache.h: In function `dget':
/lib/modules/2.4.5-xfs/build/include/linux/dcache.h:244: warning: implicit 
declaration of function `printk_R1b7d4074'
In file included from /lib/modules/2.4.5-xfs/build/include/asm/semaphore.h:39,
                 from /lib/modules/2.4.5-xfs/build/include/linux/fs.h:208,
                 from nv-linux.h:54,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/asm/system.h: At top level:
/lib/modules/2.4.5-xfs/build/include/asm/system.h:12: parse error before `('
In file included from /lib/modules/2.4.5-xfs/build/include/linux/rwsem.h:27,
                 from /lib/modules/2.4.5-xfs/build/include/asm/semaphore.h:42,
                 from /lib/modules/2.4.5-xfs/build/include/linux/fs.h:208,
                 from nv-linux.h:54,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/asm/rwsem.h:46: parse error before `('
/lib/modules/2.4.5-xfs/build/include/asm/rwsem.h:47: parse error before `('
/lib/modules/2.4.5-xfs/build/include/asm/rwsem.h:48: parse error before `('
In file included from nv-linux.h:54,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/linux/fs.h:1105: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/fs.h:1106: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/fs.h: In function 
`mark_buffer_dirty_inode':
/lib/modules/2.4.5-xfs/build/include/linux/fs.h:1128: warning: implicit 
declaration of function `mark_buffer_dirty_Rfa70e3d1'
In file included from /lib/modules/2.4.5-xfs/build/include/linux/mm.h:4,
                 from /lib/modules/2.4.5-xfs/build/include/linux/poll.h:10,
                 from nv-linux.h:55,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/linux/sched.h: At top level:
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:151: parse error before `('
In file included from /lib/modules/2.4.5-xfs/build/include/linux/mm.h:4,
                 from /lib/modules/2.4.5-xfs/build/include/linux/poll.h:10,
                 from nv-linux.h:55,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:549: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:550: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:551: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:552: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:554: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:555: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:557: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:719: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h: In function `mmdrop':
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:723: warning: implicit 
declaration of function `__mmdrop'
/lib/modules/2.4.5-xfs/build/include/linux/sched.h: At top level:
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:755: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:756: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/sched.h:757: parse error before `('
In file included from /lib/modules/2.4.5-xfs/build/include/linux/poll.h:10,
                 from nv-linux.h:55,
                 from nv.c:55:
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:341: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h: In function `alloc_pages':
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:352: warning: implicit 
declaration of function `__alloc_pages_Rd96c2cef'
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:352: warning: return makes 
pointer from integer without a cast
/lib/modules/2.4.5-xfs/build/include/linux/mm.h: At top level:
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:360: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:361: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:377: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:378: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:399: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:400: parse error before `('
/lib/modules/2.4.5-xfs/build/include/linux/mm.h: In function `pmd_alloc':
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:415: warning: implicit 
declaration of function `__pmd_alloc'
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:415: warning: return makes 
pointer from integer without a cast
/lib/modules/2.4.5-xfs/build/include/linux/mm.h: At top level:
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:428: warning: `struct sysinfo' 
declared inside parameter list
/lib/modules/2.4.5-xfs/build/include/linux/mm.h:428: warning: its scope is only 
this definition or declaration, which is probably not what you want.
In file included from /lib/modules/2.4.5-xfs/build/include/linux/irq.h:57,
                 from /lib/modules/2.4.5-xfs/build/include/asm/hardirq.h:6,
                 from /lib/modules/2.4.5-xfs/build/include/linux/interrupt.h:45,
                 from nv.c:69:
/lib/modules/2.4.5-xfs/build/include/asm/hw_irq.h:79: parse error before `('
nv.c:290: parse error before `va_list'
nv.c: In function `NV_iMSG':
nv.c:298: `kernel_message_level' undeclared (first use in this function)
nv.c:298: (Each undeclared identifier is reported only once
nv.c:298: for each function it appears in.)
nv.c:299: warning: implicit declaration of function `sprintf_R3c2c5af5'
nv.c:301: `nv' undeclared (first use in this function)
nv.c:309: warning: implicit declaration of function `vsprintf_R954cbb26'
nv.c:309: `printf_format' undeclared (first use in this function)
nv.c:309: `arglist' undeclared (first use in this function)
nv.c: In function `NV_iDMSG':
nv.c:320: `va_list' undeclared (first use in this function)
nv.c:320: parse error before `arglist'
nv.c:322: warning: implicit declaration of function `va_start'
nv.c:322: `arglist' undeclared (first use in this function)
nv.c:323: `KERN_INFO' undeclared (first use in this function)
nv.c:324: warning: implicit declaration of function `va_end'
nv.c: In function `NV_EMSG':
nv.c:333: `va_list' undeclared (first use in this function)
nv.c:333: parse error before `arglist'
nv.c:335: `arglist' undeclared (first use in this function)
nv.c:336: `KERN_ERR' undeclared (first use in this function)
nv.c: In function `nvos_malloc':
nv.c:699: warning: implicit declaration of function `__get_free_pages_R5b3b8f78'
nv.c:724: warning: implicit declaration of function `free_pages_R234535e0'
nv.c: In function `nv_kern_close':
nv.c:1295: warning: implicit declaration of function 
`schedule_timeout_R17d59d01'
nv.c: In function `nv_post_event':
nv.c:2371: warning: implicit declaration of function `__wake_up_R2c77a2af'
make: *** [nv.o] Error 1
<Prev in Thread] Current Thread [Next in Thread>