]> git.baikalelectronics.ru Git - kernel.git/commit
net/rds/Kconfig: RDS should depend on IPV6
authorAnders Roxell <anders.roxell@linaro.org>
Wed, 25 Jul 2018 22:20:08 +0000 (00:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 05:33:05 +0000 (22:33 -0700)
commit17773fdc403e377acfcc9be81b30b4ab859fbe37
tree779639d10d94c4f519eb03c6905a136cb0ea3ab5
parent7f36241738a1072fd77755c4659b24b57ec2fefb
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: 560fc08f21fa ("rds: Changing IP address internal representation to struct in6_addr")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/Kconfig