driver core: Cast to (void *) with __force for __percpu pointer
[ Upstream commit d7aa44f5 ] 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> Stable-dep-of: bd50a974 ("devres: Fix memory leakage caused by driver API devm_free_percpu()") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading