1{# SPDX-License-Identifier: GPL-2.0 #} 2 3{% if annotate %} 4/* Decode {{ result }} results */ 5{% endif %} 6static int {{ program }}_xdr_dec_{{ result }}(struct rpc_rqst *req, 7 struct xdr_stream *xdr, void *data) 8{ 9{% if result == 'void' %} 10 xdrgen_decode_void(xdr); 11{% else %} 12 struct {{ result }} *result = data; 13 14 if (!xdrgen_decode_{{ result }}(xdr, result)) 15 return -EIO; 16{% endif %} 17 return 0; 18} 19