Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35596603rwd; Mon, 10 Jul 2023 09:35:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgLluvHUpZ1TIFlOA8SMLqzFpypVk2BhqpU4tz3oZ9cRwxeL6sE0L437iFyKhJoUFyDtR/ X-Received: by 2002:a05:651c:120c:b0:2b5:80e0:f18e with SMTP id i12-20020a05651c120c00b002b580e0f18emr11011878lja.3.1689006957395; Mon, 10 Jul 2023 09:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689006957; cv=none; d=google.com; s=arc-20160816; b=Yts8Hd85+mN1yl7EE5P7JP0e2GmQmpJ0KYuP2319NVHvPUtj/ZsINI15ftxD1/wZqr UKIp50vsObrMYLYNOxe4HJIYiTTE7b0wsk04M6KBiF3u0eu3zCj32UM2u36ZGWz0zadA XbCP6h3uMjL55ddzz8d69t0cJ99wXWsgTWig3U2lTQypcsZo0hXjaqNRAfwZlsPLts5y clEia3FCL8g30QFL8+aazWDrj1uJLUfibIhdrLrYhxa1NaOH9OKkFbAKRv8jJVdwBphg 5eWOwNaZe2Hoza1NvCLWynXmy7hAES7lTmoh1vG2Jk2fTPkDM1JeLUTfqCy8oiNOTiNA ii3g== 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=UmvNJWp7gSYLSOL1lBEhYIoTeNEMnNA7CgbmPYUsFE8=; fh=DP8X2YxMTpDBmXpouTu6jDWsUH0jVJ+4CxonR1DRbcw=; b=bYHdtCBT4dvKGDFHSJq/+WuQAu4H4CU+rnLCf1ARZckgh8kIEbjxKxZBnZttu0UfS8 av0/jM1t8VHkCMER6/t8iZvEFPzJhAVrNfprRYkwXw+eDZg2IgOreoYNDQSfs1fHTEEl eL4d/sA2hzCDtZaUa4Y/k61wL4mzSxSwG3q5rNkofBiHXfdFuzGmpDvqwTogUorGZqTb p/Qg1QMrrrIIfcftI2aQYAVcCZJV4ko4vmSBEg6mzJNTeX+oeALCQIj9LGKXnHv8dXyZ KTazFFUpxMb8t+kymbSomwUHGN0W5a+v/w24Ve5Ojdcp0pUudEJNRlC1Jogc3VEuNr2C RjoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gNhFXiXf; 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 o11-20020a170906358b00b009929566f00asi9992362ejb.467.2023.07.10.09.35.31; Mon, 10 Jul 2023 09:35:57 -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=gNhFXiXf; 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 S232947AbjGJQNa (ORCPT + 99 others); Mon, 10 Jul 2023 12:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbjGJQN2 (ORCPT ); Mon, 10 Jul 2023 12:13:28 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2723618D; Mon, 10 Jul 2023 09:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689005604; x=1720541604; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hcRhvsNpzCZm3Sd7nNPgrDaCtucecy1QPHYWw64ui6o=; b=gNhFXiXfjwNq5lgOn1LfATXCkYjrkUiekdloO+VlxgQAGwAowpuqnero LqwzCM58mwnIEo6x/vxNUY2goK7aOXUgMv0fr7tkztR6hfBI1DnMgLE9q +Jpx4d2Uyv67chiRtr0ioR8ixqTjMXI9XWukYXc1cBgoJowFte1TAeoNM FlAybTb6Hr4INO6T8ZDJ3joMZNvW8dugQm9OqLbOzuE5+MQiSBmZUOJD/ pNOTl3oz/wHthzgZ3zrrrmlXXKNUQe6/uNM0QNkhpRV0ZDF71heDNUJMA 0aDyyYGf6IoE9nWwExq8QuAYseXWicb+7ZNPpwqeDAyiGeTCigvmEXSgY g==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="354244117" X-IronPort-AV: E=Sophos;i="6.01,195,1684825200"; d="scan'208";a="354244117" 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-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 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