Fix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations
to MD headers.
This commit is contained in:
parent
bb56d716ea
commit
2ee9b44cae
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user