mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01: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 <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
This commit is contained in:
1 parent
9654a0388a
commit
4329010ad9
4 files changed
+3
-1
No files matched your search
@@ -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