Received: by 10.192.165.148 with SMTP id m20csp2432890imm; Sun, 22 Apr 2018 07:02:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49yiDxND0deLXNMYGF592AMDGlGNDawulVFRIwcTzXggKehsWt6/LtZ6W1yfhVu+IVnYftY X-Received: by 10.99.131.72 with SMTP id h69mr13992596pge.378.1524405728939; Sun, 22 Apr 2018 07:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524405728; cv=none; d=google.com; s=arc-20160816; b=J8CWB2U80KXcRMEhIOY9mR18JBurDLo9bk+JtzUDhABE5BagNDwYyHEAlwUyBzJYy3 hI+IWenRDkx7Yvv4M8ZvMppTtoyKoqQ4BmkCL43eZWCGls0DIR1k1R2VTH94Wthj+HNq 5bHjkTBgBvcA6TEfp8iOuk3+jDEBxWc7w35mXVCXmqdgkTobUriA7Ie6qNmoa5RWGFJx SGKm3S1VMOjXIqp/y0N17iLaEeb+2x8TFpDpZWOXWAg+y+rHSvlhbinWIfjqtN0YuVGu t8Q6vTCWzCK6yj3zhJVVO32WVOxVm9ObM8u0YLssKGDPRidd80JtNDY7dEh2ioXTiUZP +8Gg== 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=/6P+7WLsm4Mn8/ZVgkfROoPkanEoeNwXWGm3sFPLD6w=; b=CUW381TH3yKcELajBG1WYOHJ701KUBnWcYsx3v2FmCQBccykbITUfPFomg4NoxOmGx ydRl+EFXk4Uc19iHUKmdss1xI1Oq4cthRWCFwRbAwJciWY9lerYSAo8TsWZK/7J6IX29 VXhzHlvlVJ+0c+li6WgZCJoHHQb4eZfNTv9FhzUNGma1KA9I4B/HG9KVCn4PGzaDo5Xb PA2quyWv7GwKDM8Vy5FVW4LgovGACYQpnnX3heXeW8Yni2JDNLmGNm+1YIkeRCkRZ/Tm 1nMuWG4+DYvPxyjoaFeJIMytM00qHd3maD5dkuIWdnJbvpN5KP1Q8tKwK0fNSDdDmG6b FIyA== 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 v8si8959718pff.125.2018.04.22.07.01.54; Sun, 22 Apr 2018 07:02:08 -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 S1754423AbeDVN7s (ORCPT + 99 others); Sun, 22 Apr 2018 09:59:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46950 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754362AbeDVN7f (ORCPT ); Sun, 22 Apr 2018 09:59:35 -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 70B219C; Sun, 22 Apr 2018 13:59:34 +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 Subject: [PATCH 4.16 116/196] drivers/infiniband/core/verbs.c: fix build with gcc-4.4.4 Date: Sun, 22 Apr 2018 15:52:16 +0200 Message-Id: <20180422135110.252389476@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 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: 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 @@ -2197,8 +2197,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;