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

driver core: constify devlink class

The devlink class object is never modified and can be made constant.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Acked-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20241014122849.118766-1-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bartosz Golaszewski and committed by
Greg Kroah-Hartman
6b8ab724 eafb1a86

+1 -1
+1 -1
drivers/base/core.c
··· 553 553 } 554 554 EXPORT_SYMBOL_GPL(device_link_wait_removal); 555 555 556 - static struct class devlink_class = { 556 + static const struct class devlink_class = { 557 557 .name = "devlink", 558 558 .dev_groups = devlink_groups, 559 559 .dev_release = devlink_dev_release,