On 23.04.20 19:55:17, Borislav Petkov wrote: > On Wed, Apr 22, 2020 at 01:58:07PM +0200, Robert Richter wrote:
> > diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c > > index cb3dab56a875..39efce0df881 100644 > > --- a/drivers/edac/ghes_edac.c > > +++ b/drivers/edac/ghes_edac.c > > @@ -15,9 +15,7 @@ > > #include "edac_module.h" > > #include <ras/ras_event.h> > > > > -struct ghes_edac_pvt { > > - struct list_head list; > > - struct ghes *ghes; > > +struct ghes_mci { > > No, that should be "ghes_pvt" because it *is* ghes_edac's private > structure and there's also an mci pointer in it. The ghes driver will use private data for both structs, mci and dimm_info. Thus I named it ghes_mci and ghes_dimm (see next patch) as they are counterparts. I could name it "ghes_pvt", but the meaning would be less obvious. Same for your suggestion in the next patch, struct dimm is too general and could cause namespace conflicts with other code (think of cscope etc.). -Robert