Skip to contentSkip to conversation

net: ena: Fix Kconfig dependencies X86

PATCH Superseded [email protected] 2 participants 3 messages Oct 17, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ena: Fix Kconfig dependencies X86

From: Netanel Belgazal <[email protected]>

The Kconfig limitation of X86 is to too wide. The ENA driver only requires a little endian dependency.

Change the dependency to be on little endian CPU.

---
 drivers/net/ethernet/amazon/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/amazon/Kconfig +1 -1
index 99b30353541a..f4d16c7e104f 100644
@@ -17,7 +17,7 @@ if NET_VENDOR_AMAZON
 
 config ENA_ETHERNET
 	tristate "Elastic Network Adapter (ENA) support"
-	depends on (PCI_MSI && X86)
+	depends on (PCI_MSI && !CPU_BIG_ENDIAN)
 	---help---
 	  This driver supports Elastic Network Adapter (ENA)"
 
Signature · 1 line
2.15.2.AMZN
#1 lore raw

Hello!

Quoted 17 lines · On 17.10.2018 11:16, [email protected] wrote:

From: Netanel Belgazal <[email protected]>

The Kconfig limitation of X86 is to too wide. The ENA driver only requires a little endian dependency.

Change the dependency to be on little endian CPU.

---
 drivers/net/ethernet/amazon/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/amazon/Kconfig +0 -0
index 99b30353541a..f4d16c7e104f 100644

drivers/net/ethernet/amazon/Kconfig if NET_VENDOR_AMAZON · line 20

Quoted 5 lines
drivers/net/ethernet/amazon/Kconfig +1 -1
@@ -17,7 +17,7 @@ if NET_VENDOR_AMAZON
 
 config ENA_ETHERNET
 	tristate "Elastic Network Adapter (ENA) support"
-	depends on (PCI_MSI && X86)
+	depends on (PCI_MSI && !CPU_BIG_ENDIAN)

Parens not needed here. High time to remove them, I think.

[...]

MBR, Sergei

#2 lore raw

Sure.
Removing them and resubmit.

On 10/17/18, 11:37 AM, "Sergei Shtylyov" <[email protected]> wrote:

    Hello!
    
    On 17.10.2018 11:16, [email protected] wrote:
    
    > From: Netanel Belgazal <[email protected]>
    >
    > The Kconfig limitation of X86 is to too wide.
    > The ENA driver only requires a little endian dependency.
    >
    > Change the dependency to be on little endian CPU.
    >
    > Signed-off-by: Netanel Belgazal <[email protected]>
    > ---
    >  drivers/net/ethernet/amazon/Kconfig | 2 +-
    >  1 file changed, 1 insertion(+), 1 deletion(-)
    >
    > diff --git a/drivers/net/ethernet/amazon/Kconfig b/drivers/net/ethernet/amazon/Kconfig
    > index 99b30353541a..f4d16c7e104f 100644
    > --- a/drivers/net/ethernet/amazon/Kconfig
    > +++ b/drivers/net/ethernet/amazon/Kconfig
    > @@ -17,7 +17,7 @@ if NET_VENDOR_AMAZON
    >
    >  config ENA_ETHERNET
    >  	tristate "Elastic Network Adapter (ENA) support"
    > -	depends on (PCI_MSI && X86)
    > +	depends on (PCI_MSI && !CPU_BIG_ENDIAN)
    
         Parens not needed here. High time to remove them, I think.
    
    [...]
    
    MBR, Sergei