On 17-06-30 00:45:33, Jan Beulich wrote: > >>> Yi Sun <yi.y....@linux.intel.com> 06/30/17 7:46 AM >>> > >On 17-06-29 12:00:12, Jan Beulich wrote: > >> >>> Yi Sun <yi.y....@linux.intel.com> 06/14/17 3:25 AM >>> > >> > +struct cos_write_info > >> > +{ > >> > + unsigned int cos; > >> > + struct feat_node *feature; > >> > + uint32_t *val; > >> > >> const? > >> > >The member of feature, 'cos_reg_val', will be written in 'do_write_psr_msrs'. > >So, I cannot use const here. > > cos_reg_val is a member of struct feat_node, not struct cos_write_info. Note > also > the difference in field names. > Oh, sorry. I mis-understood. Should add 'const' for 'val'.
> Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel