From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBB32C77B75 for ; Tue, 16 May 2023 23:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231232AbjEPXN2 (ORCPT ); Tue, 16 May 2023 19:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbjEPXNW (ORCPT ); Tue, 16 May 2023 19:13:22 -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 C29C849CC; Tue, 16 May 2023 16:13:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 58518635D3; Tue, 16 May 2023 23:13:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6527EC4339B; Tue, 16 May 2023 23:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684278797; bh=TF+bBIjOZCl8rJnA/ryDiM3hourzs5LjpwgA2d5LjGg=; h=Date:From:To:Subject:From; b=nmU1akdGqJ/msV6ntbqjR4k4tFrVad9txDs+bmiHN0UrlEGF6zKACsLCYIyQZTFgu RZBzKWRWYt7TmzDQ9FpTzqFQsmPiMpPdGYb1LzcqUOkDgCtpcq1NnKMj6Xacsx5t/A V2kvb4v5iI7ibTn8KTm54bDAZxUsj9/GYoxhuhdXoXz1XJbRfQBpN1s5NmpsXWJz2J 2h8aJFPuglOOyuiqgP1u7sBZ6MvcKEyNMbVGsv/p2Y2A0g1YuxxTSaXut63kfgXB3w I2VO/F9oM/WQHzsErYROe77Ka5vOcJpK5QiFKholWc8R/Kq6bFSqPhC/t6QQr9/g5J Mf4tmB/NDMaiQ== Date: Tue, 16 May 2023 17:14:04 -0600 From: "Gustavo A. R. Silva" To: Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH 0/2][next] media: venus: hfi_cmds: Replace one-element array with flexible-array member Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org Hi! This series aims to replace one-element arrays with flexible-array members in struct hfi_session_set_buffers_pkt. This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [1]. Link: https://github.com/KSPP/linux/issues/79 Link: https://github.com/KSPP/linux/issues/160 Link: https://github.com/KSPP/linux/issues/292 Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1] Gustavo A. R. Silva (2): media: venus: hfi_cmds: Replace one-element array with flexible-array member media: venus: hfi_cmds: Use struct_size() helper drivers/media/platform/qcom/venus/hfi_cmds.c | 16 ++++++++-------- drivers/media/platform/qcom/venus/hfi_cmds.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) -- 2.34.1