Subject: port-powerpc/13790: lib/libc/arch/powerpc/gen/syncicache.c:67: warning: function declaration isn't a prototype
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hamajima@nagoya.ydc.co.jp>
List: netbsd-bugs
Date: 08/27/2001 16:10:24
>Number: 13790
>Category: port-powerpc
>Synopsis: mismatch of definition between powerpc/cpu.h and lib/libc/arch/powerpc/gen/syncicache.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-powerpc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 27 00:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Katsuomi Hamajima
>Release: NetBSD 1.5X
>Organization:
>Environment:
syssrc/sys/arch/powerpc/include/cpu.h:1.9
basesrc/lib/libc/arch/powerpc/gen/syncicache.c:1.4
System: NetBSD ppc 1.5X NetBSD 1.5X (8500) #32: Mon Aug 27 13:23:27 JST 2001 hamajima@ppc:/usr/src/sys/arch/macppc/compile/8500 macppc
>Description:
In cpu.h,
#if defined(_KERNEL) || defined(_STANDALONE)
#if !defined(CACHELINESIZE)
#define CACHELINESIZE 32
#endif
void __syncicache(void *, int);
#endif
but __syncicache() is always defined in syncicache.c
cc1: warnings being treated as errors
/usr/src/lib/libc/arch/powerpc/gen/syncicache.c:67: warning: function declaration isn't a prototype
>How-To-Repeat:
always
>Fix:
maybe
--- cpu.h.orig Mon Aug 27 12:17:07 2001
+++ cpu.h Mon Aug 27 16:05:02 2001
@@ -161,8 +161,8 @@
#if !defined(CACHELINESIZE)
#define CACHELINESIZE 32
#endif
-void __syncicache(void *, int);
#endif
+void __syncicache(void *, int);
/*
* CTL_MACHDEP definitions.
>Release-Note:
>Audit-Trail:
>Unformatted: