Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1152845imm; Wed, 1 Aug 2018 11:03:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZzV3+46BdUvpMzCc8aV5yHCZi9O/TqmI1ODEZCTKcz88PT0fbNgrssK09CbjC8/DBVwFC X-Received: by 2002:a17:902:1121:: with SMTP id d30-v6mr26105667pla.247.1533146616253; Wed, 01 Aug 2018 11:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533146616; cv=none; d=google.com; s=arc-20160816; b=iL/jZQ8VDn69vMHwtAoDTqQ4QPDWqZc4Dokg++pBJjKEy6l2HfkaH+ynqsTRS1zrPf sxKNi3nGYgY0DmF3mCS7S8KvUICgN+ZPriyIr+7CYZQ8wyLvupGbHiLPrF4KKB8jxTiN u6C5OMZWWEPOfjrifZvzcppi1xwvYunwr78+FxLMXjvtl8I3WWcIERGM38tLSW5d2GCM WTSgbd0lg76aQovyCy+c0VZTM2MsyiRLO4MPa3hoTUaGXBI6oPpw2z18X1kh8eUiRkKv itueKrb2keJAIflpyjVFMaTLMCQ5qxwQvMyKBhDv0BUt1hSBof3mabbo6Ts/J3SnW4fn eMEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=UmyR7+K/hS8q78Ygg8sbjbS1G1NFolhvrURhUevGhds=; b=Qhdftx9NMIdaa+kZAX+wDOdyUF8GYBqE7WBaMA6eshKdIerBOfzMvnyK70leTQv+31 TdsLALuLAbhp0nyWsxmVBxWJ9kSydYhym+GjSq/dHR4YCtW62GjvdrZqltpO55jo6XkH /cmRbIqqXNd2cDoeTwWu34UDgSJobR4y9l2ZLhQHvplldQeVcs3JJFlJFFc6zRsaY1Gl 1yAaneWAkn0XE6ELlE2tg1uDSNVxnuJHLisBZydEGk8jGzN/dK/lypCyEEvVrUDHYUzT IOdsUApgiWdHS70VBJHub/nGVR6uvYzz/mWWAYEoKSaHyq4LTn9qSG57dfLOsiapN5wp SJfQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s11-v6si17666282pgh.576.2018.08.01.11.03.21; Wed, 01 Aug 2018 11:03:36 -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; 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 S1730017AbeHATtT (ORCPT + 99 others); Wed, 1 Aug 2018 15:49:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49886 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405869AbeHATIi (ORCPT ); Wed, 1 Aug 2018 15:08:38 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A72D6133C; Wed, 1 Aug 2018 17:12:26 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , Steve Wise , Sagi Grimberg , Jason Gunthorpe , Andrew Morton , Doug Ledford , Sudip Mukherjee Subject: [PATCH 4.14 004/246] drivers/infiniband/core/verbs.c: fix build with gcc-4.4.4 Date: Wed, 1 Aug 2018 18:48:34 +0200 Message-Id: <20180801165011.911638357@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrew Morton commit 6ee687735e745eafae9e6b93d1ea70bc52e7ad07 upstream. gcc-4.4.4 has issues with initialization of anonymous unions. drivers/infiniband/core/verbs.c: In function '__ib_drain_sq': drivers/infiniband/core/verbs.c:2204: error: unknown field 'wr_cqe' specified in initializer drivers/infiniband/core/verbs.c:2204: warning: initialization makes integer from pointer without a cast Work around this. Fixes: a1ae7d0345edd5 ("RDMA/core: Avoid that ib_drain_qp() triggers an out-of-bounds stack access") Cc: Bart Van Assche Cc: Steve Wise Cc: Sagi Grimberg Cc: Jason Gunthorpe Cc: Signed-off-by: Andrew Morton Signed-off-by: Doug Ledford Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/core/verbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -2118,8 +2118,9 @@ static void __ib_drain_sq(struct ib_qp * struct ib_send_wr *bad_swr; struct ib_rdma_wr swr = { .wr = { + .next = NULL, + { .wr_cqe = &sdrain.cqe, }, .opcode = IB_WR_RDMA_WRITE, - .wr_cqe = &sdrain.cqe, }, }; int ret;