Re: [PATCH v2 02/17] vdpa_sim: remove unnecessary headers inclusion
On Mon, Nov 30, 2020 at 11:04:49AM +0800, Jason Wang wrote: On 2020/11/26 下午10:49, Stefano Garzarella wrote: Some headers are not necessary, so let's remove them to do some cleaning. Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c index 6a90fdb9cbfc..c6eaf62df8ec 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c @@ -7,24 +7,11 @@ * */ -#include #include -#include I think the rule is to make sure e.g the structure definition can be via direct inclusion. E.g struct device {} is defined in this file. -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include #include #include -#include And the __cpu_to_virtio16 is defined in this file. Okay, I'll keep this two includes and check better the others. Thanks, Stefano
Re: [PATCH v2 02/17] vdpa_sim: remove unnecessary headers inclusion
On 2020/11/26 下午10:49, Stefano Garzarella wrote: Some headers are not necessary, so let's remove them to do some cleaning. Signed-off-by: Stefano Garzarella --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c index 6a90fdb9cbfc..c6eaf62df8ec 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c @@ -7,24 +7,11 @@ * */ -#include #include -#include I think the rule is to make sure e.g the structure definition can be via direct inclusion. E.g struct device {} is defined in this file. -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include #include #include -#include And the __cpu_to_virtio16 is defined in this file. Thanks #include #include #include