Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp263486imm; Tue, 14 Aug 2018 18:44:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw/AiQVha7hIpvZR07+NFQaYDo270plkRec8VDEkP7VywYG9YcxoSrGSg1VOZawVNssjhm5 X-Received: by 2002:a62:9f1d:: with SMTP id g29-v6mr25182429pfe.207.1534297483276; Tue, 14 Aug 2018 18:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534297483; cv=none; d=google.com; s=arc-20160816; b=GRUOzFAhlpL10IpcKiIIcCvd84BK7Ukn1PVbYZcSC15JowA+TWhx9EERfLthHvahYL 1lLbJ2hCuiGLJZosLuns2UFR5l5bE5SiJQXRVZ8Ybs2bqui23UK4oGjIhmN2nPkdfgsB t6TzDPam2Y7oIlSiyBveqQCkNkajliRKq1LMjrOvcErRUOfYvhXboOkP1KGKn3fVhkzh ieT+9UxcSbVlzfIS39/v4yoFyyeYgvIKpjo4jpftoTYYL1kgVQD/2tSjENZ/yF52yGoN 8VMKFf1pbfcgTI/mc/CCECT+GNybVWpR0d6o6Qagat2ZLU5Ku+xD5YPhUykqZ3wFlWu2 i/ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Na2nLuAWhkh6fnn/9jTIvMcbhrqjr9qMotwwdCp8jTA=; b=uNPdKJBXgK5evNDvYQSK8WH5p22FHI5H/XxrBJ16dMxIFnktTLMsOoCwAxpQBHDuZU 5eC/7I6N9O+xgoi6GpSiJOs+9zUdjmAOiXIZawJ46tVITG7s6U1cI2LBdmVROe2f+m0i OK7Cnung3NNirHMIal0pUIuNJQF3HaAB/YcTMcwcF9aVQU4tIOvgOXT5UOpjl+MMwDCw WQ640dJY4+5LFkB1INPMCy3YKK5xDcnyLcOZuM943WAF/nzEuEeAeh5HLR1R07okNfAz 2mhsiloP8a7dS4CT0pj8ElDXML1fRCOO+TQSdnEDeqV6jD29ZjBfcbG4xxDaZuZBIbSh XTXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=FmOkmrvx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si21782397pgh.160.2018.08.14.18.44.28; Tue, 14 Aug 2018 18:44:43 -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=@canb.auug.org.au header.s=201702 header.b=FmOkmrvx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726304AbeHOEdE (ORCPT + 99 others); Wed, 15 Aug 2018 00:33:04 -0400 Received: from ozlabs.org ([203.11.71.1]:42315 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbeHOEdD (ORCPT ); Wed, 15 Aug 2018 00:33:03 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41qsfx4GBJz9s8T; Wed, 15 Aug 2018 11:43:05 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1534297386; bh=gcU5dFm1eKeTvjf+cB0G7vyubxF2FWvtpw9FPeGBPCA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FmOkmrvxz9MKimrpi9fXCyPMp2NmOHqj+0mIoJRWx64C0JZx4HjRcLYaTg1bMyadc oTPq6ysle3zxdJfm9V767Nvza0yqNdak5Jn4/In7Ljc7JCXyMTgbmNBpYlb2zflocS EiYp1Emz+pnMXBN2x9dw+dLlxe3mpvDTeLo1iEtS0DH4uDJFuUTi9+Ybzj2/0DVP6s Ql4p9Uqhk1aSye1uAG1XOkZvEakdmzndXFqHgpEiR1Bnyh0EIHPjojmb1DkUeNb36J XuvVxil+nY6x9CmZbsqAaJPbdp8cFkJ4qLRxd1Z4dk+4vOUVzhQXwZPYbODjIp4I9R /q+Ggvkh6a+gg== Date: Wed, 15 Aug 2018 11:43:03 +1000 From: Stephen Rothwell To: Doug Ledford , Jason Gunthorpe Cc: Jens Axboe , Linux-Next Mailing List , Linux Kernel Mailing List , Steve Wise , Christoph Hellwig Subject: Re: linux-next: build failure after merge of the block tree Message-ID: <20180815114303.685b1789@canb.auug.org.au> In-Reply-To: <20180726145624.13a604ed@canb.auug.org.au> References: <20180726145624.13a604ed@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/vIDoGTdWW5ed7pS+zOHyQVZ"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/vIDoGTdWW5ed7pS+zOHyQVZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Thu, 26 Jul 2018 14:56:24 +1000 Stephen Rothwell = wrote: > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) failed like this: >=20 > drivers/nvme/target/rdma.c: In function 'nvmet_rdma_find_get_device': > drivers/nvme/target/rdma.c:894:26: error: 'struct ib_device_attr' has no = member named 'max_sge'; did you mean 'max_cqe'? > cm_id->device->attrs.max_sge) - 1; > ^ > drivers/nvme/target/rdma.c:893:21: note: in expansion of macro 'max' > inline_sge_count =3D max(cm_id->device->attrs.max_sge_rd, > ^~~ > In file included from include/linux/list.h:9:0, > from include/linux/module.h:9, > from drivers/nvme/host/rdma.c:15: > drivers/nvme/host/rdma.c: In function 'nvme_rdma_find_get_device': > drivers/nvme/host/rdma.c:381:23: error: 'struct ib_device_attr' has no me= mber named 'max_sge'; did you mean 'max_cqe'? > ndev->dev->attrs.max_sge - 1); > ^ > drivers/nvme/host/rdma.c:380:30: note: in expansion of macro 'min' > ndev->num_inline_segments =3D min(NVME_RDMA_MAX_INLINE_SEGMENTS, > ^~~ >=20 > Caused by commits >=20 > 64a741c1eaa8 ("nvme-rdma: support up to 4 segments of inline data") > 0d5ee2b2ab4f ("nvmet-rdma: support max(16KB, PAGE_SIZE) inline data") >=20 > interacting with commit >=20 > 33023fb85a42 ("IB/core: add max_send_sge and max_recv_sge attributes") >=20 > from the rdma tree. >=20 > I have applied the following merge fix patch for today: >=20 > From: Stephen Rothwell > Date: Thu, 26 Jul 2018 14:32:15 +1000 > Subject: [PATCH] nvme-dma: merge fix up for replacement of max_sge >=20 > Signed-off-by: Stephen Rothwell > --- > drivers/nvme/host/rdma.c | 2 +- > drivers/nvme/target/rdma.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c > index cfa0319fcd1c..368fe5ac0c6b 100644 > --- a/drivers/nvme/host/rdma.c > +++ b/drivers/nvme/host/rdma.c > @@ -378,7 +378,7 @@ nvme_rdma_find_get_device(struct rdma_cm_id *cm_id) > } > =20 > ndev->num_inline_segments =3D min(NVME_RDMA_MAX_INLINE_SEGMENTS, > - ndev->dev->attrs.max_sge - 1); > + ndev->dev->attrs.max_send_sge - 1); > list_add(&ndev->entry, &device_list); > out_unlock: > mutex_unlock(&device_list_mutex); > diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c > index 86121a7a19b2..8c30ac7d8078 100644 > --- a/drivers/nvme/target/rdma.c > +++ b/drivers/nvme/target/rdma.c > @@ -891,7 +891,7 @@ nvmet_rdma_find_get_device(struct rdma_cm_id *cm_id) > =20 > inline_page_count =3D num_pages(port->inline_data_size); > inline_sge_count =3D max(cm_id->device->attrs.max_sge_rd, > - cm_id->device->attrs.max_sge) - 1; > + cm_id->device->attrs.max_send_sge) - 1; > if (inline_page_count > inline_sge_count) { > pr_warn("inline_data_size %d cannot be supported by device %s. Reducin= g to %lu.\n", > port->inline_data_size, cm_id->device->name, > --=20 > 2.18.0 This is now needed (with the max_send_sge -> max_recv_sge update in drivers/nvme/target/rdma.c patch) when I merge the rdma tree with Linus' tree. --=20 Cheers, Stephen Rothwell --Sig_/vIDoGTdWW5ed7pS+zOHyQVZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAltzhScACgkQAVBC80lX 0GychQf/dqHMr+UL/drg6+TnENanCESJSaskwmcKgvscSabzZG3lQXj3PBb1Lca9 MkbaG8MSrMRDe7tRspzPNnsFIOShDsY3NhPRb3mqlak4f78uskFl0qNWn4rpXUx0 RO9umzHx1+n+sB1hUG94/2dvmr1SiBmw0zXH18ltEkUHsV3N9BK163TOtPweg411 VxxD6+CkcIGWVHesrkk5ZcX/hjVHOmSwZ7OHkpttLkTew7kcAvpqbknc8mJn6+2J 5J/o43fQ6+EmqkSLpw2jMP9nJzrpSKSZBtRpyc+zYdkJf/qWVwwR1Bb2CszUrLfb OCC9LGI+YsKUVoBNtaqPwmnWIMkZ8w== =7siD -----END PGP SIGNATURE----- --Sig_/vIDoGTdWW5ed7pS+zOHyQVZ--