Return-Path: 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 17727EE6B5C for ; Fri, 6 Feb 2026 20:28:33 +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:In-Reply-To:From:References:CC:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RKdUdIoAkGlYRxWOfGGnc8+ARrN+RnDVL+Tyc72ny/I=; b=FNYrN63ggpI/T1 GaeZP9eiLM+/z7AyxpBAA/oOzXSu9wG/ewHjcVUNjHBBODAzId5T0Sg+QajVpbC8pcSkH1tEV57uG ieK/cPACfjzksqMJNJ5JMFQ49nBivN86UURt2buoNPivfL1A63jp4w3W+rEkANerPCozOfzApp+vE 2rjjrh9M03QNgfmoIXN7XuDwhZ5N0XYm6lOij7lpq8olXuVjl54mbTQYoGCT4SyBv599h+du84ac0 7Y3H5rtspVinEl7YIKwnHzVN9fModamndOve6jKkaj8sOdyC4L5J+hLbzT7LbyUZAuaPmJ0YB7jgQ quJc9WsZdv2NIOO3IUzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1voSRL-0000000Bnfl-0AvS; Fri, 06 Feb 2026 20:28:31 +0000 Received: from [95.181.193.9] (helo=mail.auroraos.dev) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1voSRH-0000000Bndy-3kY9; Fri, 06 Feb 2026 20:28:28 +0000 Received: from [192.168.2.104] (213.87.156.77) by exch16.corp.auroraos.dev (10.189.209.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Fri, 6 Feb 2026 23:28:24 +0300 Message-ID: Date: Fri, 6 Feb 2026 23:28:24 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/rockchip: vop: fix sloppy typing in vop_plane_atomic_update() To: Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , , CC: References: <20260206202346.57633-1-s.shtylyov@auroraos.dev> Content-Language: en-US From: Sergey Shtylyov In-Reply-To: <20260206202346.57633-1-s.shtylyov@auroraos.dev> X-Originating-IP: [213.87.156.77] X-ClientProxiedBy: exch16.corp.auroraos.dev (10.189.209.38) To exch16.corp.auroraos.dev (10.189.209.38) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260206_122827_937097_6E947999 X-CRM114-Status: UNSURE ( 7.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On 2/6/26 11:23 PM, Sergey Shtylyov wrote: > In vop_plane_atomic_update(), the variable offset is needlessly typed as > *unsigned long* -- which is 32-bit type on the 32-bit arches and 64-bit > type on the 64-bit arches. I highly doubt that this variable can exceed > 4 GiB even on 64-bit arches, so let's redeclare it as *unsigned int*... > > Found by Linux Verification Center (linuxtesting.org) with the Svace static > analysis tool. > > Signed-off-by: Sergey Shtylyov Oops, I did forget to add that the patch is against the drm-misc-next branch of the drm/misc/kernel.git repo on gitlab.freedesktop.org. MBR, Sergey _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip