[PATCH -next] btrfs: Remove duplicate linux/types.h header

Jiapeng Chong posted 1 patch 2 months, 1 week ago
fs/btrfs/messages.h | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] btrfs: Remove duplicate linux/types.h header
Posted by Jiapeng Chong 2 months, 1 week ago
./fs/btrfs/messages.h: linux/types.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22939
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 fs/btrfs/messages.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/btrfs/messages.h b/fs/btrfs/messages.h
index 022ebc89af85..4416c165644f 100644
--- a/fs/btrfs/messages.h
+++ b/fs/btrfs/messages.h
@@ -3,7 +3,6 @@
 #ifndef BTRFS_MESSAGES_H
 #define BTRFS_MESSAGES_H
 
-#include <linux/types.h>
 #include <linux/types.h>
 #include <linux/printk.h>
 #include <linux/bug.h>
-- 
2.43.5
Re: [PATCH -next] btrfs: Remove duplicate linux/types.h header
Posted by David Sterba 2 months, 1 week ago
On Fri, Jul 25, 2025 at 04:07:05PM +0800, Jiapeng Chong wrote:
> ./fs/btrfs/messages.h: linux/types.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22939
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Added to for-next, thanks.