Skip to content

Commit 3afaff7

Browse files
Akhilesh Patilglemco
authored andcommitted
include/linux/rv.h: remove redundant include file
Remove redundant include <linux/types.h> to clean up the code. Move all unique include files inside CONFIG_RV as they are only needed when CONFIG_RV is enabled. Arrange include files alphabetically. Fixes: 24cbfe1 ("rv: Merge struct rv_monitor_def into struct rv_monitor") [1] Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202507312017.oyD08TL5-lkp@intel.com/ Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in> Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Link: https://lore.kernel.org/r/aJneRbHGlNFg7lr9@bhairav-test.ee.iitb.ac.in Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
1 parent de090d1 commit 3afaff7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/linux/rv.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@
77
#ifndef _LINUX_RV_H
88
#define _LINUX_RV_H
99

10-
#include <linux/types.h>
11-
#include <linux/list.h>
12-
1310
#define MAX_DA_NAME_LEN 32
1411
#define MAX_DA_RETRY_RACING_EVENTS 3
1512

1613
#ifdef CONFIG_RV
14+
#include <linux/array_size.h>
1715
#include <linux/bitops.h>
16+
#include <linux/list.h>
1817
#include <linux/types.h>
19-
#include <linux/array_size.h>
2018

2119
/*
2220
* Deterministic automaton per-object variables.

0 commit comments

Comments
 (0)