Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1154235imm; Wed, 1 Aug 2018 11:04:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpePCZDvc3KntodkG+bhKDGSxSon1FSvc0Cmx2RgZsD9bsWomKKUiqtqq5UunfDA+Bd6l52Y X-Received: by 2002:aa7:860b:: with SMTP id p11-v6mr7598055pfn.247.1533146689759; Wed, 01 Aug 2018 11:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533146689; cv=none; d=google.com; s=arc-20160816; b=w1lir312YYyRjH+D6QQZ2ZbmUg6GtWrnrsd/5wsQJVK9x4C1z9VXNqox/wn5Kiqt8j b8mmnhgRP3s9N7WBWkMsgKzvulr55LaOxdZtXJHrupv7wZObaYrStC9qboiYExWlPxC7 Y0g5KAN1EKJf1MqSLxUzCI1piNe9BD5XGYAbogPbuGu315YnrtybGYHzweVewP/wlpLm 4lYlRkyahQy/7rUC4s6Qbh+g2Yx5uN2L3as8Q/K4/qVOe+kKAvGvi1+9QzoPGXREsT+p oxNl64sGl0y5Zv5CwUlsmoqXyNHeKHBIiynuNEOov0j2R4NQJ8KYxOUl7VB7JfSkFcPA 688A== 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=Rh+Z4uweQgvC/SiwmMaT+E3uqATGEZ4JBv0hVGb+56I=; b=feETNulXgrLDWAKexBBXHZd5/TSJaX+3wZPFfmk0pn7o6eqtEQi/JY1R57490Xu8b2 1AwFVOvaIO6ssDbm686P9i56PbGVOafIjf37542H3Sf8Fw/scCz5375C06u8twMmmE1C tUR/DgxcBweAIHeuMKFpsVY44xFxgAJN5/+tNrD2ZbkalVrgdw0bMVwPAuaN9OEM8jnh vnzZf3wiaQfp0yVPkM4b24uurY1VBsR+EjO1wR+RxKw6+CBc0WFQb1bQ/i2AEmRsClv3 4n0T4xol94JAw8re1j7D4V7T9IxDJUj7UyoKCeSEHy25mbs6O/UX615Wy2l5wcyyh9y8 eSHw== 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 o23-v6si17119216pgm.170.2018.08.01.11.04.35; Wed, 01 Aug 2018 11:04:49 -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 S1731682AbeHATt5 (ORCPT + 99 others); Wed, 1 Aug 2018 15:49:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49804 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405873AbeHATIi (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 F26D91342; Wed, 1 Aug 2018 17:12:32 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , Christoph Hellwig , Jason Gunthorpe , Andrew Morton , Doug Ledford , Sudip Mukherjee Subject: [PATCH 4.14 006/246] drivers/infiniband/ulp/srpt/ib_srpt.c: fix build with gcc-4.4.4 Date: Wed, 1 Aug 2018 18:48:36 +0200 Message-Id: <20180801165012.008693768@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 06892cc190550807d332c95a0114c7e175584012 upstream. gcc-4.4.4 has issues with initialization of anonymous unions: drivers/infiniband/ulp/srpt/ib_srpt.c: In function 'srpt_zerolength_write': drivers/infiniband/ulp/srpt/ib_srpt.c:854: error: unknown field 'wr_cqe' specified in initializer drivers/infiniband/ulp/srpt/ib_srpt.c:854: warning: initialization makes integer from pointer without a cast Work aound this. Fixes: 2a78cb4db487 ("IB/srpt: Fix an out-of-bounds stack access in srpt_zerolength_write()") Cc: Bart Van Assche Cc: Christoph Hellwig 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/ulp/srpt/ib_srpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -790,8 +790,9 @@ static int srpt_zerolength_write(struct struct ib_send_wr *bad_wr; struct ib_rdma_wr wr = { .wr = { + .next = NULL, + { .wr_cqe = &ch->zw_cqe, }, .opcode = IB_WR_RDMA_WRITE, - .wr_cqe = &ch->zw_cqe, .send_flags = IB_SEND_SIGNALED, } };