driver core: Cast to (void *) with __force for __percpu pointer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Apr 2021 17:10:30 +0000 (20:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 15:02:39 +0000 (17:02 +0200)
commitd7aa44f5a1f86cb40659eef06035d8d92604b9d5
tree8dc75a9fb7c32a47c8967450dcbbb2c1a30a72f3
parent1768289b44bae847612751d418fc5c5e680b5e5c
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>
drivers/base/devres.c