Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1978619lqp; Tue, 16 Apr 2024 03:57:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPF7vv6I7ySy3iOScyiwDhntzgsjoCy9JlgcUHuZvliTGcibj6OuuviJ0Vhnuy5j7Xnkej2gWoHGAkCsfFRh87dq9P1n6Di8WPyRn/nA== X-Google-Smtp-Source: AGHT+IGLenLnP/MfrCV7G3yA9Ctcjob7y4lmgSl2kKcsnusHaABfJS1+601UZ/WtOlGjbtSOJ3bH X-Received: by 2002:a50:bac1:0:b0:56d:fb36:c388 with SMTP id x59-20020a50bac1000000b0056dfb36c388mr12382394ede.9.1713265020162; Tue, 16 Apr 2024 03:57:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713265020; cv=pass; d=google.com; s=arc-20160816; b=WCABhEBKlPxxjtqQ+L5Zu4w5LN/nSXfGjbjZ+kBAKDibCU9wnlr+C63opDUEg3z+GZ bmMeCFGCoKUBvD+F8w0UD+h4OCmjY8Kxs3P/7zzlQR58nscp/3KorhMgJq5KE2XtUIL1 IfSxDNRe74UG16cFLCvY3g7oY2nTMU8zwjkaVVcKiAZTwu9oYIX1PeB7VZcsqtWNoAqs c+mbVXymNCOJSBVFqQF8CJtlCqV2Txztsm/TneStzfX672Ms1NohvOrqE6/lnsBj/I2V obauXBthB6En6gzSWSieVcp2g4+ymYI5CXSfZzxTmqfzU2kTZ7hVJWKyFwEKTqi2P6nu Qx+w== 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:dkim-signature; bh=5+LvTU+20katiBQPmXC4bjjTw0g5f/3WkUMY6Jo3I4w=; fh=8WtFKxM6JbFqQdBqPLbdPw4Lpc7A+WPc8gSet1ibfLQ=; b=dk7MOgrCcepi2vBoU4lUqVOvJ2jIoiwuNiTowWry/5S7wlb27WDBPK0zwy5LQRrNqS +essab9ysITseRr0EJwE2a/zgFXpxAnRs2lKhMbV6icpz8PzPWgZ2Eqt4UvbmFwio2Nj QyOaNyokL1mZoaMeLi5Ec3D55PPFrPOsbRyIjekRsN+XF1bH0RsJGbTgAfhw/tcwJFf0 3P74Ucd5aK76hpV5NNNVFN/5s8MrzZaKeLT/S4/9EA3/H0aoBxovRQK+l6XTrLVjK6om 8lm2SL+SdZHtJFwy8EGds2wU5K6BdNgRGpn6U65g4Ci2ImWzJFI6SJddvlKtKuynIVRN nP1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r6U+yINx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k27-20020a508adb000000b0056e0afe692fsi5822081edk.316.2024.04.16.03.57.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 03:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r6U+yINx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B7B591F21EAF for ; Tue, 16 Apr 2024 10:56:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43D99128805; Tue, 16 Apr 2024 10:56:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r6U+yINx" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F6AE6D1BC for ; Tue, 16 Apr 2024 10:56:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713265007; cv=none; b=h4FlqewZidERBa8H1xRA5oNl9+/BXOq75HmmOn7KIlyBM3nlldXbfI2smmg6QXyylCxzlPHSMNwqXn9JWKHl7Xlealfywp9qUrofeM7vv+2mDvW7pf/DSBJ/LHNYMMvcCz4bN2F0ozSS4Ibc+jQ81ecy9ah1Ceg7xwMeLTnKhhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713265007; c=relaxed/simple; bh=HlgZk8CvLNHX7j9hSVFcL16+f4dTN36eZ1Z1lh6hhAU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D9hMlr0er1hLKoo0LYcBxya/M30+xoaJqUevLzDNG38Lfammfreaf0znlMLdz0/zzZRFOjQGPSo1DdGTyhoMDQl/p4Ii/HchJgOZ+w3pB7QiX80BNHwq0vnoVNLj0E0nSH9Xg+kJPyX65mhdlLDT2hvErvvebkDECsfVD5Vm3h4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=r6U+yINx; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56e48d0a632so6704789a12.2 for ; Tue, 16 Apr 2024 03:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713265003; x=1713869803; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5+LvTU+20katiBQPmXC4bjjTw0g5f/3WkUMY6Jo3I4w=; b=r6U+yINxFACDakQy+03qXcj6VxcD4ap5W6Fk62p4c94V5dKPPnAfxE9+WeQQAhSKMP OjMOuV4kG4Nxhf3BZJ3hDdbVm8YZXmrxrbukZ5A32VIoBbou1Dl0QUJxQBGbudJ5cOyk tkSEfcXBkU5CbgvbBGpthGz9MLvUIP8yuzUrXDln/SzxdUmEEvy9j2qPpN3nbzRdC+nJ VeNx0lNPgcfsDbp1/XOvYpvREbcMVl9Kk58KHfkQ3Q1wRgfqgnF0rF6E8Cnh0fAS2h25 Trk0BO7Uo8Jbb0eQ65TlHWPmzAI+ZHbbth42IbF1GJG1WIRhW1NF+1lJGq3R/FzGGPNh oMnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713265003; x=1713869803; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5+LvTU+20katiBQPmXC4bjjTw0g5f/3WkUMY6Jo3I4w=; b=bBDufQms7/9FWeGsXn9OAYqlmttVNVhCL16aUNAwP/BCeaHQkTF3yelIVjCIxV+WV5 ylpjsoirl/Oskv2SQBU9BybiTOs6c5jiIWzT1wsyRmpQM2AVD5Zf/+W3d3G3N1UE9P5N pfbNEgpp8SRqZCR/pPw0EJYRILOnA3C2u48ha1RIr/MXAo9VZkc1Pf2uzXjuxnbiF0Ke 6iP0zw/oFUZNGe1yQ/C6TZekRdwzJe9yqRN2/gvWkU7r1fCYZbCkfnHoeHixGtUFlYH7 ojDvQKX01nbl7T8bMiKnHTai3hMC7xpQz73oJu8Pk69HbuyjCTwL/6hs1qyrfzUMeixK 78Eg== X-Forwarded-Encrypted: i=1; AJvYcCVNOVBUlfM+vLxhtj8JB9q4sZjF7IUvbxaqZFRKnC+pmhmZIqd7rishv1VqqVMPccEuZL1vYAxCtygYSf0n+HkyouCFDr21HVIuwhy2 X-Gm-Message-State: AOJu0YygVDG/EpSq2JSxhIxYiUfG58a/IyrlKi7/iG5EavdFD86X/Txi 6+lJwHMNa/rH1CIPRu/RNqJ3rjxVHX2VUGGUFk2FxB5MpnlffLSqvNxg1L9GFQE= X-Received: by 2002:a50:8d19:0:b0:570:1161:111f with SMTP id s25-20020a508d19000000b005701161111fmr8339541eds.15.1713265003274; Tue, 16 Apr 2024 03:56:43 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id u5-20020aa7d985000000b0057000a2cb5bsm4692942eds.18.2024.04.16.03.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 03:56:42 -0700 (PDT) Date: Tue, 16 Apr 2024 13:56:38 +0300 From: Dan Carpenter To: Ricardo Ribalda Cc: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Niklas =?iso-8859-1?Q?S=F6derlund?= , Pavel Machek , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 23/35] media: dvb-frontends: tda10048: Use the right div Message-ID: References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415-fix-cocci-v1-23-477afb23728b@chromium.org> <97f51ae8-6672-4bd4-b55b-f02114e3d8d0@moroto.mountain> 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=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Apr 16, 2024 at 12:39:33PM +0200, Ricardo Ribalda wrote: > Hi Dan > > What about going the safe way? > > --- a/drivers/media/dvb-frontends/tda10048.c > +++ b/drivers/media/dvb-frontends/tda10048.c > @@ -341,7 +341,7 @@ static int tda10048_set_wref(struct dvb_frontend > *fe, u32 sample_freq_hz, > /* t *= 2147483648 on 32bit platforms */ > t *= (2048 * 1024); > t *= 1024; > - z = 7 * sample_freq_hz; > + z = (u64)7 * sample_freq_hz; I think your patch works, but it might be nicer without the casts. We end up having the discussion where it's like "Can this hz be above 4GHz?" And, here, I think we're safe but a lot of stuff is pushing up against that limit these days... regards, dan carpenter