kernel

duch@wla.pl duch w wla.pl
Pią, 5 Lis 2004, 14:40:42 CET


On Thu, 4 Nov 2004 duch w wla.pl wrote:

> witam
>
> od jakiegos czasu nie kompileje mi sie zaden kernel
>  "athlon-pld-linux-gcc" -Wp,-MD,fs/gfs/.quota.o.d -nostdinc -iwithprefix 
> include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs 
> -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -msoft-float 
> -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default 
> -DMODULE -DKBUILD_BASENAME=quota -DKBUILD_MODNAME=gfs -c -o fs/gfs/quota.o 
> fs/gfs/quota.c
> fs/gfs/quota.c: In function `print_quota_message':
> fs/gfs/quota.c:952: warning: passing arg 3 of pointer to function makes 
> integer from pointer without a cast
> fs/gfs/quota.c:952: error: too many arguments to function
> make[2]: *** [fs/gfs/quota.o] Error 1
> make[1]: *** [fs/gfs] Error 2
> make: *** [fs] Error 2
>
> czy to ma cos wpsolnego z tym ze mam gcc-3.3.5?
>
poszukalem pogrzebalem i dopatrzylem sie:

fs/gfs/quota.c:952: error: too many arguments to function
oto funkcja ktora bruzdzi

if (current->signal) {
   tty = current->signal->tty;
   if (tty && tty->driver->write)
     tty->driver->write(tty, 0, line, len);  <-- 4 argumenty
}

linia ta wskazuje na funkcie write w strukturze tty_driver
a w include/linux/tty_driver.h  mamy

int  (*write)(struct tty_struct * tty,
               const unsigned char *buf, int count);

3 argumenty
komu sie udalo skompilowac kernel?


Pozdrawiam
ChomAr
-- 
+-=========================| Arkadiusz Chomicki |=====================-+
   84-120 Władysławowo         GG#: 420515
   woj. pomorskie              e-mail:chomar(at)wla(dot)pl
   Registered User: 82605      http://www.chomar.wla.pl
   http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=82605
+-========================| Powered by PLD Linux |====================-+


Więcej informacji o liście dyskusyjnej pld-devel-pl