Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2295931pxu; Fri, 9 Oct 2020 12:57:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybQ3I3eBE4coOBoLZMGtu8fUt3rADiaulwaQ67sJhcnotSXWRNt6hMZtvFQq7UKml59tmH X-Received: by 2002:aa7:c54f:: with SMTP id s15mr920105edr.107.1602273439375; Fri, 09 Oct 2020 12:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602273439; cv=none; d=google.com; s=arc-20160816; b=cQMnpH0Fplh4EZUWZATW9B3S8qzYRDVh7ycwPBLu4u7PGktz7bdpYFKuJY1kFJg/J7 bqwAIEizF6P/C45M/uZ75/SQsy8+o0b0CDVH8nDp4o+h3X06OR1Csg5Ri86oIRxTv7MH J43QUHFWfFQKcB5ZREt3ai/L+I1bC0zxMjombek5xK0kGirgxZRwhwTrVWEvGxwxeZD3 QJHNLd6BFSUx38QX5/Xoz70o6/6wpRqSLJl8MqUkBTBG1z3kyTJsPsAlPd70ukVmKXUe 93Yd2au4tzGlVplY+eZzBtGKrW7nK9MTxbTiicKv7/CFfWUzfJrKSM5OMSpw5lr3ILGE GYdA== 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=vw4gx5k6KMrv8IODdBnIS3HtpuS+J3XDtlLQZIByiEw=; b=RrxsT478xdEHoSaM5ZqVuXfQnt9ULkAjvnRT0JSxkHW7Nh8n/M8lQMffnqmAaqCdck o8fnJ7onabLO0a8qoo8ruq8GeLlHavm6HepErnkyEs/s63boATaoWkgqNrJw44MSM/N5 61kEaBzW3XfHGSI29Efc2euPWuG6S9/PY071aWQEHlkElJ7RnbcLcXoajELtXPkRvDDk MNWlSJmuDw87tG/FFCNe13VECQE4RzjIus0v8Q3qGHVHPZWNdub5Ws2JWE0MC4vXzIwd jRZBm4QCUFdBFY3HVXHAApPdTy9POXmSw99Yay9htnw7RdoFPaPIyIgBzbFx8AuFnEBU 3W2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Asqt5dJF; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di18si6132303edb.555.2020.10.09.12.56.56; Fri, 09 Oct 2020 12:57:19 -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=@ibm.com header.s=pp1 header.b=Asqt5dJF; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390329AbgJISES (ORCPT + 99 others); Fri, 9 Oct 2020 14:04:18 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:4988 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731771AbgJISES (ORCPT ); Fri, 9 Oct 2020 14:04:18 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 099I2wsp123233; Fri, 9 Oct 2020 14:04:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=vw4gx5k6KMrv8IODdBnIS3HtpuS+J3XDtlLQZIByiEw=; b=Asqt5dJF461LjFBjcsjlB7cYlat9IFUPul8ebkY3IoIaLN7B/RbJOePzmu+jW/7ekoo3 zUXnUuf6G3P1T+jzrgsG88Y6AD4c4BcAMnw15XDto33Y1bpyr25kQqIm0AshDvjUbyjy KmRYY73t3RRxxHMdu6LLX99StAEIiVfxy/U5/8oxTSe4hXXs/dSp3ZjJSEXy8fAiRl0Y DRVF9Brc5xBiR8tHsJlGcJnvauCcdtjkN5tmPtxlXv31oEvVmv5VEMVSOp/kbcpJKWcX NgXUBmmbdTKR2M9CVamyKaSh2Rq/2uY9ZicOlYUMK3wPPbW4yAI4rAT/OybuVnZ0Zxxb Xw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 342vma099u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Oct 2020 14:04:14 -0400 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 099I2wLC123228; Fri, 9 Oct 2020 14:04:13 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 342vma0996-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Oct 2020 14:04:13 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 099HukJj028598; Fri, 9 Oct 2020 18:04:12 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma05fra.de.ibm.com with ESMTP id 3429h9rf2n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Oct 2020 18:04:11 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 099I49hu30671264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 9 Oct 2020 18:04:09 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BEB4FA405C; Fri, 9 Oct 2020 18:04:09 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4BA82A405B; Fri, 9 Oct 2020 18:04:09 +0000 (GMT) Received: from LAPTOP-VCUDA2TK (unknown [9.145.59.12]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with SMTP; Fri, 9 Oct 2020 18:04:09 +0000 (GMT) Date: Fri, 9 Oct 2020 20:04:08 +0200 From: Karsten Graul To: Pujin Shi Cc: "David S . Miller" , Jakub Kicinski , Ursula Braun , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, hankinsea@gmail.com Subject: Re: [PATCH 2/2] net: smc: fix missing brace warning for old compilers Message-Id: <20201009200408.35d9575b2813afb57015ec7e@linux.ibm.com> In-Reply-To: <20201008121929.1270-2-shipujin.t@gmail.com> References: <20201008121929.1270-1-shipujin.t@gmail.com> <20201008121929.1270-2-shipujin.t@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-09_09:2020-10-09,2020-10-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010090128 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Oct 2020 20:19:29 +0800 Pujin Shi wrote: > For older versions of gcc, the array = {0}; will cause warnings: > > net/smc/smc_llc.c: In function 'smc_llc_add_link_local': > net/smc/smc_llc.c:1212:9: warning: missing braces around initializer [-Wmissing-braces] > struct smc_llc_msg_add_link add_llc = {0}; > ^ > net/smc/smc_llc.c:1212:9: warning: (near initialization for 'add_llc.hd') [-Wmissing-braces] > net/smc/smc_llc.c: In function 'smc_llc_srv_delete_link_local': > net/smc/smc_llc.c:1245:9: warning: missing braces around initializer [-Wmissing-braces] > struct smc_llc_msg_del_link del_llc = {0}; > ^ > net/smc/smc_llc.c:1245:9: warning: (near initialization for 'del_llc.hd') [-Wmissing-braces] > > 2 warnings generated > Acked-by: Karsten Graul -- Karsten