未验证 提交 b3620df5 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!466 LoongArch: fix compile error when using make allmodconfig

Merge Pull Request from: @Hongchen_Zhang 
 
1. when compile for arm platform using make allmodconfig,compile error occurred at drivers/gpu/drm/loongson/lsdc_i2c.o.
So we add the required io.h to make it fine.
2. fix drivers/vfio/pci/vfio_pci_rdwr.c compile error on LoongArch by change the 
  definition of iounmap. 
 
Link:https://gitee.com/openeuler/kernel/pulls/466 

Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
...@@ -41,7 +41,7 @@ static inline void __iomem *ioremap_prot(phys_addr_t offset, unsigned long size, ...@@ -41,7 +41,7 @@ static inline void __iomem *ioremap_prot(phys_addr_t offset, unsigned long size,
#define ioremap(offset, size) \ #define ioremap(offset, size) \
ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL_SUC)) ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL_SUC))
#define iounmap(addr) do { } while (0) #define iounmap(addr) ((void)(addr))
#endif #endif
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/io.h>
#include <drm/drm_print.h> #include <drm/drm_print.h>
#include <drm/drm_device.h> #include <drm/drm_device.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册