[PATCH v2] mtd: spi-nor: explicitly include <linux/math64.h>

Pratyush Yadav pratyush at kernel.org
Mon Feb 24 09:09:01 PST 2025


On Sun, Feb 23 2025, Tudor Ambarus wrote:

> 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.
>
> Signed-off-by: Tudor Ambarus <tudor.ambarus at linaro.org>

Reviewed-by: Pratyush Yadav <pratyush at kernel.org>

-- 
Regards,
Pratyush Yadav



More information about the linux-mtd mailing list