kern/176280: [kernel] On net/if_var.h we can't return a value in a void function.
Marcelo Araujo
araujo at FreeBSD.org
Wed Feb 20 03:20:01 UTC 2013
>Number: 176280
>Category: kern
>Synopsis: [kernel] On net/if_var.h we can't return a value in a void function.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 20 03:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Marcelo Araujo
>Release: 9.1-RELEASE
>Organization:
FreeBSD
>Environment:
FreeBSD qnap91 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Tue Jan 22 11:03:23 CST 2013 root at qnap91:/usr/obj/usr/src/sys/QNAP amd64
>Description:
On FreeBSD-HEAD specifically on sys/net/if_var.h at line 695 on the function drbr_advance we cannot call a return in a void function, we should use the mbuf struct.
>How-To-Repeat:
Build it using clang.
>Fix:
Patch attached with submission follows:
--- sys/net/if_var.h 2013-02-19 10:54:20.065079344 +0800
+++ /tmp/b 2013-02-20 11:07:26.009262919 +0800
@@ -695,7 +695,7 @@
return (buf_ring_dequeue_sc(br));
}
-static __inline void
+static __inline int
drbr_advance(struct ifnet *ifp, struct buf_ring *br)
{
#ifdef ALTQ
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list