Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3255370pxu; Sun, 11 Oct 2020 03:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymibPcYenJmv+mpJBKO6RZLRNjPOX5/pnGzrqaKSNVj4UnlWbTNfXFag2TcCl0VBG19JnA X-Received: by 2002:a05:6402:37a:: with SMTP id s26mr8155865edw.268.1602410846262; Sun, 11 Oct 2020 03:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602410846; cv=none; d=google.com; s=arc-20160816; b=Z4Au6kQrRQgyw7md/Cs33ufmc6UGhAsG4+1akHQONUNiWvHJ6udyCWRqCcE+vVsMGp QWyIISYRqNxL5JYLSAH5Yn6Q8atOdxQ7g3fsq1c1/eXXvRAfvvGIdC50TZ/r34Tzr/o5 P/97xtAHT5RiCsWIVfnD4uoeuX59MOb8pQ0yB33FBmq6QNawKVucuBcWT+IGrKN1hKVb 6jIkPhZF4kdBuwyVw44m77OrGC7VQK1C77qFWlKT+3ZS3Cm+rU9MsBzAYOYrbp4iBu6W EAqCn42wdUIFD3M9iRAbE6ZjE0F2WDAdCW9/efYRMfO/BXfP8006SB9leM8UeN93gyVZ q/1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=syt03BN3cO3zl0u8JNZ9k8UrzmsXYvx3jqgRpRcLfJQ=; b=IR2QQ0vqWaYbcDwp/cd3Gg8CcRQltC76mkewxiAoV6znFdwjsXjREx5jIKTas20gRh h4VMbIFL0yU3oyp5PT8mL/Kr6q6bDGvXuwp2MHL9eeZ+xClpWuZ/omKx/wZuZLHgrOLV NCd6H6qLRCZPHzCUzPQ3IY0Wtg00IaNzRX8QyVoYpSRU+K/XJUSOFNrtt48HLZ6L+za2 CpPwRQS2KrhFtMnxNLpnAvCWMFQh32Xbj9qQDMkxp5FntU827XaNCOUIeAja7eyVUa49 RUXrBiuYSJXkFcmXhEiMpAVYVyoA2wTWbvxAigSSKDsUE82fumwHNnxVtZEC1EZEhbmS kE8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkRcsgwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zh6si5488201ejb.19.2020.10.11.03.07.03; Sun, 11 Oct 2020 03:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkRcsgwi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731775AbgJJWXv (ORCPT + 99 others); Sat, 10 Oct 2020 18:23:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730253AbgJJSr2 (ORCPT ); Sat, 10 Oct 2020 14:47:28 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2963E20663; Sat, 10 Oct 2020 17:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602351468; bh=2X73WvH8+0g3Vm/qDBzXgbj/M0tM65Yl4Fgb+KIMfTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LkRcsgwiDiE2sGwUMx5636jl/J1FYsQfd1RRa6sbP5jjRrk63aqZ7RCG7PGTte8PZ S4bGI2RXL4H4urHpFDXYrHjCsKK1zyp4gx5jLJ564Z0H5ggmgGXeBjm2JnEvcUCX+x UYwNR6chASYblEA4y9lp46huklRntltGJGEB8M7g= Date: Sat, 10 Oct 2020 10:37:46 -0700 From: Jakub Kicinski To: Pujin Shi Cc: "David S . Miller" , Ursula Braun , Karsten Graul , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, hankinsea@gmail.com Subject: Re: [PATCH 1/2] net: smc: fix missing brace warning for old compilers Message-ID: <20201010103746.3c05e1f4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201008121929.1270-1-shipujin.t@gmail.com> References: <20201008121929.1270-1-shipujin.t@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Oct 2020 20:19:28 +0800 Pujin Shi wrote: > For older versions of gcc, the array = {0}; will cause warnings: > > net/smc/smc_llc.c: In function 'smc_llc_send_link_delete_all': > net/smc/smc_llc.c:1317:9: warning: missing braces around initializer [-Wmissing-braces] > struct smc_llc_msg_del_link delllc = {0}; > ^ > net/smc/smc_llc.c:1317:9: warning: (near initialization for 'delllc.hd') [-Wmissing-braces] > > 1 warnings generated > > Fixes: f3811fd7bc97 ("net/smc: send DELETE_LINK, ALL message and wait for send to complete") > Signed-off-by: Pujin Shi Applied both, thanks!