Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35641292rwd; Mon, 10 Jul 2023 10:14:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlHfmo7229TrnKY2Q4r1OuUIsyuP+eTDieXa1m79s+3iIPfiA5qDj04nukdPkBL3Q/FUBsQ2 X-Received: by 2002:a05:6512:2104:b0:4f8:75cf:fdd7 with SMTP id q4-20020a056512210400b004f875cffdd7mr9897902lfr.22.1689009277114; Mon, 10 Jul 2023 10:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689009277; cv=none; d=google.com; s=arc-20160816; b=UeiMQlvhZ4TJ4A75t+gPXStnDJl20MJILkxcUHJXQ58hkh6Wjtul+dwyhVS7pj7zyo emeyOarAtaNcVC7OR46XaexRpD8bno5aYl8h10x5A93U6r7FXu1G50KBGpTIcZPqrsLM geZZRc/higZKTHsB661R6wgi9VGzzFw41UysQD3VE+Mrd71cBpBcZ4ZDAkC7Bfe0Yho5 PZ0mYfPe7GD9mHMBzHX6tEk2pxNa3/amtNCFPvhVygNNu8utmYnHSjlZQxg1HivRWz2t l4OShlHC/0z9dLDiwKbnROjCZXO7YjPnEIMvHlkz6mau3kwM5BRO2GZmuJ3lyFO7pWLg cLRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bwIH6gr5RsIwRGuJNXunq5XwhZktmoqV/pn/dRKRNz0=; fh=DP8X2YxMTpDBmXpouTu6jDWsUH0jVJ+4CxonR1DRbcw=; b=MMvy3i+bwV/k09LgLmL4lEjno3yB3e9aQuDIDjV2IZMuUe1HdnHhDIGChivCRKLSqH Y3fgfJVw0PnCDaNuSrX7cAiwFanOvtoAr8X8FHDlqckIy/gJobQwZSFtFdKkm/UNT0jU 8/L5u2SOWOowcnDLovNaQbWZvQQHTFiognYnb/p5T+cRW2lNJIfXS8JBEZ6xCttwEh2c lAGhmpvs9rHhcZ7h9tp0LIjiae38199GmsXEwJOO7vjxHbhc9Pcz7JE9CtEZHzaMg/xL C+ULs1hEpRspTwaiv0b4NwmeKhBzQUx5aDH2/xxl6lvrnp3/AG28VzljNIv3Vs80Ihco T0LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Uu0Ds1em; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a056402129400b0051e4bd3e707si8200651edv.486.2023.07.10.10.14.12; Mon, 10 Jul 2023 10:14:37 -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=@intel.com header.s=Intel header.b=Uu0Ds1em; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbjGJQMk (ORCPT + 99 others); Mon, 10 Jul 2023 12:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbjGJQMi (ORCPT ); Mon, 10 Jul 2023 12:12:38 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5865123; Mon, 10 Jul 2023 09:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689005557; x=1720541557; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0SlN/itezSp5S5zjCF2SMzf5gnBS89SJ4xDj94AkcQw=; b=Uu0Ds1em9Lk23LHZobxne2tEvaESDgD3vrZExJS0WizvCzVkChwvH2YF Zx1M4+DhsRvt0igFRNfcE1oHdMN38+Y8hqIw8bedIO9M7NXclWLr9r9cx pwuyzG71FM/4y5GhSoGovaR/CKn03W7ERCn/QYqPj/pPFBa2JsGX9LUOW L8dGO7ho3bzEMLNFvFPL6flQ+4HhKPDER9cXmL8TsjJWaLBezOhEP1cvV FlE8q5hP8sIq7aH3Fk8gD9/ijGApm2n2dqbV0q4weyt6P0WJlIR1W3E5/ Mk7MIH9C2o26PUK8J/epFVE6IHD3pSg/wxul959N4kyr948zI/0jnIJzw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="430464657" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="430464657" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 09:11:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="750388713" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="750388713" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 10 Jul 2023 09:10:47 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qItTH-001bF6-2N; Mon, 10 Jul 2023 19:10:43 +0300 Date: Mon, 10 Jul 2023 19:10:43 +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: <20230710-doze-scared-9f0a2e1a9125-mkl@pengutronix.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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 you, so I leave it as is. [1]: Documentation/process/deprecated.rst:269 -- With Best Regards, Andy Shevchenko