Re: [PATCH -v2 3/6] x86, RAS: Convert mce-inject module to debugfs

From: Joe Perches
Date: Tue Oct 16 2012 - 11:41:08 EST


On Tue, 2012-10-16 at 16:52 +0200, Borislav Petkov wrote:
> From: Borislav Petkov <borislav.petkov@xxxxxxx>
[]
> diff --git a/arch/x86/ras/amd/mce-inject.c b/arch/x86/ras/amd/mce-inject.c
[]
> +#define MCE_INJECT_GET(reg) \
> +static int inj_##reg##_get(void *data, u64 *val) \
> { \
> - return sprintf(buf, "0x%016llx\n", i_mce.reg); \
> + struct mce *m = (struct mce *)data; \

trivia: doesn't need a cast


--
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/