Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1364697rwd; Tue, 16 May 2023 16:23:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6aByWIShpZSl5Qowy19CMyh5fiGqJL7EXtqb3b4xGEwZl6ZRfzxWCjFuDBvX/bptsZZ6XR X-Received: by 2002:a17:902:a5ca:b0:1ac:797b:8cf6 with SMTP id t10-20020a170902a5ca00b001ac797b8cf6mr27926186plq.69.1684279386146; Tue, 16 May 2023 16:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684279386; cv=none; d=google.com; s=arc-20160816; b=CV8D1ZOm5HRl9XJlq5UIQkjKT9PSgAhZ5GcuSnHXQtFr/KYFRcafj0KQJbDzsjvhaL bLJ5S4vzvh2O+3VXAkPEsigHlFlKwj3IOSKz5JWzxUfls3+FBk/qA13Ua9CQZNF/u+Xe VKK6bop3SBPMAwGW+gUJZdghHIHdh3HwhOU8tuWMD80NxLm0Wj5fpDde9T4MZ+KIzgnC xhGt/ssZNXSPacUbw1BbMPGvfBGJOMUvp8kyf7utefOZCOSWDrms6FQr5xZnseYbhRLO CXwrKXFvzkAfmY0cfDE7aNuI+xzRnVcIAuz9+VEa2teFR1Q2gCtSut20PPFyLA8LsaLM t7Wg== 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:to:from:date:dkim-signature; bh=YQXfoXc9xWk486cdVbQNxpz0c3LxcpbQ/uGCls117VA=; b=BWsQwHsek3RbthuGJ3iIIq6GDUAZLFbyYpe3DTluO+VfvSspl5HOU56CEkGzWnEEyy GdeVeiR3wSrna5+ZujSxHlZVKdyG25UjbluEhEj/lVGht8nokvc0zv9RaDR8jd6r66+e 0Cd5mV0VUcNWOnFXUCT4gthOKqMsTeQlejtECGd19kknsOr0AzRm3JLDIqA2LTTu9EZx h7kvdvoE4ZGsxrJ2pZKMUs0k0rgjjFPJTlsALNgj78rsjBK8CmKdMgssG3uuqm6IDvjV TR42oJBtvS4vu5ELUDrGr2tHb2tcA8G8N+ILkPZZK9HFAfvx/I60lwBItK0TGGFUHan9 blmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nmU1akdG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a170902d4c300b001ac83d19265si12620770plg.291.2023.05.16.16.22.51; Tue, 16 May 2023 16:23:06 -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=nmU1akdG; 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 S230131AbjEPXN2 (ORCPT + 99 others); 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@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