xfs
[Top] [All Lists]

Small bug in ktrace.c

To: linux-xfs@xxxxxxxxxxx
Subject: Small bug in ktrace.c
From: csmall@xxxxxxxxxx (Craig Small)
Date: Fri, 2 May 2003 10:35:21 +1000
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.4i
Hello,
  I'm trying to compile a kernel on the alpha arch.  The source is from
the Debian package kernel-source 2.4.20-6 which i then patch with the
2.4.20 XFS patches only, quota32 and kernel.

It dies around here

gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.20/include -Wall -Wstrict-prototyp
es -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pip
e -mno-fp-regs -ffixed-8 -mcpu=pca56 -Wa,-mev6  -I.. -nostdinc -iwithprefix incl
ude -DKBUILD_BASENAME=ktrace  -DEXPORT_SYMTAB -c ktrace.c
In file included from ktrace.c:35:
../xfs_types.h:61: syntax error before "xfs_off_t"

(then it complains about BITS_PER_LONG)

ktrace.c needs to include linux/types.h or asm/types.h 

I changed the file to this:

#include <linux/module.h>
#include <linux/types.h>

#include <xfs_types.h>

It compiled fine.

I cannot test if it works ok because i have another problem (unrelated I
think) with sync,kupdated and sshd all sitting at state D and shutdown
goes D too so I have to power-cycle the box :(

  - Craig


-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/                <csmall@xxxxxxxxxx>
MIEEE <csmall@xxxxxxxx>                 Debian developer <csmall@xxxxxxxxxx>


<Prev in Thread] Current Thread [Next in Thread>
  • Small bug in ktrace.c, Craig Small <=