Skip to content

Commit

Permalink
net: altera: Replace kernel.h with the necessary inclusions
Browse files Browse the repository at this point in the history
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 <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/18731e4f6430100d6500d6c4732ee028a729c085.1654325651.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Christophe JAILLET authored and Paolo Abeni committed Jun 7, 2022
1 parent 6fa4a6d commit 12de1eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/altera/altera_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
* Copyright (C) 2014 Altera Corporation. All rights reserved
*/

#include <linux/kernel.h>

#ifndef __ALTERA_UTILS_H__
#define __ALTERA_UTILS_H__

#include <linux/compiler.h>
#include <linux/types.h>

void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
Expand Down

0 comments on commit 12de1eb

Please sign in to comment.