Skip to content

Commit d4277fa

Browse files
rtc: sh: silence warning
Silence: drivers/rtc/rtc-sh.c:517:58: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 0bb80ec commit d4277fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-sh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ static int __init sh_rtc_probe(struct platform_device *pdev)
469469
{
470470
struct sh_rtc *rtc;
471471
struct resource *res;
472-
char clk_name[6];
472+
char clk_name[14];
473473
int clk_id, ret;
474474

475475
rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);

0 commit comments

Comments
 (0)