Patch "Input: ads7846 - fix pointer cast warning" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Input: ads7846 - fix pointer cast warning

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     input-ads7846-fix-pointer-cast-warning.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 11ca605653480b2ddc70ec142a0a686796a7fc87 Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Fri, 9 Jun 2023 22:20:56 +0200
Subject: Input: ads7846 - fix pointer cast warning

From: Arnd Bergmann <arnd@xxxxxxxx>

commit 11ca605653480b2ddc70ec142a0a686796a7fc87 upstream.

The previous bugfix caused a warning on 64-bit builds:

drivers/input/touchscreen/ads7846.c:1126:17: warning: cast to smaller integer type 'u32' (aka 'unsigned int') from 'const void *' [-Wvoid-pointer-to-int-cast]

Change the cast back to something that works on both 32-bit and 64-bit
kernels.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202306100442.jStknDT1-lkp@xxxxxxxxx/
Fixes: 8f7913c04f6a7 ("Input: ads7846 - Fix usage of match data")
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/input/touchscreen/ads7846.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -1123,7 +1123,7 @@ static const struct ads7846_platform_dat
 	if (!pdata)
 		return ERR_PTR(-ENOMEM);
 
-	pdata->model = (u32)device_get_match_data(dev);
+	pdata->model = (uintptr_t)device_get_match_data(dev);
 
 	device_property_read_u16(dev, "ti,vref-delay-usecs",
 				 &pdata->vref_delay_usecs);


Patches currently in stable-queue which might be from arnd@xxxxxxxx are

queue-6.4/drm-nouveau-dispnv50-fix-missing-prototypes-warning.patch
queue-6.4/memstick-r592-make-memstick_debug_get_tpc_name-stati.patch
queue-6.4/arm-orion5x-fix-d2net-gpio-initialization.patch
queue-6.4/input-ads7846-fix-usage-of-match-data.patch
queue-6.4/fs-pipe-reveal-missing-function-protoypes.patch
queue-6.4/powercap-rapl-fix-config_iosf_mbi-dependency.patch
queue-6.4/autofs-use-flexible-array-in-ioctl-structure.patch
queue-6.4/ksmbd-avoid-field-overflow-warning.patch
queue-6.4/media-cec-i2c-ch7322-also-select-regmap.patch
queue-6.4/staging-vchiq_arm-mark-vchiq_platform_init-static.patch
queue-6.4/virt-sevguest-add-config_crypto-dependency.patch
queue-6.4/input-ads7846-fix-pointer-cast-warning.patch
queue-6.4/usb-hide-unused-usbfs_notify_suspend-resume-function.patch
queue-6.4/crypto-marvell-cesa-fix-type-mismatch-warning.patch
queue-6.4/arm-ep93xx-fix-missing-prototype-warnings.patch
queue-6.4/arm-9303-1-kprobes-avoid-missing-declaration-warning.patch
queue-6.4/media-tc358746-select-config_generic_phy.patch
queue-6.4/drm-amd-display-fix-is_timing_changed-prototype.patch
queue-6.4/arm-omap2-fix-missing-tick_broadcast-prototype.patch
queue-6.4/rdma-irdma-avoid-fortify-string-warning-in-irdma_clr.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux