On Wed, Dec 23, 2020 at 07:56:57AM -0800, Chang S. Bae wrote: > In preparation for dynamic xstate buffer expansion, update the buffer > initialization function parameters to equally handle static in-line xstate > buffer, as well as dynamically allocated xstate buffer. > > init_fpstate is a special case, which is indicated by a null pointer > parameter to fpstate_init(). > > Also, fpstate_init_xstate() now accepts the state component bitmap to > configure XCOMP_BV for the compacted format. > > No functional change. Much better, thanks! > diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c > index eb86a2b831b1..f23e5ffbb307 100644 > --- a/arch/x86/kernel/fpu/core.c > +++ b/arch/x86/kernel/fpu/core.c > @@ -191,8 +191,16 @@ static inline void fpstate_init_fstate(struct fregs_state *fp) > fp->fos = 0xffff0000u; > } > > -void fpstate_init(union fpregs_state *state) > +/* A null pointer parameter indicates init_fpstate. */ Use kernel-doc comment style instead: /** * .. * * @fpu: If NULL, use init_fpstate */ > +void fpstate_init(struct fpu *fpu) > { ... -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg