brintos

brintos / linux-shallow public Read only

0
0
Text · 348 B · 341d829 Raw
20 lines · plain
1{# SPDX-License-Identifier: GPL-2.0 #}2 3{% if annotate %}4/* enum {{ name }} */5{% endif %}6{% if name in public_apis %}7bool8{% else %}9static bool __maybe_unused10{% endif %}11xdrgen_decode_{{ name }}(struct xdr_stream *xdr, enum {{ name }} *ptr)12{13	u32 val;14 15	if (xdr_stream_decode_u32(xdr, &val) < 0)16		return false;17	*ptr = val;18	return true;19}20