https://github.com/torvalds/linux
Revision 6882edc04f37691ff9c7fcb30b52506cd7697eb0 authored by Robin Holt on 08 December 2008, 14:43:46 UTC, committed by Tony Luck on 09 December 2008, 18:08:39 UTC
The generic_defconfig has three section mismatches.  This clears up
sn_check_wars().

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent 9877e7b
Raw File
Tip revision: 6882edc04f37691ff9c7fcb30b52506cd7697eb0 authored by Robin Holt on 08 December 2008, 14:43:46 UTC
[IA64] Clear up section mismatch for sn_check_wars.
Tip revision: 6882edc
bcd.c
#include <linux/bcd.h>
#include <linux/module.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