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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4A39EB64DC for ; Tue, 11 Jul 2023 13:57:49 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 68D1DEB5; Tue, 11 Jul 2023 15:56:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 68D1DEB5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689083867; bh=hcRhvsNpzCZm3Sd7nNPgrDaCtucecy1QPHYWw64ui6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=omsQGmbsw0cMCV2HsEQnHk68CCxaF8d4Lef/G+Zxu6lujxmH1QxDrK9zeSkWh7YAq eDyAjDmdX7htTCdvQ1iDtkTE+ZH86Jq0O4KxAYqs0HsM7JaIhaMHOewSsKy7KclDke nrGwFyB9VLLcKqHKx/zasQzk7672YdQOiHnCKCzc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3E414F80655; Tue, 11 Jul 2023 15:52:35 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A1483F80652; Tue, 11 Jul 2023 15:52:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3E911F80249; Mon, 10 Jul 2023 18:13:30 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 57C57F80093 for ; Mon, 10 Jul 2023 18:13:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 57C57F80093 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=IQIraLTl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689005608; x=1720541608; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hcRhvsNpzCZm3Sd7nNPgrDaCtucecy1QPHYWw64ui6o=; b=IQIraLTle+CkQlHMziD8HF2ehHRbFClXprWdyy+DFOq85WWow1tW1e3z y6g3U3Xci84LH80KmXrJTpqWocfXfMLunIMQcOGl4vYsbYwcbmGDYyhND kE909BJoifITpYpumFH08XcskgBmlyIDKWpcAcHepa71wa5nKLWu5BlMJ OtS2Yf0BA8HZ5EHjsQTCOHru9yLvMZfBmy7/9X+3HoTFI8c1EPckVbCh0 L0IhimJGYYcnLmgIUqdBjlN//H8h9uCeOkBtbW884mYlr0/03duUYGmN8 UIUBwg9FY21hrpyUkZI1O/uY7ialF3XTyVERACqcwI5ldHa00gODf7lRi g==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="354244105" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="354244105" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 09:12:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="790844445" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="790844445" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 10 Jul 2023 09:12:26 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qItUs-001bGm-39; Mon, 10 Jul 2023 19:12:22 +0300 Date: Mon, 10 Jul 2023 19:12:22 +0300 From: Andy Shevchenko To: Marc Kleine-Budde Cc: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, Richard Cochran , Alexandre Belloni , Heiko Stuebner , Alexandre Torgue , Max Filippov , Fabio Estevam , Jerome Brunet , Kevin Hilman , Tudor Ambarus , Andy Gross , NXP Linux Team , Alain Volmat , Orson Zhai , Radu Pirea , Maxime Coquelin , Martin Blumenstingl , Sascha Hauer , Steven Rostedt , Sanjay R Mehta , Baolin Wang , Paul Walmsley , Matthias Brugger , AngeloGioacchino Del Regno , Bjorn Andersson , Nicolas Ferre , Serge Semin , Konrad Dybcio , Palmer Dabbelt , Masami Hiramatsu , Pengutronix Kernel Team , Chunyan Zhang , Shawn Guo , Claudiu Beznea Subject: Re: [PATCH v2 09/15] spi: Use struct_size() helper Message-ID: References: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> <20230710154932.68377-10-andriy.shevchenko@linux.intel.com> <20230710-doze-scared-9f0a2e1a9125-mkl@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-MailFrom: andriy.shevchenko@linux.intel.com X-Mailman-Rule-Hits: max-recipients X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-size; news-moderation; no-subject; digests; suspicious-header Message-ID-Hash: A3TDHM5BNRMJDPZ6ZH465722MDIKEPDU X-Message-ID-Hash: A3TDHM5BNRMJDPZ6ZH465722MDIKEPDU X-Mailman-Approved-At: Tue, 11 Jul 2023 13:52:26 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, Jul 10, 2023 at 07:10:43PM +0300, Andy Shevchenko wrote: > On Mon, Jul 10, 2023 at 05:59:55PM +0200, Marc Kleine-Budde wrote: > > On 10.07.2023 18:49:26, Andy Shevchenko wrote: ... > > > + struct spi_transfer t[]; > > > > You might want to use the DECLARE_FLEX_ARRAY helper here. > > Technically, yes, semantically documentation [1] disagrees with "and [2]" > you, so I leave it as is. > > [1]: Documentation/process/deprecated.rst:269 [2]: Documentation/process/deprecated.rst:350 -- With Best Regards, Andy Shevchenko 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 522F3EB64D9 for ; Mon, 10 Jul 2023 16:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VUe5dgIDnpUCUyEDSG4y6KxzY1nljlRdUloqTS+fno0=; b=dqHPNQe+wR9vGZ WEPb7fJtVdsUgfha/+M2bXUO00v6LfUHO6xMi/MF1LnYKejvquGKz27GCH+sDDG4LfLc66K3uEd7V T58CRiFFAJ2WTHiI6MbPAYpUQkhcP/W8sfU8OAz+cHEbCtRt55jx8yGiaayoRxC1+puFGwJAoSFOe mKNnGkyXbkjzNK9wXV66ulG657RKZTKDpZdKvA8pM+eIZzm9sFnNH6yiW3nQ5VSSL6V4YkvshU4/q gbuLJNV/alVnFA8KZ0KE7byNW7yH/p2gqzHKX10BlEL4Q+Mm08WqeIF65HaMspQyBXDFrgRTFDBwG GQzUZSMhgF/wvLLC09Jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qItVw-00CA4b-2D; Mon, 10 Jul 2023 16:13:28 +0000 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qItVt-00CA3O-14; Mon, 10 Jul 2023 16:13:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689005605; x=1720541605; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hcRhvsNpzCZm3Sd7nNPgrDaCtucecy1QPHYWw64ui6o=; b=Uo26fDc1STsoBFkrw6JA8Ubfb/Bw2dOnw5Cgkpt0cMeafWJmMBxToIjE 8Wb4qs959VPz8Td+zRFLOMyRR9zDLmCYRSjq8/VutOporF9lqKjkcGQeM zpQ7YqOH+pShuON+9Rx9+FwpOhX8IU2v664HYihx6vxor6CsnuREGqO5w dlRG8biHPMTZrzpEFuXKDu5KipJsjKMb0YeoCSTVMqmjW14ZecUpHFEEw 4fIEK4IK4Opi0O83rPaKqWfIms8+2rp6si0+n70IVOsC1guJnDIJFQz/H 9yTvxfea9JEso10YiDt8mKOr7k0WBs9N9pIZtf42eFIGWTZIfamq/mgwS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="354244112" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="354244112" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 09:12:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="790844445" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="790844445" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 10 Jul 2023 09:12:26 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qItUs-001bGm-39; Mon, 10 Jul 2023 19:12:22 +0300 Date: Mon, 10 Jul 2023 19:12:22 +0300 From: Andy Shevchenko To: Marc Kleine-Budde Cc: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, Richard Cochran , Alexandre Belloni , Heiko Stuebner , Alexandre Torgue , Max Filippov , Fabio Estevam , Jerome Brunet , Kevin Hilman , Tudor Ambarus , Andy Gross , NXP Linux Team , Alain Volmat , Orson Zhai , Radu Pirea , Maxime Coquelin , Martin Blumenstingl , Sascha Hauer , Steven Rostedt , Sanjay R Mehta , Baolin Wang , Paul Walmsley , Matthias Brugger , AngeloGioacchino Del Regno , Bjorn Andersson , Nicolas Ferre , Serge Semin , Konrad Dybcio , Palmer Dabbelt , Masami Hiramatsu , Pengutronix Kernel Team , Chunyan Zhang , Shawn Guo , Claudiu Beznea Subject: Re: [PATCH v2 09/15] spi: Use struct_size() helper Message-ID: References: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> <20230710154932.68377-10-andriy.shevchenko@linux.intel.com> <20230710-doze-scared-9f0a2e1a9125-mkl@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_091325_416826_F19BA3EB X-CRM114-Status: GOOD ( 14.91 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On Mon, Jul 10, 2023 at 07:10:43PM +0300, Andy Shevchenko wrote: > On Mon, Jul 10, 2023 at 05:59:55PM +0200, Marc Kleine-Budde wrote: > > On 10.07.2023 18:49:26, Andy Shevchenko wrote: ... > > > + struct spi_transfer t[]; > > > > You might want to use the DECLARE_FLEX_ARRAY helper here. > > Technically, yes, semantically documentation [1] disagrees with "and [2]" > you, so I leave it as is. > > [1]: Documentation/process/deprecated.rst:269 [2]: Documentation/process/deprecated.rst:350 -- With Best Regards, Andy Shevchenko _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06A77C0015E for ; Mon, 10 Jul 2023 16:13:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dett2XcfOLFwXw+EBBVJhjLBjcQatoy3CiRDU6J8ANE=; b=zQDmwjZ/gRoctC AkV791uW8+c9XXJkDhuZHnrkl0vKX7wt//nKwc3GZVkaVVxeqbeAJJallNrpkQMCja7opidAi4hY1 LiFqkmmt2WUolxsPWpDyV/Khr47ssaJI3NrhSrFq+Uv7whRByIG8HxG3OWklLO1S3c5BKye9f7Wai XDmXbvpSbwP0Zq35d8arx2/Swx4U16Ymnb6Dp7k0QyEAn+L5kf45l26asp0nytt0Y+u4zk5e9yOCe 9B9ttFN9TWB+w5IEv6En6KJMr2xHWPdwO2EOGqRyvjTBJsF3ZizV/8xq7EDoIxJA+jbHD/ndCdBeM FGDuAkyG8P5+oFz11UhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qItVx-00CA50-1a; Mon, 10 Jul 2023 16:13:29 +0000 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qItVt-00CA3O-14; Mon, 10 Jul 2023 16:13:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689005605; x=1720541605; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hcRhvsNpzCZm3Sd7nNPgrDaCtucecy1QPHYWw64ui6o=; b=Uo26fDc1STsoBFkrw6JA8Ubfb/Bw2dOnw5Cgkpt0cMeafWJmMBxToIjE 8Wb4qs959VPz8Td+zRFLOMyRR9zDLmCYRSjq8/VutOporF9lqKjkcGQeM zpQ7YqOH+pShuON+9Rx9+FwpOhX8IU2v664HYihx6vxor6CsnuREGqO5w dlRG8biHPMTZrzpEFuXKDu5KipJsjKMb0YeoCSTVMqmjW14ZecUpHFEEw 4fIEK4IK4Opi0O83rPaKqWfIms8+2rp6si0+n70IVOsC1guJnDIJFQz/H 9yTvxfea9JEso10YiDt8mKOr7k0WBs9N9pIZtf42eFIGWTZIfamq/mgwS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="354244112" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="354244112" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 09:12:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="790844445" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="790844445" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 10 Jul 2023 09:12:26 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qItUs-001bGm-39; Mon, 10 Jul 2023 19:12:22 +0300 Date: Mon, 10 Jul 2023 19:12:22 +0300 From: Andy Shevchenko To: Marc Kleine-Budde Cc: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, Richard Cochran , Alexandre Belloni , Heiko Stuebner , Alexandre Torgue , Max Filippov , Fabio Estevam , Jerome Brunet , Kevin Hilman , Tudor Ambarus , Andy Gross , NXP Linux Team , Alain Volmat , Orson Zhai , Radu Pirea , Maxime Coquelin , Martin Blumenstingl , Sascha Hauer , Steven Rostedt , Sanjay R Mehta , Baolin Wang , Paul Walmsley , Matthias Brugger , AngeloGioacchino Del Regno , Bjorn Andersson , Nicolas Ferre , Serge Semin , Konrad Dybcio , Palmer Dabbelt , Masami Hiramatsu , Pengutronix Kernel Team , Chunyan Zhang , Shawn Guo , Claudiu Beznea Subject: Re: [PATCH v2 09/15] spi: Use struct_size() helper Message-ID: References: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> <20230710154932.68377-10-andriy.shevchenko@linux.intel.com> <20230710-doze-scared-9f0a2e1a9125-mkl@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_091325_416826_F19BA3EB X-CRM114-Status: GOOD ( 14.91 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On Mon, Jul 10, 2023 at 07:10:43PM +0300, Andy Shevchenko wrote: > On Mon, Jul 10, 2023 at 05:59:55PM +0200, Marc Kleine-Budde wrote: > > On 10.07.2023 18:49:26, Andy Shevchenko wrote: ... > > > + struct spi_transfer t[]; > > > > You might want to use the DECLARE_FLEX_ARRAY helper here. > > Technically, yes, semantically documentation [1] disagrees with "and [2]" > you, so I leave it as is. > > [1]: Documentation/process/deprecated.rst:269 [2]: Documentation/process/deprecated.rst:350 -- With Best Regards, Andy Shevchenko _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68ED0EB64DC for ; Mon, 10 Jul 2023 16:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=heV0tZNLOA6i2hNceOSMBCScEGOZhxQKSHFXqu2284E=; b=QOgUdie3LsZNw5 mm4e/l0ARkN1MnoMXW17qUa+sVKLo/OafFwEZ5E1m1UPH4u/bERK2NmdysFdUTPtti9iYJL1gO6jj 6k1+3CZjk6hpPoXkzGEad74DCQKkANMMT8ccQ0B/znEQ1KIxkD8MoiHyBC5WON0symIgj5uXCBKr1 ZYJtu4J/3zCzd1Sf/a3/J62tupVGd3kYcPv+gg1tBQU+F0NLwTS6UxuIhy2d7yjMI65bonf2yVVEx 9avwe/wC8MsUJt2bDnqfbumd0GjSz3GX/pm/L1VB9XRBOgr0DXB9fOOLO42Mmm0ykaEns7QiAoB1p 6Yt4ohO008HcJVqVIhwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qItVy-00CA5e-0S; Mon, 10 Jul 2023 16:13:30 +0000 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qItVt-00CA3O-14; Mon, 10 Jul 2023 16:13:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689005605; x=1720541605; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hcRhvsNpzCZm3Sd7nNPgrDaCtucecy1QPHYWw64ui6o=; b=Uo26fDc1STsoBFkrw6JA8Ubfb/Bw2dOnw5Cgkpt0cMeafWJmMBxToIjE 8Wb4qs959VPz8Td+zRFLOMyRR9zDLmCYRSjq8/VutOporF9lqKjkcGQeM zpQ7YqOH+pShuON+9Rx9+FwpOhX8IU2v664HYihx6vxor6CsnuREGqO5w dlRG8biHPMTZrzpEFuXKDu5KipJsjKMb0YeoCSTVMqmjW14ZecUpHFEEw 4fIEK4IK4Opi0O83rPaKqWfIms8+2rp6si0+n70IVOsC1guJnDIJFQz/H 9yTvxfea9JEso10YiDt8mKOr7k0WBs9N9pIZtf42eFIGWTZIfamq/mgwS A==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="354244112" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="354244112" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 09:12:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="790844445" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="790844445" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 10 Jul 2023 09:12:26 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qItUs-001bGm-39; Mon, 10 Jul 2023 19:12:22 +0300 Date: Mon, 10 Jul 2023 19:12:22 +0300 From: Andy Shevchenko To: Marc Kleine-Budde Cc: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, Richard Cochran , Alexandre Belloni , Heiko Stuebner , Alexandre Torgue , Max Filippov , Fabio Estevam , Jerome Brunet , Kevin Hilman , Tudor Ambarus , Andy Gross , NXP Linux Team , Alain Volmat , Orson Zhai , Radu Pirea , Maxime Coquelin , Martin Blumenstingl , Sascha Hauer , Steven Rostedt , Sanjay R Mehta , Baolin Wang , Paul Walmsley , Matthias Brugger , AngeloGioacchino Del Regno , Bjorn Andersson , Nicolas Ferre , Serge Semin , Konrad Dybcio , Palmer Dabbelt , Masami Hiramatsu , Pengutronix Kernel Team , Chunyan Zhang , Shawn Guo , Claudiu Beznea Subject: Re: [PATCH v2 09/15] spi: Use struct_size() helper Message-ID: References: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> <20230710154932.68377-10-andriy.shevchenko@linux.intel.com> <20230710-doze-scared-9f0a2e1a9125-mkl@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230710_091325_416826_F19BA3EB X-CRM114-Status: GOOD ( 14.91 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Mon, Jul 10, 2023 at 07:10:43PM +0300, Andy Shevchenko wrote: > On Mon, Jul 10, 2023 at 05:59:55PM +0200, Marc Kleine-Budde wrote: > > On 10.07.2023 18:49:26, Andy Shevchenko wrote: ... > > > + struct spi_transfer t[]; > > > > You might want to use the DECLARE_FLEX_ARRAY helper here. > > Technically, yes, semantically documentation [1] disagrees with "and [2]" > you, so I leave it as is. > > [1]: Documentation/process/deprecated.rst:269 [2]: Documentation/process/deprecated.rst:350 -- With Best Regards, Andy Shevchenko _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv