Re: [PATCH v3 5/8] gzip: move input buffer handling into gunzip state

2024-04-29 Thread Jan Beulich
On 24.04.2024 18:34, Daniel P. Smith wrote: > --- a/xen/common/gzip/gunzip.c > +++ b/xen/common/gzip/gunzip.c > @@ -10,13 +10,12 @@ struct gunzip_state { > unsigned char *window; > /* window pointer: */ > unsigned int wp; > -}; > - > -static unsigned char *__initdata inbuf; > -static

[PATCH v3 5/8] gzip: move input buffer handling into gunzip state

2024-04-24 Thread Daniel P. Smith
Move the input buffer handling, buffer pointer(inbuf), size(insize), and index(inptr), into gunzip state. Adjust functions and macros that consumed the input buffer to accept a struct gunzip_state reference. Signed-off-by: Daniel P. Smith --- xen/common/gzip/gunzip.c | 23 +- xen/common