Skip to contentSkip to conversation

core kernel fix

GIT PULL Merged Ingo Molnar 2 participants 2 messages Mar 14, 2025

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core/urgent Git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-2025-03-14

# HEAD: 366fef794bd2b7c2e9df933f6828dd9739bfba84 <linux/cleanup.h>: Allow the passing of both iomem and non-iomem pointers to no_free_ptr()

Fix a Sparse false positive warning triggered by no_free_ptr().

Thanks,

Ingo

------------------>
Ilpo Järvinen (1):
<linux/cleanup.h>: Allow the passing of both iomem and non-iomem pointers to no_free_ptr()

 include/linux/cleanup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cleanup.h +1 -1
index ec00e3f7af2b..ee2614adb785 100644
@@ -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)
 
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 14 Mar 2025 09:59:36 +0100:

The pull request you sent on Fri, 14 Mar 2025 09:59:36 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-2025-03-14

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/70e23dda3817f8e74f71385e4c24dc891780deca

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html