mirror of https://github.com/torvalds/linux.git
lib/crc: Explicitly include <linux/export.h>
Fix build warnings with W=1 that started appearing after
commit a934a57a42 ("scripts/misc-check: check missing #include
<linux/export.h> when W=1"). While at it, sort the include lists
alphabetically.
Link: https://lore.kernel.org/r/20250612183852.114878-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
This commit is contained in:
parent
61d01fb7af
commit
1a822ea52a
|
|
@ -1,8 +1,9 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/crc-ccitt.h>
|
#include <linux/crc-ccitt.h>
|
||||||
|
#include <linux/export.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This mysterious table is just the CRC of each possible byte. It can be
|
* This mysterious table is just the CRC of each possible byte. It can be
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
* crc-itu-t.c
|
* crc-itu-t.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/crc-itu-t.h>
|
#include <linux/crc-itu-t.h>
|
||||||
|
#include <linux/export.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/* CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
|
/* CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
|
||||||
const u16 crc_itu_t_table[256] = {
|
const u16 crc_itu_t_table[256] = {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@
|
||||||
* Written by Martin K. Petersen <martin.petersen@oracle.com>
|
* Written by Martin K. Petersen <martin.petersen@oracle.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/crc-t10dif.h>
|
#include <linux/crc-t10dif.h>
|
||||||
|
#include <linux/export.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table generated using the following polynomial:
|
* Table generated using the following polynomial:
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
* crc16.c
|
* crc16.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/crc16.h>
|
#include <linux/crc16.h>
|
||||||
|
#include <linux/export.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/** CRC table for the CRC-16. The poly is 0x8005 (x^16 + x^15 + x^2 + 1) */
|
/** CRC table for the CRC-16. The poly is 0x8005 (x^16 + x^15 + x^2 + 1) */
|
||||||
static const u16 crc16_table[256] = {
|
static const u16 crc16_table[256] = {
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
/* see: Documentation/staging/crc32.rst for a description of algorithms */
|
/* see: Documentation/staging/crc32.rst for a description of algorithms */
|
||||||
|
|
||||||
#include <linux/crc32.h>
|
#include <linux/crc32.h>
|
||||||
|
#include <linux/export.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/crc4.h>
|
#include <linux/crc4.h>
|
||||||
|
#include <linux/export.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
|
||||||
static const uint8_t crc4_tab[] = {
|
static const uint8_t crc4_tab[] = {
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,11 @@
|
||||||
* Author: Coly Li <colyli@suse.de>
|
* Author: Coly Li <colyli@suse.de>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/crc64.h>
|
||||||
|
#include <linux/export.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <linux/crc64.h>
|
|
||||||
#include "crc64table.h"
|
#include "crc64table.h"
|
||||||
|
|
||||||
static inline u64 __maybe_unused
|
static inline u64 __maybe_unused
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
* crc7.c
|
* crc7.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/crc7.h>
|
#include <linux/crc7.h>
|
||||||
|
#include <linux/export.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table for CRC-7 (polynomial x^7 + x^3 + 1).
|
* Table for CRC-7 (polynomial x^7 + x^3 + 1).
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@
|
||||||
|
|
||||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||||
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/crc8.h>
|
#include <linux/crc8.h>
|
||||||
|
#include <linux/export.h>
|
||||||
|
#include <linux/module.h>
|
||||||
#include <linux/printk.h>
|
#include <linux/printk.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue