Message ID | ZJxZJDUDs1ry84Rc@work |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9043775vqr; Wed, 28 Jun 2023 09:15:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CjcPeOQeLvhIJi7thxD7JMcCHFDcauShNRJYtxRCUkJ4sGWR01c/cAaN3th1Y5apotWN8 X-Received: by 2002:a17:906:73dd:b0:989:1ed3:d00b with SMTP id n29-20020a17090673dd00b009891ed3d00bmr19142160ejl.4.1687968900597; Wed, 28 Jun 2023 09:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687968900; cv=none; d=google.com; s=arc-20160816; b=VLj6qi3Q9ERf5d7P7s/qG7SnRaaK4Y9cbmc8ZwXpmHRlgpvcTT1goszKgLJNRcrVeX RqHLRATunNCniq6/KuJBAgQrJ0ZoSFex1UYEud7KO3VYmYfMWey0JL6FOcsjLveKAql7 h6wbwtOv8IlWe6SrfTCotEV/v+JUqum25DUSdoOERIjZ/ZyFgBCmSVhb5WoIq1cfRM8b 0l+yVN3fR34otsLr4CSiXqUZTeePe5f5yHCoTAz3L4eLH/e8osVTDnDaXz7fQ3dV8oTR 0YAk7yjErHZX4v4JBrAMuJotZ3lelCHfg+XaqgXCqzy1SpLo5DXiiL44CnjgNbEwI6Ka y7oQ== 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=ZD8Rr0Ze93rbDW/SC0QSqC35YJetSLfjztYjiXnQzDc=; fh=ldboKHTefwSO4qhwiDnhCfuuTfOmB0Unv125xiBk8l0=; b=WM5ZA3hRNcQrEWGPeIfqydV/i7eujmlN1NchGIKrAqIzQBxNJQAssZoxuPRL6mNqsa sPbe4ynoXgtqfaNMdie1Mpf/85jm+xtH/KEU3PjaPd5bKeHrMt9dH8Q8x37J3MPeeJ88 TuA6AtxYRU5xLnlyNxkMRcbd8EdeLob2RBSwAijSwq+Ck2RM/g71/PtUbpR8J/YpiPmu Gp0VzmDb1daTtfj9QtfJZrM6lK8jCJbOKovSLIU7/ZVGUj3T8c38fCj7WEPDnvNg4+fM /ohDFg9ZsLzlJZy6CLdBFmlFr4ncib0Nk8ee8XRZ0DXmcH01tbBBlrs2s4OPSVb9bJbF vldQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PKYVYtIV; 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 lf28-20020a170907175c00b009920f18a5ecsi2439462ejc.725.2023.06.28.09.14.35; Wed, 28 Jun 2023 09:15:00 -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=PKYVYtIV; 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 S231926AbjF1P7o (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 28 Jun 2023 11:59:44 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]:38242 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbjF1P7n (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 28 Jun 2023 11:59:43 -0400 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 CAEAE6137C; Wed, 28 Jun 2023 15:59:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9457CC433C0; Wed, 28 Jun 2023 15:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687967982; bh=9HDeDUWJfVkDFTW/qa3ifB0pTrqbmJRmbZboAXIIsnI=; h=Date:From:To:Cc:Subject:From; b=PKYVYtIVZiGhbL+c+wDebTF6uCDhLBO+jq6OsCb5zkqmtzgW6rnCJDabWs5ipDmB3 mOf6edRKL8PICvMmt7IEUuNYEsw4LjmPC0P9+4XeMBedU+JT9hcQSDLT8NTEWBVOMT b9x8vRfvVSO096YPiKK+2qslsqRDk3UmExNO+0UxUOwKUUVyjPrKMgXJLk7luXD+b6 alHpBmjEE7DeEe/M2UP7LrEj2B7zzzSKPmYBMn+GDCpxQHlHLqt//UvXDCg041V8NU WBu5X89Jz7vptNTcW8JwHnb+1C45pe/QqZktvycybotqSLOFemVrztlBnZ5rXZFXsw 2LP94Axt1tPjw== Date: Wed, 28 Jun 2023 10:00:36 -0600 From: "Gustavo A. R. Silva" <gustavoars@kernel.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: Kees Cook <keescook@chromium.org>, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" <gustavoars@kernel.org> Subject: [GIT PULL] flexible-array transformations for 6.5-rc1 Message-ID: <ZJxZJDUDs1ry84Rc@work> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769963677593838513?= X-GMAIL-MSGID: =?utf-8?q?1769963677593838513?= |
Series |
[GIT,PULL] flexible-array transformations for 6.5-rc1
|
|
Pull-request
git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/flex-array-transformations-6.5-rc1Message
Gustavo A. R. Silva
June 28, 2023, 4 p.m. UTC
The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/flex-array-transformations-6.5-rc1 for you to fetch changes up to 1fa89cccd288cea4370ce08042b749b72ea8b059: media: venus: hfi_cmds: Replace fake flex-arrays with flexible-array members (2023-06-11 09:51:08 -0600) ---------------------------------------------------------------- flexible-array transformations for 6.5-rc1 Hi Linus, Please, pull the following patches that transform zero-length and one-element arrays into C99 flexible-array members. These patches have been baking in linux-next for a while. Thanks -- Gustavo ---------------------------------------------------------------- Gustavo A. R. Silva (2): uapi: wireless: Replace zero-length array with flexible-array member media: venus: hfi_cmds: Replace fake flex-arrays with flexible-array members drivers/media/platform/qcom/venus/hfi_cmds.h | 8 ++++---- include/uapi/linux/wireless.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
Comments
On Wed, 28 Jun 2023 at 08:59, Gustavo A. R. Silva <gustavoars@kernel.org> wrote: > > Please, pull the following patches that transform zero-length and > one-element arrays into C99 flexible-array members. These patches > have been baking in linux-next for a while. This must stop. Honestly, this is just making things *WORSE*. That drivers/media/platform/qcom/venus/hfi_cmds.h needs to be converted all-or-nothing, not this crazy piece-meal conversion effort. You literally seem to be converting structure definitions that ARE NOT USED, and then leaving the ones that actually *are* used alone, because they have uses like struct hfi_sys_set_resource_pkt { .. u32 resource_data[1]; }; pkt->hdr.size += sizeof(*res) - sizeof(u32); where 'res' is a pointer to that packet type. I'm not at all interested in patches that convert structures that have zero use. You might as well just *remove* them in that case, rather than make some syntactic change that doesn't matter. And yes, that header file already has a mix of '[]' arrays and '[1]' arrays. I'm not interested in continuing that kind of pointless conversion. Either this gets converted properly, or it gets left alone. No more of this kind of crazy "let's convert the types that are never used". Linus