Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp544432lqb; Thu, 29 Feb 2024 08:08:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsvfhypggqK7LOVmShBLNFWGVAr9pxcMoJQV9V+iO2rITcklfnWcmg4GI07R874rOCU6QQ4Bbg8RdgFNVO10hylg689Zmf0ezgAmNgQw== X-Google-Smtp-Source: AGHT+IGzxVz3Gmn9YeBDUpyurWVaxtCJJU398hkQK/u2qJ82uLg/pPdWCv3udU8cffhlg4GQHeu+ X-Received: by 2002:a17:903:11c7:b0:1db:dd24:9962 with SMTP id q7-20020a17090311c700b001dbdd249962mr3583390plh.21.1709222892638; Thu, 29 Feb 2024 08:08:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709222892; cv=pass; d=google.com; s=arc-20160816; b=bdjjg+DOpvbe4znbsUnd8XHmwUZipq8wGVB+1516sM8u0jLQmbbbmsM8oSv0/nxvzz SdbYgWSIagrDSMrqdszqLX6SRN6QQEJx+vKxC0YvDf8QE7b6XObewmYXfTP5XspzfEdo hRTUbbSa/xYWUl6jITvN/THDDy/prtKzyjVQfZoZkoq2pT61DdWP1PT0yKRuBuBGfE3O +bpiIR8pvKkIMEnR4R1BvsA1ARyeUgy0KKrohLc+EKCmCs3BkeIrrgtiJyu8wRDdxs6+ 9f2+P+1Oe79TsTTugySogRdnardtOu7F/xX3zffLDTxIXJBJD7B+JjA1JwTdmjEgCyo9 nU1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=VgJbSUlXzP3r1YIk4ET8P0KzW28lAscaGKNmi65NmIc=; fh=aVFktRQVc7e2EBQUG3/Atn37HskN56WD17HjG44bpUI=; b=wpBoh1080kEjsdSKp4ZyJHfDb5lPbM3DXqQpYscKyUbfgzktZwFl79ZSVfDe6/GvQ7 qWzgB21BQaiN3DoWbAhBWgc4zMjYSuMobPUtXelFRSj/NRcvRblX08r+99NlsnwbY+r5 sy1de3/QxnOs/j7dO+R5dBO49CbBsooo3w86Qjj7g4LOraw4KfBHfGVVCoYxyGsI3liZ B40Mqic4fR1PMQucwmtpRSHgox54QRH5AleNWapTW2E9g1qSGNmgoUPofmg/yn9pJA+j eJkIgGeuHL1cVw2J8t3g9zbWOU3QX0jeMQGK3e71+qFYwa0Fs8v/7qXZjXAvcZYI9SzD 8wvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DlslagbC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v10-20020a056a00148a00b006e5a2456e80si730837pfu.127.2024.02.29.08.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 08:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DlslagbC; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4E822B23F94 for ; Thu, 29 Feb 2024 14:54:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B53F13AA21; Thu, 29 Feb 2024 14:54:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DlslagbC" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8381B137777; Thu, 29 Feb 2024 14:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218439; cv=none; b=jiOGqZLoTWNYEpH99LFwaxF4hQOws74Cfk/BwO1a3333+9e9sAR40ZY5Cc80msZKrIf56AC8zG8YtwKDNsvF7aCrmRY6MGCPwm+Da3wHQari6meSr0OqpSBhpwSDUe148Uj0Ummn110W0eAgBkf9ZG5smvyY02XG3oGark0sd/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218439; c=relaxed/simple; bh=H/xypjHg3RAGtOrdFLSQMFFbI9FZppPqPGCTlvgpMy8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L8PIyhS+Uqtv7g/yC69Pr3ZO6oTwiZG/ClI0Tnk/KksqtRkRGlgsJrAIW9BttMEfz0RaQFBJMygHZuaDkpZGf9+h34Qgk+7ILBx6ULsmpXwJtgt6ShpZ+jb+v4+xQCiGy5Z2S5KBnhxvCekVJa+OJu14zbBOgGkd0SvfdyFtLyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DlslagbC; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709218438; x=1740754438; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=H/xypjHg3RAGtOrdFLSQMFFbI9FZppPqPGCTlvgpMy8=; b=DlslagbCfXQK676474bV3pAjKHVKN+B6FAm5kPYwRIOIcOOKDcw81Q3O qfBYM7LSuTBWPSrrsusAMDihGCLPFK7IGKdkMX6nIX5D4rvMjdZ85Wrf2 09vM1XfxWWJIBauatfLHd8e58v75Dh6TfjP6emtV4bZse3+Eik+rPysMC x1YhBrSwzHrumEj/XnK8wywfbxR6vdRkQKHbCHXKlk2P5LjM/sGwZIm9Q DGTOdxf3flKmTZaIGTdZxKmhi8x8oeRfmzfB1GAnCG58vzUYnlrup0qg7 teMB8+cy8LOxH+sANI3RoC+H1hqylxURboVjDvXOIRpkQKlw+3n+1ddzx g==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="7470968" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="7470968" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 06:53:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="913983848" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="913983848" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 06:53:52 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rfhnA-00000008hMb-38bp; Thu, 29 Feb 2024 16:53:48 +0200 Date: Thu, 29 Feb 2024 16:53:48 +0200 From: Andy Shevchenko To: Linus Walleij Cc: Vinod Koul , Jonathan Cameron , Mark Brown , Kees Cook , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-spi@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Gustavo A. R. Silva" Subject: Re: [PATCH v4 8/8] dmaengine: ste_dma40: Use new helpers from overflow.h Message-ID: References: <20240228204919.3680786-1-andriy.shevchenko@linux.intel.com> <20240228204919.3680786-9-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Feb 29, 2024 at 03:14:03PM +0100, Linus Walleij wrote: > On Wed, Feb 28, 2024 at 9:49 PM Andy Shevchenko > wrote: > > > We have two new helpers struct_size_with_data() and struct_data_pointer() > > that we can utilize in d40_hw_detect_init(). Do it so. > > > > Signed-off-by: Andy Shevchenko > > Wow really neat! Much easier to read and understand the code like this. > Reviewed-by: Linus Walleij Thanks, but Kees has seems even better suggestion. -- With Best Regards, Andy Shevchenko