Message ID | 20240429-fix-cocci-v3-22-3c4865f5a4b0@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79803C04FFE for <linux-arm-kernel@archiver.kernel.org>; Mon, 29 Apr 2024 15:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mhFjwTcMOAQ/YpUwuhT1CprISPtVr4aFJBjGD3DIGQo=; b=g0VXbs3K2gy0hI jdmlmYYZtdtruvhff0rUpwsLfvK9tbHGmPuWmPTiz2C8Gk6Ub/Q/sQ7WvdSl53ZSjJVXAi7lAxOOc f1XsNPDcLF+U/Rjd1t0evJ5w8fYKd04T0kHj7COtq3gjChp35FrRYZlm2MQLMzwOVzQZoslj+bzC8 4NPf7P862PuiCfBIkNXGa/iZyEh2zNX8K4bMIJXiOjDdY1kfGDCxNSHax7udMv0Nj+zuAoKAD1Che T0O6q55whG91VgfRxzxJtMy5ALiCarXVd9FeDyH4s8/tSmqqKQ+LIGmB/ci2hxENLUlde7qcY2XFi S8G7wqSrfE8BfnycTdCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1Sco-00000003Hs2-3p2i; Mon, 29 Apr 2024 15:09:02 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1SZs-00000003G2K-0mM1 for linux-arm-kernel@bombadil.infradead.org; Mon, 29 Apr 2024 15:06:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Cc:To:In-Reply-To:References:Message-Id :Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender :Reply-To:Content-ID:Content-Description; bh=H+ICFE9T0WtFgFxAAIzneJg+RkmVbFrs0mrpkqFICS0=; b=Rvhj+Th9/hYEPy8CsgHyncMpI8 PgI0V8dMar94Ly5zNiiQmgt2/E5Q64yz4srq8Vbba1VuPJzcDrpTJLWm2qBzZx8CL/Z1JVAw2dNES AiCpIhsN+mE72fk8u9QfFC40yCZECC2uNnadDS8RoeseJWSoQNOmQXqXSzrDTRegxeogkKfJu8fdF qPzNKysl9+yNVfSir4rNSmRZ46uTOWfRx6dv3w4yNydJFUdBUyQmcoTmNNTi4XCLUrxlx2p+KqEgQ FvM8qK7LrJO53YL1QDNRapDZHztrbyv/iezGw3wFIVudN8u488sDvRBV+GleKcbToa8DxOddcLnSF Uv8R2aPw==; Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1SZm-0000000CfkZ-3nta for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 15:05:59 +0000 Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-78efd533a00so336982785a.0 for <linux-arm-kernel@lists.infradead.org>; Mon, 29 Apr 2024 08:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714403106; x=1715007906; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=H+ICFE9T0WtFgFxAAIzneJg+RkmVbFrs0mrpkqFICS0=; b=aY5za4Y3PCSTAM0/L3YfYpIrBxQk2ax8Eo9zCKgpF13I2GgVpA4skpx17VIZLtC1Am KjwRIGBGcwVQoqjVeH6m7F90DKmB0k4e+jBV/CqI517h2ju/EjAAoXf4mhW6G/1Wlo9f kGUhJRn2xEuYLwxctaCzhyfDaoA9mp+s6TaIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714403106; x=1715007906; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H+ICFE9T0WtFgFxAAIzneJg+RkmVbFrs0mrpkqFICS0=; b=t4zN9QPODNPsiFAKlEYKZ/g4Xg01NXsjgySEfva4GNS8dNKVl1Dtzub3xjZE/p4FAW OGHnIGS1fZIJdjNDweMFB/st17egcMHpQVtsVcLsy5pgQH5sS7xcGk+GrqOnjAWaSY6z 3wjkYImMSHLr9osvl+7rpQpK+9elXPmuyV6JXFxqFoB78h5pXcXH0TeCePXkmUOznRKp c9gR+gKW3S7gc/Z5+dtvrgfIQf1PnKOFjzlB8vZ16xBBk5qEnTxozsiPSOhtHDMxid3b ufQQxFOH+6mTDNkFqxh49C9LMivVi9UEjCSvOsTKPiI1XB8H15lkRbAqWHsfwR85GRlu quRw== X-Forwarded-Encrypted: i=1; AJvYcCVf2xFMDMSIdsYyFZkFwPnB5uYSbcPb24XjoViMpDWsFAjnxM8tafxuNCh8XHsIcOdME6GwIH97z1KpV9UiFwFlH1KuFWvaz5Q5pTiQDMO8hfXhRKM= X-Gm-Message-State: AOJu0YzDC0Dg5cW32TO52Ttn7vx+di49qBXc7p1X7HgKxK8pz+ibyocB l+SIjgEoYQ/X1mhNCRq5m+LMAQ21kIQTPekAPadh8EVe6e/bIZhx4XaoE8e5AQ== X-Google-Smtp-Source: AGHT+IE1jrRBd5HK/tPuhHP5Hku+rmhJzqzd24VfyQoPlWIHBef+7Xc9RHcUZ/XfTRZVrVfoGNJ+0A== X-Received: by 2002:a05:620a:57d6:b0:790:b2a3:f86c with SMTP id wl22-20020a05620a57d600b00790b2a3f86cmr8844059qkn.34.1714403106175; Mon, 29 Apr 2024 08:05:06 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id p7-20020a05620a056700b0078d3b9139edsm10568591qkp.97.2024.04.29.08.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:05:05 -0700 (PDT) From: Ricardo Ribalda <ribalda@chromium.org> Date: Mon, 29 Apr 2024 15:05:01 +0000 Subject: [PATCH v3 22/26] media: tc358746: Use the correct div_ function MIME-Version: 1.0 Message-Id: <20240429-fix-cocci-v3-22-3c4865f5a4b0@chromium.org> References: <20240429-fix-cocci-v3-0-3c4865f5a4b0@chromium.org> In-Reply-To: <20240429-fix-cocci-v3-0-3c4865f5a4b0@chromium.org> To: Martin Tuma <martin.tuma@digiteqautomotive.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Hugues Fruchet <hugues.fruchet@foss.st.com>, Alain Volmat <alain.volmat@foss.st.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Paul Kocialkowski <paul.kocialkowski@bootlin.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Sakari Ailus <sakari.ailus@linux.intel.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Sowjanya Komatineni <skomatineni@nvidia.com>, Luca Ceresoli <luca.ceresoli@bootlin.com>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Hans Verkuil <hverkuil@xs4all.nl>, Sergey Kozlov <serjk@netup.ru>, Abylay Ospan <aospan@netup.ru>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>, Dmitry Osipenko <digetx@gmail.com>, Benjamin Mugnier <benjamin.mugnier@foss.st.com>, Sylvain Petinot <sylvain.petinot@foss.st.com>, Stanimir Varbanov <stanimir.k.varbanov@gmail.com>, Vikash Garodia <quic_vgarodia@quicinc.com>, Bryan O'Donoghue <bryan.odonoghue@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> Cc: 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, Ricardo Ribalda <ribalda@chromium.org> X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_160555_031904_AC0069B8 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
media: Fix coccinelle warning/errors
|
expand
|
diff --git a/drivers/media/i2c/tc358746.c b/drivers/media/i2c/tc358746.c index d676adc4401b..edf79107adc5 100644 --- a/drivers/media/i2c/tc358746.c +++ b/drivers/media/i2c/tc358746.c @@ -844,8 +844,7 @@ static unsigned long tc358746_find_pll_settings(struct tc358746 *tc358746, continue; tmp = fout * postdiv; - do_div(tmp, fin); - mul = tmp; + mul = div64_ul(tmp, fin); if (mul > 511) continue;
fin does not fit in 32 bits in some arches. Found by cocci: drivers/media/i2c/tc358746.c:847:2-8: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead. Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> --- drivers/media/i2c/tc358746.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)