Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1621703rdb; Sat, 10 Feb 2024 09:28:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEb6ipZ1cMM7cjF8WmvYQbvHBUJn0j0N5iGykDYxCta6d2KsyVds11YLc+wL3ZMPv/Jlbmd X-Received: by 2002:aa7:8c4e:0:b0:6e0:2c77:a501 with SMTP id e14-20020aa78c4e000000b006e02c77a501mr2826962pfd.20.1707586101218; Sat, 10 Feb 2024 09:28:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707586101; cv=pass; d=google.com; s=arc-20160816; b=NZBX6p7rdGAR56x2WJqmsBVFUS+FFUnOqmHBNnIx/s7PMwiPOFFU3Q14gz30l13bTR NoI3V4jbzkd9ATJZKNFTgBjcZiJoygLOxTctRAiUpwL05pE7AsFb4ubg5MlISQnGUp7W QRndRdb9Ui3lNC2f168WQxLwaskVPhAkM1oMkiFWtd8W8VXGsugSnZEFE2w/uPiigZcq HnFK2hqPKRIxPgswzvZBKPSQci18X7Ko8MEWZKd+BfpXGd0zqNsOLIBoBoSDBd2WzCSt ndYQTVc5K/fuLRmlmqZHoHbsJEo0PBWaC7mEuxu0KtYnPYW0y9m1WDCNx4VS1OiYnGsm IkHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=5fn9JhoqMaw69jBGHNBakS3XlQTNoPT9po+BlydCkNg=; fh=yfMu9E8kjCkqDsUkFSpIvesyoIggFbBDI9a4gwSeRk0=; b=D4eLLTibkG7UcmIMK10zIZ82WcZ2umhC8lz9yHyo4NcrnzaMhnXthSpN26VnE8anaZ eAnQtwOeWBrbGmHeTcXegi2ENXDpEE92hL3pDoRi2ukrXOTqlSiwlxGd574SfhuLk1zQ x6YS3UJ4j4Dv4reVik+B4RaHWgB7slrkk8Vyr7oVe+CFLpIq1WymzDEShGmO/LNMNA8n WD4p0wKJsjKmf5MF8VHMo9h6oJx+iytuhOgIv+h67FamlPpZBt0ASZj2AA1mf/AHu5ks p+7M92SGQjLCKXjSnBFHRI3iO+G2WoWkC7jjbXLMTTSZJbbD9kwUE47wxNVqZys4I5NY MEiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-60499-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60499-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUr5NLZVW2aokZ6PuAHbl/s1DtXDYIaw8M8xnYFn6cAp113MTqTkUnDHrL9/b4uKK6+bbH43OFCFENUXgDCtM5Oke6v1Y1uMbV7SRrvlg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a22-20020a637056000000b005cdf88fbc11si3644310pgn.48.2024.02.10.09.28.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 09:28:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60499-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-60499-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60499-linux.lists.archive=gmail.com@vger.kernel.org" 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 9D2D7B2279D for ; Sat, 10 Feb 2024 17:27:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF8525CDF5; Sat, 10 Feb 2024 17:27:04 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 9A2F05380C for ; Sat, 10 Feb 2024 17:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707586024; cv=none; b=Yf0exC3sUS6mOQ7T7uqG+6F40DKzFIsAAl1oG8yzKBto0nZzo588PQMsZ1QwPKBxvzIiKgNRxOzxNemKLE5nGqvXmrzjuoIScq49ZI+ExIHMW04Ri1JUv+05YHzPZHpbw1z6oPgjoWV5xUP+Nwq7sVkP0v7JhlGJqpHWISDg+mM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707586024; c=relaxed/simple; bh=kYlYZarxarehUc3Rm6u3vvzFdwZBHOLP1oKLB6hcC+M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jQLpYJXD3KOVgetY/S8NK14Myzw8f5aU9BvlBUmQ8aLL0I6gKXgI1Ig+pZ1DUYR7ux1leiOzhO+mWN/HnGpwiiZ6wSg+McdXLeeDnU9w4wf3noOJ/BAdU+MvbJXpPI+CBJ7EcU3bWpnyXj9zDr9l4ZSfEWfHyYcKUrGfO900hX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rYr7x-0003aw-4S; Sat, 10 Feb 2024 18:26:57 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rYr7v-005icp-J7; Sat, 10 Feb 2024 18:26:55 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rYr7v-002FaZ-1d; Sat, 10 Feb 2024 18:26:55 +0100 Date: Sat, 10 Feb 2024 18:26:55 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Fabrizio Castro Cc: Philipp Zabel , Geert Uytterhoeven , Biju Das , Magnus Damm , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v6 2/4] pwm: Add support for RZ/V2M PWM driver Message-ID: References: <20240208232411.316936-1-fabrizio.castro.jz@renesas.com> <20240208232411.316936-3-fabrizio.castro.jz@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="54ywnhorhz2yusl6" Content-Disposition: inline In-Reply-To: <20240208232411.316936-3-fabrizio.castro.jz@renesas.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --54ywnhorhz2yusl6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Fabrizio, On Thu, Feb 08, 2024 at 11:24:09PM +0000, Fabrizio Castro wrote: > +static inline u64 rzv2m_pwm_mul_u64_u64_div_u64_roundup(u64 a, u64 b, u6= 4 c) > +{ > + u64 ab =3D a * b; This might overflow. > + return ab / c + (ab % c ? 1 : 0); This division triggered the kernel build bot error. If you want to divide a u64, you must not use /. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --54ywnhorhz2yusl6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmXHsd4ACgkQj4D7WH0S /k6VxAf7BRJFHg4rZZBSb4p15FSV0UzFczMlAmvdvLSdCf/buM63Xc4SHh4h0IwY KkQy4v/FePDnnm547P5yJunOFXcdfeOVz+8VA5gV4fFcx8l7Vl+F+bjof/bvPGBe 9buARqONaOcY+7h2K6Kkgi00KOcnsxLFcbohMswn5hTGYodJfkWsYTk+ln6PMoRv YX9SnHX1XyPjeHMTYjUwS3vxDZ+IehYuKVpPX44ZA+AsIQeHAjp8/4AhKkpPEX44 xFLsToSxV8bJizIcbO+3GFhXWdjXa87AF/KqXRcvbdeYcj1C+ivP3buiurGq+UM8 rkLSPSDx8sz8FXfdQHJGGpkvc/L+Eg== =y35U -----END PGP SIGNATURE----- --54ywnhorhz2yusl6--