summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-19 10:57:33 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-21 18:07:03 +0200
commitcd6cbde6b01b6e82662cad392c0d177b4af17443 (patch)
tree3e5dd20791914dbb7696f30e4e07cc49a5f4ff18 /drivers/scsi/hpsa.h
parentMIPS: BCM63XX: remove bogus Kconfig selects (diff)
downloadlinux-cd6cbde6b01b6e82662cad392c0d177b4af17443.tar.xz
linux-cd6cbde6b01b6e82662cad392c0d177b4af17443.zip
WATCHDOG: sb_wdog: Fix 32 bit build failure
Fixes the following linking problem: drivers/watchdog/sb_wdog.c:211: undefined reference to `__udivdi3' This results from reading a 64 bit register, then dividing the value by 1000000. For 32 bit kernels gcc will use the helper function __udivdi3 from libgcc which the kernel intentionally doesn't provide. In the read registerbits 23..63 are always zero and only bits 0..22 are signficant. So a simple cast to truncate the read value to 32 bits fixes the issue. Reported and initial patch by Markos Chandras <markos.chandras@imgtec.com>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Reported-by: Markos Chandras <markos.chandras@imgtec.com>
Diffstat (limited to 'drivers/scsi/hpsa.h')
0 files changed, 0 insertions, 0 deletions