[PATCH -next] mm: Remove duplicated include in vma_internal.h

Yang Li posted 1 patch 1 year, 6 months ago
mm/vma_internal.h | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] mm: Remove duplicated include in vma_internal.h
Posted by Yang Li 1 year, 6 months ago
The header files linux/bug.h is included twice in vma_internal.h,
so one inclusion of each can be removed.

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

diff --git a/mm/vma_internal.h b/mm/vma_internal.h
index 14c24d5cb582..b930ab12a587 100644
--- a/mm/vma_internal.h
+++ b/mm/vma_internal.h
@@ -12,7 +12,6 @@
 #include <linux/backing-dev.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
-#include <linux/bug.h>
 #include <linux/cacheflush.h>
 #include <linux/err.h>
 #include <linux/file.h>
-- 
2.32.0.3.g01195cf9f
Re: [PATCH -next] mm: Remove duplicated include in vma_internal.h
Posted by Lorenzo Stoakes 1 year, 6 months ago
On Fri, Aug 02, 2024 at 02:02:16PM GMT, Yang Li wrote:
> The header files linux/bug.h is included twice in vma_internal.h,
> so one inclusion of each can be removed.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9636
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
>  mm/vma_internal.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/mm/vma_internal.h b/mm/vma_internal.h
> index 14c24d5cb582..b930ab12a587 100644
> --- a/mm/vma_internal.h
> +++ b/mm/vma_internal.h
> @@ -12,7 +12,6 @@
>  #include <linux/backing-dev.h>
>  #include <linux/bitops.h>
>  #include <linux/bug.h>
> -#include <linux/bug.h>
>  #include <linux/cacheflush.h>
>  #include <linux/err.h>
>  #include <linux/file.h>
> --
> 2.32.0.3.g01195cf9f
>

Well that's embarrassing, oops :) let's take this in the -mm tree and
pretend it never happened ;)

Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>