[PATCH v2 1/2] staging: vc04_services: Use %p to log pointer address

Greg Kroah-Hartman gregkh at linuxfoundation.org
Sun Dec 3 23:07:47 PST 2023


On Wed, Nov 29, 2023 at 01:50:06AM +0530, Umang Jain wrote:
> Solves the following Smatch warnings:
> service_callback() warn: argument 7 to %lx specifier is cast from pointer
> service_callback() warn: argument 11 to %lx specifier is cast from pointer
> service_callback() warn: argument 12 to %lx specifier is cast from pointer
> service_callback() warn: argument 13 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 <umang.jain at ideasonboard.com>
> ---
>  .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c  | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Does not apply to my tree, is it because I just took your other patch?

thanks,

greg k-h



More information about the linux-arm-kernel mailing list