mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
cstyle: Resolve C style issues
The vast majority of these changes are in Linux specific code. They are the result of not having an automated style checker to validate the code when it was originally written. Others were caused when the common code was slightly adjusted for Linux. This patch contains no functional changes. It only refreshes the code to conform to style guide. Everyone submitting patches for inclusion upstream should now run 'make checkstyle' and resolve any warning prior to opening a pull request. The automated builders have been updated to fail a build if when 'make checkstyle' detects an issue. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1821
This commit is contained in:
committed by
Brian Behlendorf
parent
8ffef572ed
commit
d1d7e2689d
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#ifndef LIBSPL_RPC_TYPES_H
|
||||
#define LIBSPL_RPC_TYPES_H
|
||||
#define LIBSPL_RPC_TYPES_H
|
||||
|
||||
#include_next <rpc/types.h>
|
||||
#include <sys/kmem.h>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#ifndef LIBSPL_RPC_XDR_H
|
||||
#define LIBSPL_RPC_XDR_H
|
||||
#define LIBSPL_RPC_XDR_H
|
||||
|
||||
#include_next <rpc/xdr.h>
|
||||
|
||||
@@ -55,10 +55,10 @@ typedef struct xdr_bytesrec {
|
||||
* XDR_RDMANOCHUNK - for xdr implementaion over RDMA, sets private flags in
|
||||
* the XDR stream moving over RDMA.
|
||||
*/
|
||||
#define XDR_PEEK 2
|
||||
#define XDR_SKIPBYTES 3
|
||||
#define XDR_RDMAGET 4
|
||||
#define XDR_RDMASET 5
|
||||
#define XDR_PEEK 2
|
||||
#define XDR_SKIPBYTES 3
|
||||
#define XDR_RDMAGET 4
|
||||
#define XDR_RDMASET 5
|
||||
|
||||
extern bool_t xdr_control(XDR *xdrs, int request, void *info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user