diff options
author | glebius <glebius@FreeBSD.org> | 2013-09-06 17:44:13 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-09-06 17:44:13 +0000 |
commit | cf3713518595a1e12a02ab5ca33b78585ca53076 (patch) | |
tree | 24788d12ad1067a80d7311a87b383003a33dc623 /sys | |
parent | d13d69ef17e933f4e8a1be14f0558e25dad171c7 (diff) | |
download | FreeBSD-src-cf3713518595a1e12a02ab5ca33b78585ca53076.zip FreeBSD-src-cf3713518595a1e12a02ab5ca33b78585ca53076.tar.gz |
Fix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations
to MD headers.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/include/sf_buf.h | 2 | ||||
-rw-r--r-- | sys/i386/include/sf_buf.h | 3 | ||||
-rw-r--r-- | sys/mips/include/sf_buf.h | 3 | ||||
-rw-r--r-- | sys/powerpc/include/sf_buf.h | 3 | ||||
-rw-r--r-- | sys/sparc64/include/sf_buf.h | 3 | ||||
-rw-r--r-- | sys/sys/sf_buf.h | 3 |
6 files changed, 14 insertions, 3 deletions
diff --git a/sys/arm/include/sf_buf.h b/sys/arm/include/sf_buf.h index 2225d58..6508744 100644 --- a/sys/arm/include/sf_buf.h +++ b/sys/arm/include/sf_buf.h @@ -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) diff --git a/sys/i386/include/sf_buf.h b/sys/i386/include/sf_buf.h index 415dcbb..20296b3 100644 --- a/sys/i386/include/sf_buf.h +++ b/sys/i386/include/sf_buf.h @@ -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) { diff --git a/sys/mips/include/sf_buf.h b/sys/mips/include/sf_buf.h index 00502a0..e5d981f 100644 --- a/sys/mips/include/sf_buf.h +++ b/sys/mips/include/sf_buf.h @@ -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) { diff --git a/sys/powerpc/include/sf_buf.h b/sys/powerpc/include/sf_buf.h index 7ddb981..f8a5936 100644 --- a/sys/powerpc/include/sf_buf.h +++ b/sys/powerpc/include/sf_buf.h @@ -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. diff --git a/sys/sparc64/include/sf_buf.h b/sys/sparc64/include/sf_buf.h index b6ee1cc..ebbbea8 100644 --- a/sys/sparc64/include/sf_buf.h +++ b/sys/sparc64/include/sf_buf.h @@ -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) { diff --git a/sys/sys/sf_buf.h b/sys/sys/sf_buf.h index 61643b0..2e85bc8 100644 --- a/sys/sys/sf_buf.h +++ b/sys/sys/sf_buf.h @@ -65,9 +65,6 @@ extern counter_u64_t sfstat[sizeof(struct sfstat) / sizeof(uint64_t)]; #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_ */ |