From owner-svn-src-head@FreeBSD.ORG Fri Sep 6 17:44:15 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 47493A7B; Fri, 6 Sep 2013 17:44:15 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 31FEE21DC; Fri, 6 Sep 2013 17:44:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r86HiFW0061662; Fri, 6 Sep 2013 17:44:15 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r86HiEGx061653; Fri, 6 Sep 2013 17:44:14 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201309061744.r86HiEGx061653@svn.freebsd.org> From: Gleb Smirnoff Date: Fri, 6 Sep 2013 17:44:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255318 - in head/sys: arm/include i386/include mips/include powerpc/include sparc64/include sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 17:44:15 -0000 Author: glebius Date: Fri Sep 6 17:44:13 2013 New Revision: 255318 URL: http://svnweb.freebsd.org/changeset/base/255318 Log: Fix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations to MD headers. Modified: head/sys/arm/include/sf_buf.h head/sys/i386/include/sf_buf.h head/sys/mips/include/sf_buf.h head/sys/powerpc/include/sf_buf.h head/sys/sparc64/include/sf_buf.h head/sys/sys/sf_buf.h Modified: head/sys/arm/include/sf_buf.h ============================================================================== --- head/sys/arm/include/sf_buf.h Fri Sep 6 17:42:12 2013 (r255317) +++ head/sys/arm/include/sf_buf.h Fri Sep 6 17:44:13 2013 (r255318) @@ -40,6 +40,8 @@ struct vm_page; struct sf_buf; +struct sf_buf * sf_buf_alloc(struct vm_page *m, int flags); +void sf_buf_free(struct sf_buf *sf); static __inline vm_offset_t sf_buf_kva(struct sf_buf *sf) Modified: head/sys/i386/include/sf_buf.h ============================================================================== --- head/sys/i386/include/sf_buf.h Fri Sep 6 17:42:12 2013 (r255317) +++ head/sys/i386/include/sf_buf.h Fri Sep 6 17:44:13 2013 (r255318) @@ -45,6 +45,9 @@ struct sf_buf { #endif }; +struct sf_buf * sf_buf_alloc(struct vm_page *m, int flags); +void sf_buf_free(struct sf_buf *sf); + static __inline vm_offset_t sf_buf_kva(struct sf_buf *sf) { Modified: head/sys/mips/include/sf_buf.h ============================================================================== --- head/sys/mips/include/sf_buf.h Fri Sep 6 17:42:12 2013 (r255317) +++ head/sys/mips/include/sf_buf.h Fri Sep 6 17:44:13 2013 (r255318) @@ -78,6 +78,9 @@ struct sf_buf { vm_offset_t kva; /* va of mapping */ }; +struct sf_buf * sf_buf_alloc(struct vm_page *m, int flags); +void sf_buf_free(struct sf_buf *sf); + static __inline vm_offset_t sf_buf_kva(struct sf_buf *sf) { Modified: head/sys/powerpc/include/sf_buf.h ============================================================================== --- head/sys/powerpc/include/sf_buf.h Fri Sep 6 17:42:12 2013 (r255317) +++ head/sys/powerpc/include/sf_buf.h Fri Sep 6 17:44:13 2013 (r255318) @@ -45,6 +45,9 @@ struct sf_buf { int ref_count; /* usage of this mapping */ }; +struct sf_buf * sf_buf_alloc(struct vm_page *m, int flags); +void sf_buf_free(struct sf_buf *sf); + /* * On 32-bit OEA, the only purpose for which sf_buf is used is to implement * an opaque pointer required by the machine-independent parts of the kernel. Modified: head/sys/sparc64/include/sf_buf.h ============================================================================== --- head/sys/sparc64/include/sf_buf.h Fri Sep 6 17:42:12 2013 (r255317) +++ head/sys/sparc64/include/sf_buf.h Fri Sep 6 17:44:13 2013 (r255318) @@ -39,6 +39,9 @@ struct sf_buf { vm_offset_t kva; /* va of mapping */ }; +struct sf_buf * sf_buf_alloc(struct vm_page *m, int flags); +void sf_buf_free(struct sf_buf *sf); + static __inline vm_offset_t sf_buf_kva(struct sf_buf *sf) { Modified: head/sys/sys/sf_buf.h ============================================================================== --- head/sys/sys/sf_buf.h Fri Sep 6 17:42:12 2013 (r255317) +++ head/sys/sys/sf_buf.h Fri Sep 6 17:44:13 2013 (r255318) @@ -65,9 +65,6 @@ extern counter_u64_t sfstat[sizeof(struc #define SFSTAT_INC(name) SFSTAT_ADD(name, 1) #endif /* _KERNEL */ -struct sf_buf * - sf_buf_alloc(struct vm_page *m, int flags); -void sf_buf_free(struct sf_buf *sf); int sf_buf_mext(struct mbuf *mb, void *addr, void *args); #endif /* !_SYS_SF_BUF_H_ */