From patchwork Tue Sep 29 13:27:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 259935 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9205C4727F for ; Tue, 29 Sep 2020 13:22:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4068521D92 for ; Tue, 29 Sep 2020 13:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601385733; bh=b6cNApJ71KWPFc5afyfOtv/DriRF4+QdFvR4tXA/rRE=; h=Date:From:To:Cc:Subject:List-ID:From; b=ezdEM1QVMBlcOPm0Dqlwo1EqW9o25SGyiitPl9tlTLIkBe3ByUqOlXdBQQzP3ynT7 QhwPxHhBFEmPjfREXDn5JmcplPHQOCsUQIq7Mm18hZZ85267O54R4ycvldXTGhXz9s Qh71HdWZua4Y/xJAW7p8Gjdkw2xCcxY78cym46Fo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729685AbgI2NWL (ORCPT ); Tue, 29 Sep 2020 09:22:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:39142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728253AbgI2NWL (ORCPT ); Tue, 29 Sep 2020 09:22:11 -0400 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (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 0A4D5208FE; Tue, 29 Sep 2020 13:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601385730; bh=b6cNApJ71KWPFc5afyfOtv/DriRF4+QdFvR4tXA/rRE=; h=Date:From:To:Cc:Subject:From; b=Hw9EXKwIQHqyXWnMuNwl2HnhlaciWu33MQho6DnCf61yEgql855tpWl7PbGpFTpBa LAAOdfkEBhDoCfR+4Sl7ILZ4JSA9f/UpX6+CfaT0xs/Bqx2TsagshlaeK0+zek9S3b C4AevuEmq/9XcIpljcc08FfZpguHroei45R1vrr0= Date: Tue, 29 Sep 2020 08:27:51 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH][next] fddi/skfp: Avoid the use of one-element array Message-ID: <20200929132751.GA29220@embeddedor> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org One-element arrays are being deprecated[1]. Replace the one-element array with a simple object of type u_char: 'u_char rm_pad1'[2], once it seems this is just a placeholder for padding. [1] https://www.kernel.org/doc/html/v5.9-rc1/process/deprecated.html#zero-length-and-one-element-arrays [2] https://github.com/KSPP/linux/issues/86 Built-tested-by: kernel test robot Link: https://lore.kernel.org/lkml/5f72c23f.%2FkPBWcZBu+W6HKH4%25lkp@intel.com/ Signed-off-by: Gustavo A. R. Silva --- drivers/net/fddi/skfp/h/smc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fddi/skfp/h/smc.h b/drivers/net/fddi/skfp/h/smc.h index 991857f6a83c..706fa619b703 100644 --- a/drivers/net/fddi/skfp/h/smc.h +++ b/drivers/net/fddi/skfp/h/smc.h @@ -122,7 +122,7 @@ struct s_rmt { u_char timer1_exp ; /* flag : timer 1 expired */ u_char timer2_exp ; /* flag : timer 2 expired */ - u_char rm_pad1[1] ; + u_char rm_pad1; } ; /*