Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5365306rwb; Tue, 17 Jan 2023 12:43:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXuEQIbdeSXuTbxrDEBuUHGFbaKS3ykYq3qoPwGYC4+HFGEshGvejqndbdBCFPIsV00y/Gmu X-Received: by 2002:a17:907:d15:b0:862:e612:effe with SMTP id gn21-20020a1709070d1500b00862e612effemr6257295ejc.14.1673988221583; Tue, 17 Jan 2023 12:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673988221; cv=none; d=google.com; s=arc-20160816; b=0gjMyOKmiPsa5fsDnB9qmAk2Dp/zediknSpl8Ox6GIn5PQMpkHg/nKjlnLurHQYKCv fbf+KWp/pcRwXMhZua4c6B/U1RcuZ1QetS3Bhtvox1DncV21pSih5Ab+OLEj7VHCK3yu qQNFTh1oV++c6ICVF92jOPcG0+5DX1Ypwg/Vclmde+yDLvLCbziFFoYgkAM5/t5pdDY6 jSuG4acjiQF8dUoYBd7yk+jzzYi/jH2GRLw4S8swIDQLekEv8NgdTgrlBjPr8Lx7qIp+ RPVz6+X1JrNiHpVDKQUdtSMGZjcfknJjACcyxhxaZUQ0+geVDNju7OrlT62irFYly20b iM5Q== 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; bh=vZEa7uFFgIHE3MfQJBkG/eTdumBZFQkeFcyoFjOhTKg=; b=U31nIvVgAH+D6x7Wmholdvewu/ogNo6U1A2ZIeXPpTHSa2jARJoSv4eAtskao8PYCg nkUNjBNxrgLoiZ00yUOCcbGKNmYkgo1qFQ8bJTVBALGrwOUmW7gp4RVJw4pTYiNBzyNx psTuw4LqwojVcoByXEd1g4iTkc7LaR+jqxraKgQSO+az6BCvhzaip4Q+6hQek5HfPpEu 8s+ErhR0ogaLd3Tmok3gVJ3E0R/95S8Oj8mBJ1stI84WwRkb/rvp5Hw9zfq1SdpgpMTr CG5gywpe/SjEd5yZPGCWlDatSZGZUEseykJSZaPWz/0vckwrUNIYyMvR5KYUEb9S4hrj uVeA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b008752ca06d6bsi969152ejc.21.2023.01.17.12.43.30; Tue, 17 Jan 2023 12:43:41 -0800 (PST) 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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230310AbjAQTgt (ORCPT + 47 others); Tue, 17 Jan 2023 14:36:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235123AbjAQTeh (ORCPT ); Tue, 17 Jan 2023 14:34:37 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94AD4901D; Tue, 17 Jan 2023 10:37:20 -0800 (PST) X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="389279277" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="389279277" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 10:37:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="748138394" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="748138394" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 17 Jan 2023 10:37:17 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pHqpf-00Aj8m-3D; Tue, 17 Jan 2023 20:37:15 +0200 Date: Tue, 17 Jan 2023 20:37:15 +0200 From: Andy Shevchenko To: Brent Pappas Cc: ailus@linux.intel.com, error27@gmail.com, gregkh@linuxfoundation.org, hdegoede@redhat.com, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mchehab@kernel.org Subject: Re: [PATCH v3] media: atomisp: pci: Replace bytes macros with functions Message-ID: References: <20230117183152.6521-1-bpappas@pappasbrent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117183152.6521-1-bpappas@pappasbrent.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no 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 Tue, Jan 17, 2023 at 01:31:52PM -0500, Brent Pappas wrote: Read to the end this message, please! > Replace the function-like macros FPNTBL_BYTES, SCTBL_BYTES, and > MORPH_PLANE_BYTES with static inline functions to comply with Linux coding > style standards. > Replace multiplication with calls to size_mul to prevent accidental > arithmetic overflow. We refer to MACRO() and func() as depicted. Otherwise looks good. ... > Changelog: > V1 -> V2: Use size_mul to perform size_t multiplication without risk of > overflow. > Remove the inline keyword from function definitions. > > V2 -> V3: Add commit message. You missed my other comments. Please, read reply in full and address all reviewer's comments. -- With Best Regards, Andy Shevchenko