Re: [PATCH v4 5/5] edac drivers: add MC owner check in init

From: Borislav Petkov
Date: Fri Sep 01 2017 - 05:32:00 EST


On Wed, Aug 23, 2017 at 04:54:47PM -0600, Toshi Kani wrote:
> Change generic x86 edac drivers, which probe CPU type with
> x86_match_cpu(), to verify the module owner at the beginning
> of their module init functions. This allows them to fail
> their init immediately when ghes_edac is enabled. Similar
> change can be made to other edac drivers as necessary.
>
> Also, remove ".c" from module names of pnp2_edac, sb_edac,
> and skx_edac.
>
> Signed-off-by: Toshi Kani <toshi.kani@xxxxxxx>
> Suggested-by: Borislav Petkov <bp@xxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
> Cc: Tony Luck <tony.luck@xxxxxxxxx>
> ---
> drivers/edac/amd64_edac.c | 5 +++++
> drivers/edac/pnd2_edac.c | 9 ++++++++-
> drivers/edac/sb_edac.c | 9 +++++++--
> drivers/edac/skx_edac.c | 9 ++++++++-
> 4 files changed, 28 insertions(+), 4 deletions(-)

Last 2 applied, thanks.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.