Skip to contentSkip to conversation

net/rds/Kconfig: RDS should depend on IPV6

PATCH Applied Anders Roxell 5 participants 7 messages Jul 25, 2018 – Jul 27, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/rds/Kconfig: RDS should depend on IPV6

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]

  hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
         ^~~~~~~~~~~~~~~
         __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")
---
 net/rds/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +1 -1
index 41f75563b54b..607128f10bcd 100644
@@ -1,7 +1,7 @@
 
 config RDS
 	tristate "The RDS Protocol"
-	depends on INET
+	depends on INET && CONFIG_IPV6
 	---help---
 	  The RDS (Reliable Datagram Sockets) protocol provides reliable,
 	  sequenced delivery of datagrams over Infiniband or TCP.
Signature · 1 line
2.18.0
#1 lore raw
Quoted 21 lines · Anders Roxell

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]

   hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
          ^~~~~~~~~~~~~~~
          __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")
---
  net/rds/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +0 -0
index 41f75563b54b..607128f10bcd 100644

net/rds/Kconfig line 4

Quoted 5 lines
net/rds/Kconfig +1 -1
@@ -1,7 +1,7 @@
 
  config RDS
  	tristate "The RDS Protocol"
-	depends on INET
+	depends on INET && CONFIG_IPV6

This should build without CONFIG_IPV6 too.

Hi Ka-cheong,
Can you please loot at it ? I know you modified lookup function to take always in6_addr now, but probably hashing with '__inet_ehashfn' should work too for non IPV6 address(s).

Regards,
Santosh

#2 lore raw
Quoted 28 lines · Santosh Shilimkar
Quoted 21 lines · Anders Roxell

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration] hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
          ^~~~~~~~~~~~~~~
          __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")

---
  net/rds/Kconfig | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +0 -0
index 41f75563b54b..607128f10bcd 100644
@@ -1,7 +1,7 @@
Quoted 4 lines

  config RDS
      tristate "The RDS Protocol"
-    depends on INET
+    depends on INET && CONFIG_IPV6

This should build without CONFIG_IPV6 too.

Quoted 5 lines

Hi Ka-cheong,
Can you please loot at it ? I know you modified lookup function to take always in6_addr now, but probably hashing with '__inet_ehashfn' should work too for non IPV6 address(s).

I guess for now, let's add this dependency first. I will do a follow up patch to remove this dependency.

Thanks.

Signature · 2 lines
K. Poon
[email protected]
#3 lore raw
Quoted 35 lines · Ka-Cheong Poon
Quoted 27 lines · Santosh Shilimkar
Quoted 20 lines · Anders Roxell

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration] hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
          ^~~~~~~~~~~~~~~
          __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")

--- >>>   net/rds/Kconfig | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +0 -0
index 41f75563b54b..607128f10bcd 100644
@@ -1,7 +1,7 @@
Quoted 4 lines

  config RDS
      tristate "The RDS Protocol"
-    depends on INET
+    depends on INET && CONFIG_IPV6

This should build without CONFIG_IPV6 too.

Quoted 5 lines

Hi Ka-cheong,
Can you please loot at it ? I know you modified lookup function to take always in6_addr now, but probably hashing with '__inet_ehashfn' should work too for non IPV6 address(s).

Quoted 3 lines

I guess for now, let's add this dependency first.  I will do a follow up patch to remove this dependency.

Sounds good to me.

FWIW,

maintainer Applied
#4 lore raw
In reply to Anders Roxell

From: Anders Roxell <[email protected]>
Date: Thu, 26 Jul 2018 00:20:08 +0200

Quoted 4 lines

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]

Quoted 8 lines
  hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
         ^~~~~~~~~~~~~~~
         __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")

Applied.

#5 lore raw
In reply to Anders Roxell
Quoted 21 lines · Anders Roxell

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]

  hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
         ^~~~~~~~~~~~~~~
         __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")
---
 net/rds/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +0 -0
index 41f75563b54b..607128f10bcd 100644

net/rds/Kconfig line 4

Quoted 5 lines
net/rds/Kconfig +1 -1
@@ -1,7 +1,7 @@
 
 config RDS
 	tristate "The RDS Protocol"
-	depends on INET
+	depends on INET && CONFIG_IPV6

You probably meant :

        depends on INET && IPV6
Quoted 4 lines
net/rds/Kconfig +0 -0
 	---help---
 	  The RDS (Reliable Datagram Sockets) protocol provides reliable,
 	  sequenced delivery of datagrams over Infiniband or TCP.
#6 lore raw
Quoted 26 lines · Eric Dumazet
Quoted 22 lines · Anders Roxell

Build error, implicit declaration of function __inet6_ehashfn shows up
When RDS is enabled but not IPV6.
net/rds/connection.c: In function ‘rds_conn_bucket’:
net/rds/connection.c:67:9: error: implicit declaration of function ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? [-Werror=implicit-function-declaration]

  hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret);
         ^~~~~~~~~~~~~~~
         __inet_ehashfn

Current code adds IPV6 as a depends on in config RDS.

Fixes eee2fa6ab322 ("rds: Changing IP address internal representation to struct in6_addr")
---
 net/rds/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/Kconfig +0 -0
index 41f75563b54b..607128f10bcd 100644
@@ -1,7 +1,7 @@
 
Quoted 8 lines

net/rds/Kconfig line 4

Quoted 4 lines
net/rds/Kconfig +1 -1
 config RDS
      tristate "The RDS Protocol"
-     depends on INET
+     depends on INET && CONFIG_IPV6

You probably meant :

        depends on INET && IPV6

Hmm... Yes, I'll send out a new patch to fix it.

I'm sorry.

Cheers,
Anders

Quoted 6 lines
Quoted 6 lines
net/rds/Kconfig +0 -0
      ---help---
        The RDS (Reliable Datagram Sockets) protocol provides reliable,
        sequenced delivery of datagrams over Infiniband or TCP.