diff mbox series

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

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

Commit Message

Yang Li Aug. 2, 2024, 6:02 a.m. UTC
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(-)

Comments

Lorenzo Stoakes Aug. 2, 2024, 6:33 a.m. UTC | #1
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>
diff mbox series

Patch

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>