[PATCH 2/5] crc16: Rename fs/ubifs/crc16.h to include/linux/crc16.h
Stefan Roese
sr at denx.de
Thu Apr 21 16:34:56 CEST 2022
On 4/12/22 11:20, Pali Rohár wrote:
> File fs/ubifs/crc16.h is standard linux's crc16.h include file. So move it
> from fs/ubifs to include/linux where are also other linux include files.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> fs/ubifs/crc16.c | 2 +-
> fs/ubifs/lpt.c | 2 +-
> fs/ubifs/lpt_commit.c | 2 +-
> {fs/ubifs => include/linux}/crc16.h | 0
> 4 files changed, 3 insertions(+), 3 deletions(-)
> rename {fs/ubifs => include/linux}/crc16.h (100%)
>
> diff --git a/fs/ubifs/crc16.c b/fs/ubifs/crc16.c
> index 443ccf855d5e..7cf33fc7eb61 100644
> --- a/fs/ubifs/crc16.c
> +++ b/fs/ubifs/crc16.c
> @@ -6,7 +6,7 @@
> */
>
> #include <linux/types.h>
> -#include "crc16.h"
> +#include <linux/crc16.h>
>
> /** CRC table for the CRC-16. The poly is 0x8005 (x^16 + x^15 + x^2 + 1) */
> u16 const crc16_table[256] = {
> diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c
> index 62748b0210b2..27835e60d2c0 100644
> --- a/fs/ubifs/lpt.c
> +++ b/fs/ubifs/lpt.c
> @@ -42,7 +42,7 @@
> #include <linux/compat.h>
> #include <linux/err.h>
> #include <ubi_uboot.h>
> -#include "crc16.h"
> +#include <linux/crc16.h>
> #endif
>
> /**
> diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c
> index 897d0014306c..ba0b19a1f2b2 100644
> --- a/fs/ubifs/lpt_commit.c
> +++ b/fs/ubifs/lpt_commit.c
> @@ -23,7 +23,7 @@
> #include <linux/bitops.h>
> #include <linux/compat.h>
> #include <linux/err.h>
> -#include "crc16.h"
> +#include <linux/crc16.h>
> #endif
> #include "ubifs.h"
>
> diff --git a/fs/ubifs/crc16.h b/include/linux/crc16.h
> similarity index 100%
> rename from fs/ubifs/crc16.h
> rename to include/linux/crc16.h
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list