From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 480 invoked from network); 10 Nov 1998 10:00:29 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 10 Nov 1998 10:00:29 -0000 Received: from picu-sgh.demon.co.uk (qmailr@picu-sgh.demon.co.uk [194.222.182.163]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id EAA15189 for ; Tue, 10 Nov 1998 04:45:27 -0500 Received: (qmail 8621 invoked by uid 500); 10 Nov 1998 07:42:19 -0000 Date: 10 Nov 1998 07:42:19 -0000 Message-ID: <19981110074219.8620.qmail@picu-sgh.demon.co.uk> From: Peter Rye To: flap@germinal.toulouse.inra.fr CC: axp-list@redhat.com In-reply-to: <98110909525900.20121@germinal> (message from Francois LAPERRUQUE on Mon, 9 Nov 1998 09:52:24 +0100) Subject: Re: Kernel .126 compile problem - acct.c References: <199811070725.HAA27842@ppp393.ts.rz.tu-bs.de> <98110909525900.20121@germinal> >>>>> "Francois" == Francois LAPERRUQUE writes: Francois> On Sat, 07 Nov 1998, y0000218@rzrtr1.rz.tu-bs.de wrote: >> 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' >> Francois> I have the same problem whith egcs on my SX164... -- It's nothing to do with egcs. If you look through the source you'll see that it's a simple typo. Here's a patch for this problem and for a problem with the sound driver. 2.1.127 is out now, but unfortunately bombs on boot with an unaligned access (well it does here anyway). --- linux/kernel/acct.c.orig Sat Oct 24 22:00:01 1998 +++ linux/kernel/acct.c Sat Oct 24 22:00:17 1998 @@ -87,7 +87,7 @@ if (!acct_file || !acct_needcheck) return; - sb = acct_file->f_dentry->f_inode->i_sb; + sb = acct_file->f_dentry->d_inode->i_sb; if (!sb->s_op || !sb->s_op->statfs) return; --- linux/include/linux/soundcard.h.orig Mon Oct 26 23:39:05 1998 +++ linux/include/linux/soundcard.h Mon Oct 26 23:46:42 1998 @@ -771,6 +771,9 @@ #define SOUND_MIXER_CAPS 0xfc # define SOUND_CAP_EXCL_INPUT 0x00000001 /* Only one recording source at a time */ #define SOUND_MIXER_STEREODEVS 0xfb /* Mixer channels supporting stereo */ +#define SOUND_MIXER_OUTSRC 0xfa /* Arg contains a bit for each input source to output */ +#define SOUND_MIXER_OUTMASK 0xf9 /* Arg contains a bit for each supported input source to output */ + /* Device mask bits */