Received: by 10.192.165.148 with SMTP id m20csp2528378imm; Sun, 22 Apr 2018 08:56:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49PiLpip5tSXyhyIv7afiQBZBD4bPz1DX/Okz10jWQd4fXBoFCmIr988kxf1ipvXqEUjgtT X-Received: by 2002:a17:902:5304:: with SMTP id b4-v6mr6174227pli.231.1524412566363; Sun, 22 Apr 2018 08:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524412566; cv=none; d=google.com; s=arc-20160816; b=oSUNOeCMAls1ZaMw9MoNFi/rSEoJkMg2DQhF9a/4gEqqlWCa7wkulQwOKBxDpCe/Qh DUYd7w86uBqCvEBuJcZGwVXHHQeNYQ9r1Y2JwVoUENvkEerp5ydsPiVEDN3nad6qX1bK Jcq9K+nBk4P5gQ080wxGCwdOaVqzYS+i+E39OP+02rhDayXmGxcFohp55u0R4K2JFhe8 7YXAP2qkV9Eo8pht2ck3jxOjwnP3qZcr8A7AN+NpRGPd1y7bkZVnFIHg44VbLbB0KONS YQgnK0DEWdR9o5jAbSGa4YQRO5JryXuZwH3M5W1J3W+AlDwh76N85oSoeiQL8iTWs5AY aC7w== 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=3kDRmMcU9DzvgKMFeFK4kkQQO7AuynrwZJWf6IMGyt4=; b=x3yMKQP0iVO7/Yf1kjAb2OfvSEfdTeJ9thrynZSyPduSPTU4pG4yrKWRVrs2ckpibA c9kdVTmyNF3+GcplksFkfkjZIfSjOCu3yRPBIe+0c0Dtv/gmxRAzmtNYHOpRT+X1Crno ONY9BmvEGlUOblmi+//1sbveUpYI2/Yx8Cyow7gUk7n9MoMf13gRxi9aN5lyFn1Yh2vO hofi+u2B8h5q3FhIkWSBE+veJoe7vwUk1L+rKAQaimFGTg0w1p8uvVMKbRHSZFGWQbF0 BuRwlP56ckdmTitF3zOTUt4B4Q5w39rUy5LWx646BVxTNSRzq5KmKUx77AhiOzr/6+vM MM+g== 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 x12-v6si9740616pll.207.2018.04.22.08.55.52; Sun, 22 Apr 2018 08:56:06 -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 S1754439AbeDVN7u (ORCPT + 99 others); Sun, 22 Apr 2018 09:59:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46976 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754381AbeDVN7i (ORCPT ); Sun, 22 Apr 2018 09:59:38 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 26509412; Sun, 22 Apr 2018 13:59:36 +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 Subject: [PATCH 4.16 117/196] drivers/infiniband/ulp/srpt/ib_srpt.c: fix build with gcc-4.4.4 Date: Sun, 22 Apr 2018 15:52:17 +0200 Message-Id: <20180422135110.298687910@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@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.16-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: 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 @@ -841,8 +841,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, } };