mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
codebase style improvements for OpenZFS 6459 port
This commit is contained in:
committed by
Brian Behlendorf
parent
ec441a9c53
commit
4ea3f86426
@@ -130,22 +130,26 @@ extern in_port_t ntohs(in_port_t);
|
||||
|
||||
#ifdef _BIG_ENDIAN
|
||||
static __inline__ uint64_t
|
||||
htonll(uint64_t n) {
|
||||
htonll(uint64_t n)
|
||||
{
|
||||
return (n);
|
||||
}
|
||||
|
||||
static __inline__ uint64_t
|
||||
ntohll(uint64_t n) {
|
||||
ntohll(uint64_t n)
|
||||
{
|
||||
return (n);
|
||||
}
|
||||
#else
|
||||
static __inline__ uint64_t
|
||||
htonll(uint64_t n) {
|
||||
htonll(uint64_t n)
|
||||
{
|
||||
return ((((uint64_t)htonl(n)) << 32) + htonl(n >> 32));
|
||||
}
|
||||
|
||||
static __inline__ uint64_t
|
||||
ntohll(uint64_t n) {
|
||||
ntohll(uint64_t n)
|
||||
{
|
||||
return ((((uint64_t)ntohl(n)) << 32) + ntohl(n >> 32));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -131,7 +131,8 @@ umem_free(void *ptr, size_t size)
|
||||
}
|
||||
|
||||
static inline void
|
||||
umem_nofail_callback(umem_nofail_callback_t *cb) {}
|
||||
umem_nofail_callback(umem_nofail_callback_t *cb)
|
||||
{}
|
||||
|
||||
static inline umem_cache_t *
|
||||
umem_cache_create(
|
||||
|
||||
Reference in New Issue
Block a user