diff options
Diffstat (limited to 'include/linux/export-internal.h')
-rw-r--r-- | include/linux/export-internal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/export-internal.h b/include/linux/export-internal.h new file mode 100644 index 000000000..29de29af9 --- /dev/null +++ b/include/linux/export-internal.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Please do not include this explicitly. + * This is used by C files generated by modpost. + */ + +#ifndef __LINUX_EXPORT_INTERNAL_H__ +#define __LINUX_EXPORT_INTERNAL_H__ + +#include <linux/compiler.h> +#include <linux/types.h> + +#define SYMBOL_CRC(sym, crc, sec) \ + asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \ + ".balign 4" "\n" \ + "__crc_" #sym ":" "\n" \ + ".long " #crc "\n" \ + ".previous" "\n") + +#endif /* __LINUX_EXPORT_INTERNAL_H__ */ |