From linux-kernel-owner+willy=40w.ods.org@vger.kernel.org Fri Apr 25 05:08:50 2003 Return-Path: Received: from vax.home.local (vax [10.2.1.2]) by alpha.home.local (8.12.4/8.12.1) with ESMTP id h3P38oJ7025589 for ; Fri, 25 Apr 2003 05:08:50 +0200 Received: from vger.kernel.org (vger.kernel.org [209.116.70.75]) by vax.home.local (8.12.2/8.12.1) with ESMTP id h3P38j1Q011548 for ; Fri, 25 Apr 2003 05:08:49 +0200 (CEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262884AbTDYCye (ORCPT ); Thu, 24 Apr 2003 22:54:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262885AbTDYCye (ORCPT ); Thu, 24 Apr 2003 22:54:34 -0400 Received: from ivoti.terra.com.br ([200.176.3.20]:40148 "EHLO ivoti.terra.com.br") by vger.kernel.org with ESMTP id S262884AbTDYCyc (ORCPT ); Thu, 24 Apr 2003 22:54:32 -0400 Received: from itaim.terra.com.br (itaim.terra.com.br [200.176.3.76]) by ivoti.terra.com.br (Postfix) with ESMTP id 7EFE540923E; Fri, 25 Apr 2003 00:06:40 -0300 (BRT) Received: from ummagumma.ozzmosis.net (200-203-051-032.nhoce7002.dsl.brasiltelecom.net.br [200.203.51.32]) (authenticated user lucasvr) by itaim.terra.com.br (Postfix) with ESMTP id E49882E006A; Fri, 25 Apr 2003 00:06:39 -0300 (BRT) From: Lucas Correia Villa Real Organization: Ozzmosis Corp. To: lkml Subject: Re: Linux 2.4.21-rc1 Date: Fri, 25 Apr 2003 00:06:53 -0300 User-Agent: KMail/1.5 References: In-Reply-To: Cc: Marcelo Tosatti MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304250006.53769.lucasvr@gobolinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org Status: RO Content-Length: 1613 Lines: 49 On Monday 21 April 2003 15:47, Marcelo Tosatti wrote: > Here goes the first candidate for 2.4.21. > > Please test it extensively. Hi, I had some problems compiling the ramdisk driver: gcc -D__KERNEL__ -I/Depot/Sources/2.4.21-rc1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /Depot/Sources/2.4.21-rc1/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=rd -c -o rd.o rd.c rd.c:88: `CONFIG_BLK_DEV_RAM_SIZE' undeclared here (not in a function) make[2]: *** [rd.o] Error 1 make[2]: Leaving directory `/Depot/Sources/2.4.21-rc1/drivers/block' make[1]: *** [_modsubdir_block] Error 2 make[1]: Leaving directory `/Depot/Sources/2.4.21-rc1/drivers' make: *** [_mod_drivers] Error 2 The simple patch below can fix it, though. Is it ok to check against CONFIG_BLK_DEV_RAM_SIZE definition and redefine it if not found? Lucas --- 2.4.21-rc1/drivers/block/rd.c.orig 2003-04-23 12:39:39.000000000 -0300 +++ 2.4.21-rc1/drivers/block/rd.c 2003-04-23 12:39:41.000000000 -0300 @@ -69,6 +69,10 @@ int initrd_below_start_ok; #endif +#ifndef CONFIG_BLK_DEV_RAM_SIZE +#define CONFIG_BLK_DEV_RAM_SIZE 4096 +#endif + /* Various static variables go here. Most are used only in the RAM disk code. */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/