aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2021-09-27 14:13:57 +0200
committerGreg Kroah-Hartman <[email protected]>2021-10-05 15:50:05 +0200
commit42641042c10c757fe10cc09088cf3f436cec5007 (patch)
tree0d69c2e99f798bff8b038354cefbc1754da8cf26 /scripts/gdb/linux/utils.py
parenta3e16937319aea285c64ab5bf8464470afac8dd3 (diff)
cb710: avoid NULL pointer subtraction
clang-14 complains about an unusual way of converting a pointer to an integer: drivers/misc/cb710/sgbuf2.c:50:15: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction] return ((ptr - NULL) & 3) != 0; Replace this with a normal cast to uintptr_t. Fixes: 5f5bac8272be ("mmc: Driver for CB710/720 memory card reader (MMC part)") Cc: stable <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions