On Thu, Jun 9, 2022 at 7:28 PM Richard Henderson
<[email protected]> wrote:
>
> On 6/8/22 20:16, Anup Patel wrote:
> > On Wed, Jun 8, 2022 at 10:23 PM Richard Henderson
> > <[email protected]> wrote:
> >>
> >> On 6/8/22 09:14, Anup Patel wrote:
> >>> +    struct isa_ext_data isa_edata_arr[] = {
> >>
> >> static const?
> >
> > Using const is fine but we can't use "static const" because
> > the "struct isa_ext_data" has a pointer to ext_xyz which
> > is different for each CPU.
>
> Ah, I see.  Perhaps better to use offsetof then -- the data structure is not 
> small...

I agree. Using offsetof() is a much better approach.

Thanks,
Anup

>
>
> r~

Reply via email to