[PATCH] smem: msm: add missing <linux/sizes.h>

Robert Marko robert.marko at sartura.hr
Fri Oct 7 11:52:44 CEST 2022


MSM SMEM driver is currently missing <linux/sizes.h> header and throws
the following compile error:

drivers/smem/msm_smem.c: In function ‘qcom_smem_get_ptable’:
drivers/smem/msm_smem.c:635:71: error: ‘SZ_4K’ undeclared (first use in this function)
  635 |         ptable = smem->regions[0].virt_base + smem->regions[0].size - SZ_4K;

Signed-off-by: Robert Marko <robert.marko at sartura.hr>
Cc: luka.perkov at sartura.hr
---
 drivers/smem/msm_smem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c
index 6395b61b0d..17ee6c837c 100644
--- a/drivers/smem/msm_smem.c
+++ b/drivers/smem/msm_smem.c
@@ -18,6 +18,7 @@
 #include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
+#include <linux/sizes.h>
 #include <smem.h>
 
 DECLARE_GLOBAL_DATA_PTR;
-- 
2.37.3



More information about the U-Boot mailing list