From patchwork Tue Aug 14 09:07:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10565199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E67F71390 for ; Tue, 14 Aug 2018 09:08:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5DB0294DE for ; Tue, 14 Aug 2018 09:08:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9AFE294EE; Tue, 14 Aug 2018 09:08:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71CEF294DE for ; Tue, 14 Aug 2018 09:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731166AbeHNLyY (ORCPT ); Tue, 14 Aug 2018 07:54:24 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:56493 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728978AbeHNLyY (ORCPT ); Tue, 14 Aug 2018 07:54:24 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0MVHys-1fNXDo1bf4-00Ygb5; Tue, 14 Aug 2018 11:07:54 +0200 From: Arnd Bergmann To: Santosh Shilimkar , "David S. Miller" Cc: Arnd Bergmann , Anders Roxell , Greg Thelen , Ka-Cheong Poon , Stephen Hemminger , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org Subject: [PATCH] rds: fix building with IPV6=m Date: Tue, 14 Aug 2018 11:07:42 +0200 Message-Id: <20180814090752.1681486-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:XLnGQc1Ak8KkURlpq7/RmY4jPmXCaWU2eESTXVBiizR39pPgR/Y K5SgtPUgWBL5RkFSQWmaS2mD8JuQt2yuZU11O0M2PVm1pTyniIQOdCmaYTdCEUk9mAC6rWk t/CgdFL1o1jDK19exyfepYlynNEl79qzAtuvMkYB0S1xD3L/eEZjfG6gdK69x+TrLJ4YNoN /Ac0zX073PEEqtZDrz+mg== X-UI-Out-Filterresults: notjunk:1;V01:K0:S+X/Wd2/ZgA=:0rn3zvOHzDTS72sy9aAVaC Zqn6Heyak0diw10Kgx3o7EHD/6l49ZXi0y1/bTRGDYvJzON+LsgJk94BLIHvIH6ze3hZ2jOlI m64T6am8F07B+snqXk1fUMtbqCf68fNDfTwmBqAgNMA9L1QHVIXFRYomLlhzY+K1IAJZNnmgd EEPGlDl3gEwyP55lZjg9/echFyXHuvV20jHrw1rye5hb933XQl0+kRInFuGaaI1YYhz/IqZrZ HvjXoJEkW+Y1+66CmYGWWy0W/O1zv38AjgMuj7ug4enaSlAuN4QPQwh7MSC3KrLoPT4BJ8b5E k8jc2Oiz2O4kqlTwcvHcgHwE4mbxVWtxNMYxEge/8fMQhmCOzC0cJjHaVIeAD8oep1tbYhbNx 3RpCwtTMZ4HLubjDo6qeF2DQGO679O90jIhgvnjNGzqmOeOw0nN8GCZ02MVGYLRFk0ZcU0TU6 AZRKEfkzEHYxUo84rkVoI/GDtWdkgzcZ0yiW5Bs/lwJXi5MypOMUT2f2wUzX43awaTjBkTYN1 tNO/nwAibJgFuJx564dXgmzfs+itAtRjlqlE+h1225CsOgcbGDUb5S/hET58fPJJIJPYs/3ZE tRktfWd/JFYYsd8XMf3geptw048INhwKJXt58wuafPtKpQWO3XVlvhRphLjGzn92Mb9/QUml+ T3pDjTuox9foUm1ijYPsBQOUuCjSC+NXHPiiQp6v7vcxP4aYCSnOle1zWsqrY9YwIxT0= Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_RDS_TCP is built-in and CONFIG_IPV6 is a loadable module, we get a link error agains the modular ipv6_chk_addr() function: net/rds/tcp.o: In function `rds_tcp_laddr_check': tcp.c:(.text+0x3b2): undefined reference to `ipv6_chk_addr' This adds back a dependency that forces RDS_TCP to also be a loadable module when IPV6 is one. Fixes: e65d4d96334e ("rds: Remove IPv6 dependency") Signed-off-by: Arnd Bergmann Acked-by: Santosh Shilimkar Acked-by: Greg Thelen --- net/rds/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/net/rds/Kconfig b/net/rds/Kconfig index 41f75563b54b..01b3bd6a3708 100644 --- a/net/rds/Kconfig +++ b/net/rds/Kconfig @@ -16,6 +16,7 @@ config RDS_RDMA config RDS_TCP tristate "RDS over TCP" depends on RDS + depends on IPV6 || !IPV6 ---help--- Allow RDS to use TCP as a transport. This transport does not support RDMA operations.