Re: [PATCH 3/3] EDAC, mce_amd_inj: Set MISCV on injection

From: Borislav Petkov
Date: Sat Jun 13 2015 - 10:11:26 EST


On Wed, Jun 10, 2015 at 06:51:15PM +0200, Borislav Petkov wrote:
> On Wed, Jun 10, 2015 at 11:30:42AM -0500, Aravind Gopalakrishnan wrote:
> > Thanks for the catch here and on Patch 2:)
> >
> > Looks good to me. So you can slap a <Reviewed-by> on them if needed..
>
> Sure, done. :)

Whoops, one more:

---
From: Borislav Petkov <bp@xxxxxxx>
Date: Sat, 13 Jun 2015 16:01:21 +0200
Subject: [PATCH] EDAC, mce_amd_inj: Make it depend on AMD_NB
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

... now that it uses its facilities.

It, too, takes care of randconfig splats like this one:

drivers/edac/mce_amd_inj.c: In function âtoggle_nb_mca_mst_cpuâ:
drivers/edac/mce_amd_inj.c:218:42: warning: dereferencing âvoid *â pointer [enabled by default]
struct pci_dev *F3 = node_to_amd_nb(nid)->misc;
^
drivers/edac/mce_amd_inj.c:218:42: error: request for member âmiscâ in something not a structure or union
make[2]: *** [drivers/edac/mce_amd_inj.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/edac] Error 2

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
Cc: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@xxxxxxx>
---
drivers/edac/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
index 8677ead2a8e1..84604310c826 100644
--- a/drivers/edac/Kconfig
+++ b/drivers/edac/Kconfig
@@ -63,7 +63,7 @@ config EDAC_DECODE_MCE

config EDAC_MCE_INJ
tristate "Simple MCE injection interface"
- depends on EDAC_DECODE_MCE && DEBUG_FS
+ depends on EDAC_DECODE_MCE && DEBUG_FS && AMD_NB
default n
help
This is a simple debugfs interface to inject MCEs and test different
--
2.3.5

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/