Fixes raspberry pi firmware version output
ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()

time64_t is 64-bit width type, we are not supposed to supply lesser ones
as in the case of rpi_firmware_print_firmware_revision() after the commit
4a60f58ee002 ("ARM: bcm2835: Switch to use %ptT"). Use temporary variable
of time64_t type to correctly handle lesser types.

Fixes: 4a60f58ee002 ("ARM: bcm2835: Switch to use %ptT")
Reported-by: Stefan Wahren <>
Reported-by: Nicolas Saenz Julienne <>
Signed-off-by: Andy Shevchenko <>
Revieved-by: Petr Mladek <>
Tested-by: Nicolas Saenz Julienne <>
Signed-off-by: Nicolas Saenz Julienne <>
Cc: Petr Mladek <>
Cc: Steven Rostedt <>
Cc: Sergey Senozhatsky <>
1 file changed