mtd: spi-nor: explicitly include <linux/math64.h>
authorTudor Ambarus <tudor.ambarus@linaro.org>
Sun, 23 Feb 2025 06:51:10 +0000 (06:51 +0000)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 7 Mar 2025 06:36:38 +0000 (08:36 +0200)
commit93020292fea71d62dc9749745d8ba1b44268a2fc
tree204695cf0c6e95bcadf5e0ac1a54696b6bf0891d
parent797bbaa7531f75985b199e484451fa3f954382b3
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 <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20250223-snor-math64-v2-1-6f0313eea331@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/otp.c
drivers/mtd/spi-nor/swp.c