Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1310012imm; Wed, 25 Jul 2018 15:47:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe1UODfuox/WiMiX9wKnHUYU1bnUygicxRGY2yo02ecin4v+S567S5oYdRznTfag/4JITHB X-Received: by 2002:a17:902:1007:: with SMTP id b7-v6mr22413866pla.277.1532558853024; Wed, 25 Jul 2018 15:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532558852; cv=none; d=google.com; s=arc-20160816; b=xoIPk+q+WHbrjBikEGJDchRa6RbIRgJCjRMjMQOg/dOx58wYan0SDvLRzVHTf1IH+t GeFB7a9UJoda7WDv3DTbBCCb6PTeBAiiyj3gJWiWVa32zSxVLXD/3IPxvfbRzlM6HxdT PHLmU9Faia3nWoJ9bc5qPMAJSS32ZsmQWys1hd7a4jMkEcNr0En+zyuRS2UEIYUJ6ZrB YwmKkFR6aMa8Uwhz+Y71KRtJXBmlOGfH6lyYL/UCD80y8Z65SAHzFiQjObKXe/ieHKAr puEFRtuGDYiXa2VCX9Cz+nRJJdojFBnEUorsOLUBrsjUCqPo+LInTXAfhkgpfsoeg0La HvMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=3DNj1vrNOfG0xX/lgaLGL4wIAE/S7XV/FZ4CuEcrH/M=; b=OvTct7Ir6wCOC92Z9WZAvtCE7v98Tjn8chiZZ9teiRhnEJU++xqjYMX9wRtnbWiy3G qNyt3rUYQsndzs72A/FQbrIkrZRz35jjOTteti4DxAVO6FXtw/tRBkCV+Mp6kUc23w7M i3FfS8NXlttu9djG54GdthmmHoSKEvovtUXKSKnqh39Nxdge/3L0W6+Bbp59EL4qUKUh 3GnhMr/vWONAyj9x9ijlYVNX/Siy/3cBf+hy4PoClpNmJvi+7O0Mgj/yzgKFyOruKVUn w1B0sqm3TsYPOe0Kfeosst8se8l4niQPlrbRldVGamebI6ke1JqPTFfzHxEegZojBnk2 4TjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=emjvDhkr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16-v6si15702119pfd.276.2018.07.25.15.47.17; Wed, 25 Jul 2018 15:47:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=emjvDhkr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731627AbeGYXuH (ORCPT + 99 others); Wed, 25 Jul 2018 19:50:07 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:40588 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729182AbeGYXuH (ORCPT ); Wed, 25 Jul 2018 19:50:07 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6PMZ0CG104112; Wed, 25 Jul 2018 22:36:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=3DNj1vrNOfG0xX/lgaLGL4wIAE/S7XV/FZ4CuEcrH/M=; b=emjvDhkrHy/AvWsmj+1tYHAam+OQ/n7G2ClFuR11ojM8KzdtT3E0nGUuUMGIWiOVO6PA 1MeWkA4Y1Xxzm/CkkGmixkDUPugdHlUCya0V0Roeii15gO/rPbymLNST1jKaAI2asGju Wwz/1U7bCN5iPlJ+grLM8cQ1tzA2hiAZ2tzVxUPV3u9OMapMufgXnItxrTtmVmlblt6w +pNALdgnX3bdUmn2oMTdwuSxZ8uOdWdHCWXwjPJvG2CGBfPj/eo5W+FOioyyqlyCc+UF kE+kRbgOteD4QLuRL4eVb/T/MRbO2l/XLxBCAgJfpOCK8HADnsvJEHncyOizod0ALIYo JQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2kbv8t7g8v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jul 2018 22:36:14 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6PMaCnZ009538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jul 2018 22:36:13 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6PMaCZx008901; Wed, 25 Jul 2018 22:36:12 GMT Received: from [10.209.243.127] (/10.209.243.127) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 25 Jul 2018 15:36:12 -0700 Subject: Re: [PATCH] net/rds/Kconfig: RDS should depend on IPV6 To: Anders Roxell , ka-cheong.poon@oracle.com Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org References: <20180725222008.32186-1-anders.roxell@linaro.org> From: Santosh Shilimkar Organization: Oracle Corporation Message-ID: Date: Wed, 25 Jul 2018 15:36:10 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180725222008.32186-1-anders.roxell@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8965 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807250232 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/25/2018 3:20 PM, Anders Roxell wrote: > 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") > Signed-off-by: Anders Roxell > --- > net/rds/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/rds/Kconfig b/net/rds/Kconfig > index 41f75563b54b..607128f10bcd 100644 > --- a/net/rds/Kconfig > +++ b/net/rds/Kconfig > @@ -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