mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
42641042c1
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:
|
||
---|---|---|
.. | ||
core.c | ||
debug.c | ||
Kconfig | ||
Makefile | ||
sgbuf2.c |