From patchwork Tue Sep 12 10:16:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9948929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CDCEC6038F for ; Tue, 12 Sep 2017 10:17:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD70028ECC for ; Tue, 12 Sep 2017 10:17:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1C2D28ECF; Tue, 12 Sep 2017 10:17:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AB6928ECC for ; Tue, 12 Sep 2017 10:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751420AbdILKRf (ORCPT ); Tue, 12 Sep 2017 06:17:35 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:61145 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751311AbdILKRe (ORCPT ); Tue, 12 Sep 2017 06:17:34 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0Ls9b5-1dRUjD3An1-013vYC; Tue, 12 Sep 2017 12:16:44 +0200 From: Arnd Bergmann To: Harry Morris , linuxdev@cascoda.com, Alexander Aring , Stefan Schmidt Cc: Arnd Bergmann , Marcel Holtmann , "David S. Miller" , Markus Elfring , "Gustavo A. R. Silva" , Florian Westphal , Johannes Berg , Christophe JAILLET , Colin Ian King , linux-wpan@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ieee802154: fix gcc-4.9 warnings Date: Tue, 12 Sep 2017 12:16:24 +0200 Message-Id: <20170912101636.3811626-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:a/f/Dibj+Y2Duq24wuvqPgJKpO26e22Pd8/lB2CdScRZnL3yryA tyYOdgfoI0nUQYNbmjR0xn1ek09zsHRghVPxe3z2RnBHygCTIfu0ApimFGsGntLq6eohzZi pmzWVAWuTg5vkcOUvA3kOT+8DMZ2Evy7UYm9cWNzMlhbVo6LUxL5hrLe7uTjc/OTmvRJQeg 9oBPuzfYe7XcRtVfRtQsA== X-UI-Out-Filterresults: notjunk:1; V01:K0:ndCB6HIuBOs=:UsGv91fTqmJBuYm2JEvfIT qFyQZEjZdYChjXTUfB/lIfmJelRv4Ruw/J+ptA5x2G8b2HQI9AXXrOqOsBzyL5G0QkdPs+MdI zfYQzNV0wu0GaM4MUTozb+2+/0c/xU+1LgugTX7FHNTuTQOQJlxxWj4eTMZr97relFfhgZhom YPwTZDK7XN276eMurktHc9eJSf5x/XlFSi/bQCVgwkG6h9SaPGA4nstQv0pT3HlKjYFn8h9BS Po+age67LqaArxqg8n6jIhS5fiJQEBQamIKeA4M58DuutnNhwiH680Mq2UxPB3gQOdGj5iqlO duhS+79Pcwono82doBOrCn7UApG9eCU8jiAbXqOx4W/o3JX3CnEYv/1lze40sZmOFNghX7Oxg 4rmv1fJVmjWJejADscmF+NDSY3TYNaLYzq9EqOi6EOhi8Sb5fL7J/wJUICog/vp29STE5sjFr 7HSSZVguDUQk5I5/B3bFD/pKmWStImQXyTr+Iu7P32dlOGGJQYDftgycDA3U1a2Lr/funTXZh fvg/Pe32BwI47/68bdMcLk4mX6yqfv6tJ8GoDxHrgQqmA4/d7X771ugSAT68gzp32Cu6NhIen iUPc4V1PSLPoKL9xIdh6lwLxOID1hu5izQg2TAWdwxZCdL5nzKnb00tOEu7yFegGrChnMYgCi 13mVwXHlx+ZphHf+VwBQ3hxsXN0bpnLjY582pfrIfyf2+Bcf/nV6hkdje/JLffcm/n0hq+Uop 9+yp028fnW3NTjWPyJZdWNcL54arXUehKjVZMQ== Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All older compiler versions up to gcc-4.9 produce these harmless warnings: drivers/net/ieee802154/ca8210.c: In function 'ca8210_skb_tx': drivers/net/ieee802154/ca8210.c:1947:9: warning: missing braces around initializer [-Wmissing-braces] This changes the syntax to something that works on all versions without warnings. Fixes: ded845a781a5 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver") Signed-off-by: Arnd Bergmann Acked-by: Stefan Schmidt --- drivers/net/ieee802154/ca8210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 24a1eabbbc9d..e6b8ce81a6c3 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -1944,7 +1944,7 @@ static int ca8210_skb_tx( ) { int status; - struct ieee802154_hdr header = { 0 }; + struct ieee802154_hdr header = { }; struct secspec secspec; unsigned int mac_len;