summaryrefslogtreecommitdiffstats
path: root/kernel/ksysfs.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-11-09 17:56:18 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-10 18:58:24 +0100
commit52c4d11f1dce60453ab2a75fd7103118cedb2b58 (patch)
tree65a687ef821c9aa7b3ef7873b0c82bc323467a8a /kernel/ksysfs.c
parent2a4e628570d42fcc13a94f1acf25e3cfeaec08f6 (diff)
downloadlinux-stable-52c4d11f1dce60453ab2a75fd7103118cedb2b58.tar.gz
linux-stable-52c4d11f1dce60453ab2a75fd7103118cedb2b58.tar.bz2
linux-stable-52c4d11f1dce60453ab2a75fd7103118cedb2b58.zip
resource: Convert DEFINE_RES_NAMED() to be compound literal
Currently DEFINE_RES_NAMED() can only be used to fill the static data. In some cases it would be convenient to use it as right value in the assignment operation. But it can't be done as is, because compiler has no clue about the data layout. Converting it to be a compound literal allows the above mentioned usage. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20221109155618.42276-2-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/ksysfs.c')
0 files changed, 0 insertions, 0 deletions