Skip to content

Commit 70e23dd

Browse files
committed
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()
2 parents 695caca + 366fef7 commit 70e23dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const volatile void * __must_check_fn(const volatile void *val)
212212
{ return val; }
213213

214214
#define no_free_ptr(p) \
215-
((typeof(p)) __must_check_fn(__get_and_null(p, NULL)))
215+
((typeof(p)) __must_check_fn((__force const volatile void *)__get_and_null(p, NULL)))
216216

217217
#define return_ptr(p) return no_free_ptr(p)
218218

0 commit comments

Comments
 (0)