Subject: kern/32630: Illegal return in sys/kern/uipc_mbuf2.c
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yves-emmanuel.jutard@fr.thalesgroup.com>
List: netbsd-bugs
Date: 01/25/2006 16:05:01
>Number:         32630
>Category:       kern
>Synopsis:       Illegal return in sys/kern/uipc_mbuf2.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 25 16:05:01 +0000 2006
>Originator:     Yves-Emmanuel JUTARD
>Release:        3.0.0
>Organization:
THALES Communication
>Environment:
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
>Description:
in file sys/kern/uipc_mbuf2.c,v 1.18.2.1, l. 300
function 'm_tag_delete_nonpersistent' is declared returning nothing (void)
Yet, it does return something :
	return m_tag_delete_chain(m, NULL);
>How-To-Repeat:
Compile this file with warnings on ;-)
>Fix:
Delete the 'return' keyword or change the prototype of 'm_tag_delete_chain'.