Message ID | ZMpZZBShlLqyD3ax@work |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp488807vqx; Wed, 2 Aug 2023 07:15:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFBnbnOeOZKl/47fPovLHUALExq+GUBhZ4XWtG//kG1OKLmisL+LElz0o60yyuehIAey33 X-Received: by 2002:a17:90b:4a0d:b0:268:266a:1ab with SMTP id kk13-20020a17090b4a0d00b00268266a01abmr19679197pjb.5.1690985720681; Wed, 02 Aug 2023 07:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690985720; cv=none; d=google.com; s=arc-20160816; b=P5CctrUEwO9xz/+RIynk/442koWak1ITPE49S5xmO71O50+lkBqnDMyU5pwhdrNRcW 4yULLGAF6hVZpFwiT/8wlESQbTSU3vXPExwaUmg9sBSJ6DtZ0KhawrHW60Wch15se7xu qiZ1h3w+XbsnqKPzs93L8XUyJo4BP4ilh96FZ+rB/pxy/elBqUa5Z+rHkTi1AFP5nNEg bxWoAVKyia5QKi6FuI7gWysPYWqQhJVdIh2jMKKObHZpvJOC5fnc0jMOSvegCP1ZX2sb 5rMFdt5Q9vw2GmzAdcPk2DI4OGGORlY8Og1BP85ZcIPUCkvEcSud7fQTXe/ET687t6VI zqBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=o+0SrKIBjqKDHopa+xAIpClNkwu/br1SYamb9HpuDj0=; fh=p6k3dYpWrkc8tqgGKYTtK03cG3s7Wfrbs9HWtafO3VE=; b=NdIslk2vlnjLf3ACdg24dEycsaAz1SntLKspHuXlMAMAlSFT0ANCiqaNGqufq5Jy+s ububzYULHepjzMlEF02TQC5nMjAprkCuqpMp/acIY2+9fD9Pdmwi1GW+nbbgltlEcJVU Tk439+CqHsnAJxfQfjd9C4rNlIxiQfT7DXzOM4CIOAwEwGv9vcXygOTxTuceXOEQ4sZw 2PdURBkhWjb7jSVOa55BVHyWhxiELxlzURXxuXhTnQsch4ubrHqU9k1a20tNALf8Cu9W JcBdPGQGELHx7HNUUByZcwp+sICM0GcumdXZvno5vaH2ZNgOoQ1GGQnLGRAbLFe7OfGp xPsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nWjglhib; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na14-20020a17090b4c0e00b00262dc058680si1334741pjb.123.2023.08.02.07.15.04; Wed, 02 Aug 2023 07:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nWjglhib; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229629AbjHBNYz (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Wed, 2 Aug 2023 09:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbjHBNYx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Aug 2023 09:24:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08DADDA; Wed, 2 Aug 2023 06:24:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 92CA861994; Wed, 2 Aug 2023 13:24:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C4CCC433C8; Wed, 2 Aug 2023 13:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690982692; bh=DDm1LEyHVrqgVPbORsJTPU+hVDJwprYsNNL9IHeL+5k=; h=Date:From:To:Cc:Subject:From; b=nWjglhibGmIAoJ0wRJHiguhdY/s9FGgXJNwpF0vJi9mJ8pofv2p7JYopQP/LkiAo2 SrzWDgQqEqxd+zUR8u/m4gwZH4DMVKXhPwjATpsaMIbE/csJS8XoMj36otYrK9WRIZ qkcP3LbpzDOaGSitQOh2VAH/jqg5vdA9FTa1T49wj7DhBvRU4R9pG/WD/ME722baiR VjIJVMlWetVgQP/RUfMmdqwZtvoQx6CspYJwak8pPv9rAzbhxdlDfWtqR8eMKU/7cm Uc10RjfRmaThlihTV+AUKeNc6/c9NyFrzIGGSpUVo7Ij1DbCVdZbl8EWMeW342sz+c psQ4JFmi/JWiQ== Date: Wed, 2 Aug 2023 07:25:56 -0600 From: "Gustavo A. R. Silva" <gustavoars@kernel.org> To: Richard Henderson <richard.henderson@linaro.org>, Ivan Kokshaysky <ink@jurassic.park.msu.ru>, Matt Turner <mattst88@gmail.com> Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" <gustavoars@kernel.org>, linux-hardening@vger.kernel.org Subject: [PATCH] alpha: Replace one-element array with flexible-array member Message-ID: <ZMpZZBShlLqyD3ax@work> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773127042973651243 X-GMAIL-MSGID: 1773127042973651243 |
Series |
alpha: Replace one-element array with flexible-array member
|
|
Commit Message
Gustavo A. R. Silva
Aug. 2, 2023, 1:25 p.m. UTC
One-element and zero-length arrays are deprecated. So, replace
one-element array in struct osf_dirent with flexible-array
member.
This results in no differences in binary output.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
---
arch/alpha/kernel/osf_sys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi all, Friendly ping: who can take this, please? Thanks -- Gustavo On 8/2/23 07:25, Gustavo A. R. Silva wrote: > One-element and zero-length arrays are deprecated. So, replace > one-element array in struct osf_dirent with flexible-array > member. > > This results in no differences in binary output. > > Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> > --- > arch/alpha/kernel/osf_sys.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c > index d98701ee36c6..5db88b627439 100644 > --- a/arch/alpha/kernel/osf_sys.c > +++ b/arch/alpha/kernel/osf_sys.c > @@ -97,7 +97,7 @@ struct osf_dirent { > unsigned int d_ino; > unsigned short d_reclen; > unsigned short d_namlen; > - char d_name[1]; > + char d_name[]; > }; > > struct osf_dirent_callback {
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index d98701ee36c6..5db88b627439 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -97,7 +97,7 @@ struct osf_dirent { unsigned int d_ino; unsigned short d_reclen; unsigned short d_namlen; - char d_name[1]; + char d_name[]; }; struct osf_dirent_callback {