From patchwork Tue Nov 28 20:20:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13471726 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="K1C93fjQ" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 474EE1988 for ; Tue, 28 Nov 2023 12:20:24 -0800 (PST) Received: from umang.jain (unknown [103.238.109.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D03C6BEB; Tue, 28 Nov 2023 21:19:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701202787; bh=2CeZ4QxoP/jx5RZoQYRPw8XC+W8zuF3M8VyznMS1wpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K1C93fjQwEgki9DxhVcFumlDjCrkveuMXnLUPiWDNbMeBjt9MHpOi9mWDxZuK1zGC UsJA/1LvaYbe3pxLWh6y9ffb531NGa9toixi4CFV+uDC3wZlBJgCcJ+pznN+k8d+Jd nxIzrS42rctrPzCNx8cdKxitUYCWbz+J6o0N14Qc= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Cc: Stefan Wahren , Greg Kroah-Hartman , Dan Carpenter , Kieran Bingham , Laurent Pinchart , Dave Stevenson , "Ricardo B . Marliere" , Umang Jain Subject: [PATCH v2 2/2] staging: vc04_services: Use %p to log pointer address Date: Wed, 29 Nov 2023 01:50:07 +0530 Message-ID: <20231128202007.489294-3-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128202007.489294-1-umang.jain@ideasonboard.com> References: <20231128202007.489294-1-umang.jain@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 98a60fee3d9a..3e3bf842d20e 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: debug: instance=%lx\n", (unsigned long)instance); + dev_dbg(state->dev, "arm: debug: instance=%p\n", instance); if (!state) { ret = -EPERM;