From owner-freebsd-hackers Thu Apr 5 6:16:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from max5.rrze.uni-erlangen.de (max5.rrze.uni-erlangen.de [131.188.3.50]) by hub.freebsd.org (Postfix) with ESMTP id 0F25D37B440 for ; Thu, 5 Apr 2001 06:16:46 -0700 (PDT) (envelope-from Jochen.Kaiser@rrze.uni-erlangen.de) Received: from devil.rrze.uni-erlangen.de by max5.rrze.uni-erlangen.de with ESMTP for freebsd-hackers@FreeBSD.ORG; Thu, 5 Apr 2001 15:14:29 +0200 Received: (from unrza2@localhost) by devil.rrze.uni-erlangen.de (8.9.3/8.9.3) id PAA10505 for freebsd-hackers@FreeBSD.ORG; Thu, 5 Apr 2001 15:10:30 +0200 (CEST) From: Jochen Kaiser Date: Thu, 5 Apr 2001 15:10:29 +0200 To: freebsd-hackers@FreeBSD.ORG Subject: struct malloc_type; problems with MALLOC_(DEFINE|DECLARE) Message-Id: <20010405151029.A9781@devil.rrze.uni-erlangen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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