15
15
#include "edac_module.h"
16
16
#include <ras/ras_event.h>
17
17
18
- struct ghes_edac_pvt {
19
- struct list_head list ;
20
- struct ghes * ghes ;
18
+ struct ghes_pvt {
21
19
struct mem_ctl_info * mci ;
22
20
23
21
/* Buffers for the error handling routine */
@@ -32,7 +30,7 @@ static refcount_t ghes_refcount = REFCOUNT_INIT(0);
32
30
* also provides the necessary (implicit) memory barrier for the SMP
33
31
* case to make the pointer visible on another CPU.
34
32
*/
35
- static struct ghes_edac_pvt * ghes_pvt ;
33
+ static struct ghes_pvt * ghes_pvt ;
36
34
37
35
/* GHES registration mutex */
38
36
static DEFINE_MUTEX (ghes_reg_mutex );
@@ -212,7 +210,7 @@ void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)
212
210
{
213
211
struct edac_raw_error_desc * e ;
214
212
struct mem_ctl_info * mci ;
215
- struct ghes_edac_pvt * pvt ;
213
+ struct ghes_pvt * pvt ;
216
214
unsigned long flags ;
217
215
char * p ;
218
216
@@ -470,7 +468,7 @@ int ghes_edac_register(struct ghes *ghes, struct device *dev)
470
468
bool fake = false;
471
469
int rc = 0 , num_dimm = 0 ;
472
470
struct mem_ctl_info * mci ;
473
- struct ghes_edac_pvt * pvt ;
471
+ struct ghes_pvt * pvt ;
474
472
struct edac_mc_layer layers [1 ];
475
473
struct ghes_edac_dimm_fill dimm_fill ;
476
474
unsigned long flags ;
@@ -507,15 +505,14 @@ int ghes_edac_register(struct ghes *ghes, struct device *dev)
507
505
layers [0 ].size = num_dimm ;
508
506
layers [0 ].is_virt_csrow = true;
509
507
510
- mci = edac_mc_alloc (0 , ARRAY_SIZE (layers ), layers , sizeof (struct ghes_edac_pvt ));
508
+ mci = edac_mc_alloc (0 , ARRAY_SIZE (layers ), layers , sizeof (struct ghes_pvt ));
511
509
if (!mci ) {
512
510
pr_info ("Can't allocate memory for EDAC data\n" );
513
511
rc = - ENOMEM ;
514
512
goto unlock ;
515
513
}
516
514
517
515
pvt = mci -> pvt_info ;
518
- pvt -> ghes = ghes ;
519
516
pvt -> mci = mci ;
520
517
521
518
mci -> pdev = dev ;
0 commit comments