]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-6.6/spi-s3c64xx-explicitly-include-linux-bits.h.patch
2a7ee2293709022f6d83034c52d1ef729cca0cf6
[thirdparty/kernel/stable-queue.git] / queue-6.6 / spi-s3c64xx-explicitly-include-linux-bits.h.patch
1 From 0c610838dcc722982c4940bd96eb03f6135cf9c8 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Wed, 7 Feb 2024 12:04:17 +0000
4 Subject: spi: s3c64xx: explicitly include <linux/bits.h>
5
6 From: Tudor Ambarus <tudor.ambarus@linaro.org>
7
8 [ Upstream commit 4568fa574fcef3811a8140702979f076ef0f5bc0 ]
9
10 The driver uses GENMASK() but does not include <linux/bits.h>.
11
12 It is good practice to directly include all headers used, it avoids
13 implicit dependencies and spurious breakage if someone rearranges
14 headers and causes the implicit include to vanish.
15
16 Include the missing header.
17
18 Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
19 Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
20 Link: https://lore.kernel.org/r/20240207120431.2766269-4-tudor.ambarus@linaro.org
21 Signed-off-by: Mark Brown <broonie@kernel.org>
22 Stable-dep-of: a3d3eab627bb ("spi: s3c64xx: Use DMA mode from fifo size")
23 Signed-off-by: Sasha Levin <sashal@kernel.org>
24 ---
25 drivers/spi/spi-s3c64xx.c | 1 +
26 1 file changed, 1 insertion(+)
27
28 diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
29 index 26d389d95af92..1e519b1537e71 100644
30 --- a/drivers/spi/spi-s3c64xx.c
31 +++ b/drivers/spi/spi-s3c64xx.c
32 @@ -3,6 +3,7 @@
33 // Copyright (c) 2009 Samsung Electronics Co., Ltd.
34 // Jaswinder Singh <jassi.brar@samsung.com>
35
36 +#include <linux/bits.h>
37 #include <linux/clk.h>
38 #include <linux/delay.h>
39 #include <linux/dma-mapping.h>
40 --
41 2.43.0
42