svn commit: r255318 - in head/sys: arm/include i386/include mips/include powerpc/include sparc64/include sys

Gleb Smirnoff glebius at FreeBSD.org
Fri Sep 6 17:44:15 UTC 2013


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_ */


More information about the svn-src-all mailing list