From patchwork Thu Aug 5 03:55:57 2021 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: 492581 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=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SPF_HELO_NONE, SPF_PASS autolearn=ham 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 C22B9C4320A for ; Thu, 5 Aug 2021 03:53:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A628161078 for ; Thu, 5 Aug 2021 03:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbhHEDxb (ORCPT ); Wed, 4 Aug 2021 23:53:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:51210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230273AbhHEDxa (ORCPT ); Wed, 4 Aug 2021 23:53:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8F1E60F41; Thu, 5 Aug 2021 03:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628135597; bh=LIVljOuiCpCR2i/u9vS5LtAQTgAUn20H6d9F+BlJiY4=; h=Date:From:To:Cc:Subject:From; b=nr1y6g+aHgoX8KJeB8eI/ng86oU4KYoSUWwmMBZP0ctZKkqEPfMh4JM8BZc1AOeSJ LNzycP8i9MiASdEaIjWSe5Op4qsx0fcpE4XmSohmikJOiYggeGaKOuGIzCqP4Li8xS HfcKCWmgw3MawiJMTSeZdU0tMXiBznsGoa0emVQ89lHJ4Uv4PjC63GcWw4LeIccrwL z9YHcwy+XGEIPGIpAQ2P6Pc0AbwRPGNOIwFmjzM2Gl/DOYsHOX0zpKV6SKcJVR/XhC 4JnhyH8BtpSt5+2yjYhqwkrACYXKRKvcdbuIb3p39S0bRXPGn+d15JKKzav9pgNmqU dihtPS8GqpUvw== Date: Wed, 4 Aug 2021 22:55:57 -0500 From: "Gustavo A. R. Silva" To: linux-kernel@vger.kernel.org Cc: Kashyap Desai , Sumit Saxena , Shivasharan S , "James E.J. Bottomley" , "Martin K. Petersen" , megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 0/4][next] Replace one-element arrays with flexible-array members Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hi! This series aims to replace one-element arrays with flexible-array members. This helps with the ongoing efforts to globally enable -Warray-bounds and get us closer to being able to tighten the FORTIFY_SOURCE routines on memcpy(). Link: https://en.wikipedia.org/wiki/Flexible_array_member Link: https://www.kernel.org/doc/html/v5.10/process/deprecated.html#zero-length-and-one-element-arrays Link: https://github.com/KSPP/linux/issues/79 Link: https://github.com/KSPP/linux/issues/109 Thanks Gustavo A. R. Silva (4): scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_FW_RAID_MAP_ALL scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_FW_RAID_MAP_DYNAMIC scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_DRV_RAID_MAP scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_PD_CFG_SEQ_NUM_SYNC drivers/scsi/megaraid/megaraid_sas_base.c | 20 ++++++++++---------- drivers/scsi/megaraid/megaraid_sas_fp.c | 12 ++++++------ drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- drivers/scsi/megaraid/megaraid_sas_fusion.h | 10 +++++----- 4 files changed, 22 insertions(+), 22 deletions(-)