Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: y0000218@rzrtr1.rz.tu-bs.de
Subject: Kernel .126 compile problem - acct.c
Date: Sat, 7 Nov 1998 07:25:35 GMT	[thread overview]
Message-ID: <199811070725.HAA27842@ppp393.ts.rz.tu-bs.de> (raw)

Hi,

as I havent seen it on the list (Sorry if it was here):

gcc -D__KERNEL__ -I/tmp/olaf/linux/include -Wall -Wstrict-prototypes -O2 -g -pipe -mno-fp-regs -ffixed-8   -c -o acct.o acct.c
acct.c: In function `check_free_space':
acct.c:90: structure has no member named `f_inode'
acct.c:85: warning: `sb' might be used uninitialized in this function
make[2]: *** [acct.o] Error 1
make[2]: Leaving directory `/tmp/olaf/linux/kernel'

90 is:
sb = acct_file->f_dentry->f_inode->i_sb;

where 

static struct file *acct_file = NULL;

where (fs.h)

struct file {
	struct file		*f_next, **f_pprev;
	struct dentry		*f_dentry;
	struct file_operations	*f_op;
	mode_t			f_mode;
	loff_t			f_pos;
	unsigned short 		f_count, f_flags;
	unsigned long 		f_reada, f_ramax, f_raend, f_ralen, f_rawin;
	struct fown_struct	f_owner;

	unsigned long		f_version;

	/* needed for tty driver, and maybe others */
	void			*private_data;
};

Hmmmm, weird or am I blind? 

struct file is surrounded by a #ifdef __KERNEL__ but that
is defined. 

Hints?

Bear with me if i am dumb ;)

olaf


-- 
"The number of Unix installations       Olaf Schnapauff,
has grown to 10, with more expected."   O.Schnapauff@tu-bs.de  
- The Unix Programmer's Manual,1972     http://www.tu-bs.de/~c0033014/
       See Web page and keyservers  for pgp public key


             reply	other threads:[~1998-11-07 10:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-07  7:25 y0000218 [this message]
1998-11-07 19:54 ` Kernel .126 compile problem - acct.c Michal Jaegermann
1998-11-11  0:50   ` LX164 Eide motherboard DMA? savages
1998-11-11  2:43     ` Greg Johnson
1998-11-12 16:22       ` Adam C. Powell, IV
1998-11-11  2:47     ` Wes Bauske
1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
1998-11-09  9:33   ` dmcgown
1998-11-09 10:38     ` Matthew Geier
1998-11-10  7:42   ` Peter Rye
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox