Skip to content

Commit 12de1eb

Browse files
tititiou36Paolo Abeni
authored andcommitted
net: altera: Replace kernel.h with the necessary inclusions
When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. While at it, move these includes below the include guard. Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/18731e4f6430100d6500d6c4732ee028a729c085.1654325651.git.christophe.jaillet@wanadoo.fr Signed-off-by: Paolo Abeni <[email protected]>
1 parent 6fa4a6d commit 12de1eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/ethernet/altera/altera_utils.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
* Copyright (C) 2014 Altera Corporation. All rights reserved
44
*/
55

6-
#include <linux/kernel.h>
7-
86
#ifndef __ALTERA_UTILS_H__
97
#define __ALTERA_UTILS_H__
108

9+
#include <linux/compiler.h>
10+
#include <linux/types.h>
11+
1112
void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
1213
void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
1314
int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);

0 commit comments

Comments
 (0)