Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

driver core: Cast to (void *) with __force for __percpu pointer

Sparse is not happy:

drivers/base/devres.c:1230:9: warning: cast removes address space '__percpu' of expression

Use __force attribute to make it happy.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210401171030.60527-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
d7aa44f5 1768289b

+1 -1
+1 -1
drivers/base/devres.c
··· 1228 1228 void devm_free_percpu(struct device *dev, void __percpu *pdata) 1229 1229 { 1230 1230 WARN_ON(devres_destroy(dev, devm_percpu_release, devm_percpu_match, 1231 - (void *)pdata)); 1231 + (__force void *)pdata)); 1232 1232 } 1233 1233 EXPORT_SYMBOL_GPL(devm_free_percpu);