Date: Thu, 5 Apr 2001 15:10:29 +0200 From: Jochen Kaiser <Jochen.Kaiser@rrze.uni-erlangen.de> To: freebsd-hackers@FreeBSD.ORG Subject: struct malloc_type; problems with MALLOC_(DEFINE|DECLARE) Message-ID: <20010405151029.A9781@devil.rrze.uni-erlangen.de>
next in thread | raw e-mail | index | archive | help
Hello, I've got some problems with MALLOC_DEFINE(M_DNDF, "ip_dndf", "dndf kernel aquisitions"); in my .c file and/or MALLOC_DECLARE(M_DNDF); in my .h In sys/malloc.h it shows that MALLOC_DEFINE initializes the malloc_type struct to default values. When I know use it in my kernel code, I get a warning like: ../../netinet/ip_dndf.c:20: warning: type defaults to `int' in declaration of `SYSINIT' ../../netinet/ip_dndf.c:20: warning: parameter names (without types) in function declaration ../../netinet/ip_dndf.c:20: warning: data definition has no type or storage class ../../netinet/ip_dndf.c:20: warning: type defaults to `int' in declaration of `SYSUNINIT' ../../netinet/ip_dndf.c:20: warning: parameter names (without types) in function declaration ../../netinet/ip_dndf.c:20: warning: data definition has no type or storage class I did search the rest of the kernel code, but I couldn't find any of it that did an assignment to the struct malloc_type. Do I have an error of concept ? thanks in advance, Jochen Kaiser -- Jochen Kaiser kind@IRCNET, phone +49 9131 85-28134 Network Administration mailto:jochen.kaiser@rrze.uni-erlangen.de Regionales Rechenzentrum Universitaet Erlangen-Nuernberg, Germany GPG public key: http://www.uni-erlangen.de/~unrza2/public_key.txt 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?20010405151029.A9781>