diff mbox series

[-next] media: ipu6: Remove duplicated include in ipu6-dma.h

Message ID 20241111015659.86760-1-yang.lee@linux.alibaba.com (mailing list archive)
State New
Headers show
Series [-next] media: ipu6: Remove duplicated include in ipu6-dma.h | expand

Commit Message

Yang Li Nov. 11, 2024, 1:56 a.m. UTC
The header files linux/iova.h is included twice in ipu6-dma.h,
so one inclusion of each can be removed.

./drivers/media/pci/intel/ipu6/ipu6-dma.h: linux/iova.h is included more
than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11791
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/media/pci/intel/ipu6/ipu6-dma.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Bingbu Cao Nov. 11, 2024, 2:12 a.m. UTC | #1
Li,

Thanks for the patch.

On 11/11/24 9:56 AM, Yang Li wrote:
> The header files linux/iova.h is included twice in ipu6-dma.h,
> so one inclusion of each can be removed.
> 
> ./drivers/media/pci/intel/ipu6/ipu6-dma.h: linux/iova.h is included more
> than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11791

It'd better to add:
Fixes: 799d91fd3fe0 ("media: ipu6: not override the dma_ops of device in driver")

> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  drivers/media/pci/intel/ipu6/ipu6-dma.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/media/pci/intel/ipu6/ipu6-dma.h b/drivers/media/pci/intel/ipu6/ipu6-dma.h
> index b51244add9e6..a902eec5c07a 100644
> --- a/drivers/media/pci/intel/ipu6/ipu6-dma.h
> +++ b/drivers/media/pci/intel/ipu6/ipu6-dma.h
> @@ -7,7 +7,6 @@
>  #include <linux/dma-map-ops.h>
>  #include <linux/dma-mapping.h>
>  #include <linux/iova.h>
> -#include <linux/iova.h>
>  #include <linux/scatterlist.h>
>  #include <linux/types.h>
>  
>

Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Bingbu Cao Nov. 11, 2024, 2:38 a.m. UTC | #2
On 11/11/24 10:12 AM, Bingbu Cao wrote:
> Li,
> 
> Thanks for the patch.
> 
> On 11/11/24 9:56 AM, Yang Li wrote:
>> The header files linux/iova.h is included twice in ipu6-dma.h,
>> so one inclusion of each can be removed.
>>
>> ./drivers/media/pci/intel/ipu6/ipu6-dma.h: linux/iova.h is included more
>> than once.
>>
>> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
>> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=11791
> 
> It'd better to add:
> Fixes: 799d91fd3fe0 ("media: ipu6: not override the dma_ops of device in driver")

Oops, I just noticed the commit above is on the road...
You can correct the hash after it is applied.

> 
>> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
>> ---
>>  drivers/media/pci/intel/ipu6/ipu6-dma.h | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/media/pci/intel/ipu6/ipu6-dma.h b/drivers/media/pci/intel/ipu6/ipu6-dma.h
>> index b51244add9e6..a902eec5c07a 100644
>> --- a/drivers/media/pci/intel/ipu6/ipu6-dma.h
>> +++ b/drivers/media/pci/intel/ipu6/ipu6-dma.h
>> @@ -7,7 +7,6 @@
>>  #include <linux/dma-map-ops.h>
>>  #include <linux/dma-mapping.h>
>>  #include <linux/iova.h>
>> -#include <linux/iova.h>
>>  #include <linux/scatterlist.h>
>>  #include <linux/types.h>
>>  
>>
> 
> Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
> 
>
diff mbox series

Patch

diff --git a/drivers/media/pci/intel/ipu6/ipu6-dma.h b/drivers/media/pci/intel/ipu6/ipu6-dma.h
index b51244add9e6..a902eec5c07a 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-dma.h
+++ b/drivers/media/pci/intel/ipu6/ipu6-dma.h
@@ -7,7 +7,6 @@ 
 #include <linux/dma-map-ops.h>
 #include <linux/dma-mapping.h>
 #include <linux/iova.h>
-#include <linux/iova.h>
 #include <linux/scatterlist.h>
 #include <linux/types.h>