Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Kernel .126 compile problem - acct.c
@ 1998-11-07  7:25 y0000218
  1998-11-07 19:54 ` Michal Jaegermann
  1998-11-09  8:52 ` Kernel .126 compile problem - acct.c Francois LAPERRUQUE
  0 siblings, 2 replies; 10+ messages in thread
From: y0000218 @ 1998-11-07  7:25 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1998-11-12 16:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-07  7:25 Kernel .126 compile problem - acct.c y0000218
1998-11-07 19:54 ` 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

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