From patchwork Thu Dec 7 08:38:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13482945 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 1A7A8C4167B for ; Thu, 7 Dec 2023 08:39:25 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=p9h9pLb629scM4UCi9Gu+BGaRL6uNkaQYLHwrDmNx9U=; b=L/w8kn405VnVlK C9ckLGcV9dO4e2K+87Rl1otu9v8ioC4oTBrqN/Xb7WoX+2vj3Xu5oz6u7Ohd3gIpYE2mAX1wo7olr oPrfVV5yd7n79iwNLQjRS+AdpnbLy29aDTV5vJ4MZ/VHsyK6rMyrxeIpi6FNaYATvQN5SuW/DFhmI /lI14T1cl3qYB1ePyAKsGdLtMsYYJiHe5YiffQ69KzHF2MjEZmgWzJw0CMynVP7XjRYioBfxmNrFa ghumM9Oqinmk0wNfCDESk3owMa0bYn36eYh8cH74X/TP9NGRwJ5HKjfMUn/zcfavl3znODPCcuNCE i2UDRMbR9jOZnVvqKcFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rB9uK-00CFVb-0o; Thu, 07 Dec 2023 08:38:56 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rB9uE-00CFSB-0Y; Thu, 07 Dec 2023 08:38:51 +0000 Received: from umang.jain (unknown [103.251.226.79]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 171C9669; Thu, 7 Dec 2023 09:38:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701938287; bh=D3D1TD9ac0JkckHnvb2sD5MkPEbDyC1GqVp0zg7uxc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CoRiCgCAt3YVtv6/QNL1wTa+oIeCikbKPq8LhTP3nuVaJh4sxkl+yRz3V+UvZMm+Q 2/Pw4JHvqHWc4mpd0wO8y0miXRKf7/8YmifYKjhmPmw8/0o9JuOFLyuhmTE3Fo/nZq F9GOiK4231mO9wgV0TAvNo4koBfg9rj1E/qyXiUk= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Stefan Wahren , Greg Kroah-Hartman , Dan Carpenter , Kieran Bingham , "Ricardo B . Marliere" , Umang Jain Subject: [PATCH v3 2/2] staging: vc04_services: vchiq_dev: Use %p to log pointer address Date: Thu, 7 Dec 2023 14:08:37 +0530 Message-ID: <20231207083837.153843-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231207083837.153843-1-umang.jain@ideasonboard.com> References: <20231207083837.153843-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231207_003850_344316_16F2E216 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Solves the following Smatch warnings: vchiq_release() warn: argument 7 to %lx specifier is cast from pointer %p will print the hashed pointer to dynamic debug. In order to print the unmodified pointer address, one can use the `no_hash_pointers` via kernel parameters. Signed-off-by: Umang Jain --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c index 68c8897c504c..4d9deeeb637a 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c @@ -1201,7 +1201,7 @@ static int vchiq_release(struct inode *inode, struct file *file) int ret = 0; int i; - dev_dbg(state->dev, "arm: instance=%lx\n", (unsigned long)instance); + dev_dbg(state->dev, "arm: instance=%p\n", instance); if (!state) { ret = -EPERM;