aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-03-14 09:12:28 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2025-03-14 09:12:28 -1000
commit70e23dda3817f8e74f71385e4c24dc891780deca (patch)
tree918f578b278e754e0f347a2dbf207993e70ceef0
parentMerge tag 'leds-fixes-6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/leds (diff)
parent<linux/cleanup.h>: Allow the passing of both iomem and non-iomem pointers to no_free_ptr() (diff)
downloadwireguard-linux-70e23dda3817f8e74f71385e4c24dc891780deca.tar.xz
wireguard-linux-70e23dda3817f8e74f71385e4c24dc891780deca.zip
Merge tag 'core-urgent-2025-03-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fix from Ingo Molnar: "Fix a Sparse false positive warning triggered by no_free_ptr()" * tag 'core-urgent-2025-03-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: <linux/cleanup.h>: Allow the passing of both iomem and non-iomem pointers to no_free_ptr()
Diffstat (limited to '')
-rw-r--r--include/linux/cleanup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cleanup.h b/include/linux/cleanup.h
index ec00e3f7af2b..ee2614adb785 100644
--- a/include/linux/cleanup.h
+++ b/include/linux/cleanup.h
@@ -212,7 +212,7 @@ const volatile void * __must_check_fn(const volatile void *val)
{ return val; }
#define no_free_ptr(p) \
- ((typeof(p)) __must_check_fn(__get_and_null(p, NULL)))
+ ((typeof(p)) __must_check_fn((__force const volatile void *)__get_and_null(p, NULL)))
#define return_ptr(p) return no_free_ptr(p)