Skip to content

Commit 9302029

Browse files
committed
mtd: spi-nor: explicitly include <linux/math64.h>
swp and otp drivers use div_u64 and div64_u64 and rely on implicit inclusion of <linux/math64.h>. It is good practice to directly include all headers used, it avoids implicit dependencies and spurious breakage if someone rearranges headers and causes the implicit include to vanish. Include the missing header. Reviewed-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 797bbaa commit 9302029

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/mtd/spi-nor/otp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include <linux/log2.h>
9+
#include <linux/math64.h>
910
#include <linux/mtd/mtd.h>
1011
#include <linux/mtd/spi-nor.h>
1112

drivers/mtd/spi-nor/swp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Copyright (C) 2005, Intec Automation Inc.
66
* Copyright (C) 2014, Freescale Semiconductor, Inc.
77
*/
8+
#include <linux/math64.h>
89
#include <linux/mtd/mtd.h>
910
#include <linux/mtd/spi-nor.h>
1011

0 commit comments

Comments
 (0)