[PATCH] crc32: Drop duplicates crc header includes

Ilya Lukin 4.shket at gmail.com
Fri Jul 14 16:39:32 CEST 2023


Fixes: 3db711085752 ("crc32: Use the crc.h header for crc functions")
Signed-off-by: Ilya Lukin <4.shket at gmail.com>
---
 board/sunxi/board.c   | 1 -
 boot/android_ab.c     | 1 -
 common/hash.c         | 1 -
 lib/crc32.c           | 1 -
 tools/default_image.c | 1 -
 5 files changed, 5 deletions(-)

diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index f321cd58a6..de0f3505e5 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -33,7 +33,6 @@
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
-#include <u-boot/crc.h>
 #ifndef CONFIG_ARM64
 #include <asm/armv7.h>
 #endif
diff --git a/boot/android_ab.c b/boot/android_ab.c
index 2d7b392666..271df273e1 100644
--- a/boot/android_ab.c
+++ b/boot/android_ab.c
@@ -12,7 +12,6 @@
 #include <memalign.h>
 #include <linux/err.h>
 #include <u-boot/crc.h>
-#include <u-boot/crc.h>
 
 /**
  * Compute the CRC-32 of the bootloader control struct.
diff --git a/common/hash.c b/common/hash.c
index 9a52d6073c..7d8ec75318 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -21,7 +21,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/errno.h>
-#include <u-boot/crc.h>
 #else
 #include "mkimage.h"
 #include <linux/compiler_attributes.h>
diff --git a/lib/crc32.c b/lib/crc32.c
index aa94d70ef3..f6fad8c15d 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -10,7 +10,6 @@
 
 #ifdef USE_HOSTCC
 #include <arpa/inet.h>
-#include <u-boot/crc.h>
 #else
 #include <common.h>
 #include <efi_loader.h>
diff --git a/tools/default_image.c b/tools/default_image.c
index 0e49ab3301..04bc85bf93 100644
--- a/tools/default_image.c
+++ b/tools/default_image.c
@@ -15,7 +15,6 @@
 
 #include "imagetool.h"
 #include "mkimage.h"
-#include <u-boot/crc.h>
 
 #include <image.h>
 #include <tee/optee.h>
-- 
2.40.1



More information about the U-Boot mailing list