mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
xdrgen: Address some checkpatch whitespace complaints
This is a roll-up of three template fixes that eliminate noise from
checkpatch output so that it's easier to spot non-trivial problems.
To follow conventional kernel C style, when a union declaration is
marked with "pragma public", there should be a blank line between
the emitted "union xxx { ... };" and the decoder and encoder
function declarations.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
{# SPDX-License-Identifier: GPL-2.0 #}
|
||||
|
||||
bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, {{ name }} *ptr);
|
||||
bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, {{ name }} value);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{# SPDX-License-Identifier: GPL-2.0 #}
|
||||
};
|
||||
|
||||
typedef enum {{ name }} {{ name }};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{# SPDX-License-Identifier: GPL-2.0 #}
|
||||
};
|
||||
|
||||
typedef __be32 {{ name }};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
};
|
||||
{%- if name in public_apis %}
|
||||
|
||||
|
||||
bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
|
||||
bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *ptr);
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user