Date: Thu, 5 Apr 2001 15:33:17 +0200 (CEST) From: Harti Brandt <brandt@fokus.gmd.de> To: Jochen Kaiser <Jochen.Kaiser@rrze.uni-erlangen.de> Cc: <freebsd-hackers@FreeBSD.ORG> Subject: Re: struct malloc_type; problems with MALLOC_(DEFINE|DECLARE) Message-ID: <Pine.BSF.4.33.0104051531001.29048-100000@beagle.fokus.gmd.de> In-Reply-To: <20010405151029.A9781@devil.rrze.uni-erlangen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
See pr docs/24797. You need to include sys/param.h and sys/kernel.h Responsible phk@FreeBSD.org harti On Thu, 5 Apr 2001, Jochen Kaiser wrote: JK>Hello, JK> JK>I've got some problems with JK> JK>MALLOC_DEFINE(M_DNDF, "ip_dndf", "dndf kernel aquisitions"); in my .c file JK> JK>and/or JK> JK> MALLOC_DECLARE(M_DNDF); in my .h JK> JK>In sys/malloc.h it shows that MALLOC_DEFINE initializes the malloc_type JK>struct to default values. JK> JK>When I know use it in my kernel code, I get a warning like: JK>../../netinet/ip_dndf.c:20: warning: type defaults to `int' in declaration of `SYSINIT' JK>../../netinet/ip_dndf.c:20: warning: parameter names (without types) in function declaration JK>../../netinet/ip_dndf.c:20: warning: data definition has no type or storage class JK>../../netinet/ip_dndf.c:20: warning: type defaults to `int' in declaration of `SYSUNINIT' JK>../../netinet/ip_dndf.c:20: warning: parameter names (without types) in function declaration JK>../../netinet/ip_dndf.c:20: warning: data definition has no type or storage class JK> JK> JK>I did search the rest of the kernel code, but I couldn't find any of it JK>that did an assignment to the struct malloc_type. JK> JK>Do I have an error of concept ? JK> JK>thanks in advance, JK> JK>Jochen Kaiser JK> JK> -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, harti@begemot.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0104051531001.29048-100000>