提交 ea2d9be0 编写于 作者: G goutongchen

Fix kabi header file being repeatedly referenced by the same file

uniontech inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I5JI5Z
CVE: NA

---------------------------------------

In the following header files, the "linux/kabi.h" header file is
repeatedly referenced twice, causing the same header file to be
included repeatedly:

	include/linux/blk_types.h
	include/linux/cred.h
	include/linux/device.h
	include/linux/device/class.h
	include/linux/ioport.h
	include/linux/mm.h
	include/linux/swap.h

Remove redundant "linux/kabi.h" header file references to make
the code more canonical.
Signed-off-by: Ngoutongchen <goutongchen@uniontech.com>
上级 a48737a7
......@@ -6,7 +6,6 @@
#ifndef __LINUX_BLK_TYPES_H
#define __LINUX_BLK_TYPES_H
#include <linux/kabi.h>
#include <linux/types.h>
#include <linux/bvec.h>
#include <linux/ktime.h>
......
......@@ -8,7 +8,6 @@
#ifndef _LINUX_CRED_H
#define _LINUX_CRED_H
#include <linux/kabi.h>
#include <linux/capability.h>
#include <linux/init.h>
#include <linux/key.h>
......
......@@ -12,7 +12,6 @@
#ifndef _DEVICE_H_
#define _DEVICE_H_
#include <linux/kabi.h>
#include <linux/dev_printk.h>
#include <linux/energy_model.h>
#include <linux/ioport.h>
......
......@@ -14,7 +14,6 @@
#ifndef _DEVICE_CLASS_H_
#define _DEVICE_CLASS_H_
#include <linux/kabi.h>
#include <linux/kobject.h>
#include <linux/klist.h>
#include <linux/pm.h>
......
......@@ -10,7 +10,6 @@
#define _LINUX_IOPORT_H
#ifndef __ASSEMBLY__
#include <linux/kabi.h>
#include <linux/compiler.h>
#include <linux/types.h>
#include <linux/bits.h>
......
......@@ -6,7 +6,6 @@
#ifdef __KERNEL__
#include <linux/kabi.h>
#include <linux/mmdebug.h>
#include <linux/gfp.h>
#include <linux/bug.h>
......
......@@ -2,7 +2,6 @@
#ifndef _LINUX_SWAP_H
#define _LINUX_SWAP_H
#include <linux/kabi.h>
#include <linux/spinlock.h>
#include <linux/linkage.h>
#include <linux/mmzone.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册