https://github.com/torvalds/linux
Revision a1c9ca5f65c9acfd7c02474b9d5cacbd7ea288df authored by Randy Dunlap on 15 July 2021, 18:55:31 UTC, committed by Linus Torvalds on 15 July 2021, 18:59:59 UTC
My previous patch had a typo/thinko which prevents this driver
from being enabled: change X64_64 to X86_64.

Fixes: 0a9ece9ba154 ("EDAC/igen6: fix core dependency")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-edac@vger.kernel.org
Cc: bowsingbetee <bowsingbetee@protonmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 405386b
Raw File
Tip revision: a1c9ca5f65c9acfd7c02474b9d5cacbd7ea288df authored by Randy Dunlap on 15 July 2021, 18:55:31 UTC
EDAC/igen6: fix core dependency AGAIN
Tip revision: a1c9ca5
bcd.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/bcd.h>
#include <linux/export.h>

unsigned _bcd2bin(unsigned char val)
{
	return (val & 0x0f) + (val >> 4) * 10;
}
EXPORT_SYMBOL(_bcd2bin);

unsigned char _bin2bcd(unsigned val)
{
	return ((val / 10) << 4) + val % 10;
}
EXPORT_SYMBOL(_bin2bcd);
back to top