From: Marek Vasut Date: Fri, 8 May 2026 12:21:21 +0000 (+0200) Subject: nvme: Staticize and constify driver ops X-Git-Tag: v2026.07-rc3~9^2~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=4e91d9ff3324866d5cdfc0bc73e3382ce6fcc3d7;p=thirdparty%2Fu-boot.git nvme: Staticize and constify driver ops Set the ops structure as static const. The structure is not accessible from outside of this driver and is not going to be modified at runtime. Signed-off-by: Marek Vasut Reviewed-by: Neil Armstrong Link: https://patch.msgid.link/20260508122128.512798-1-marek.vasut+renesas@mailbox.org Signed-off-by: Neil Armstrong --- diff --git a/drivers/nvme/nvme-uclass.c b/drivers/nvme/nvme-uclass.c index 44c88ad27f3..4ab9567450f 100644 --- a/drivers/nvme/nvme-uclass.c +++ b/drivers/nvme/nvme-uclass.c @@ -44,7 +44,7 @@ UCLASS_DRIVER(nvme) = { .id = UCLASS_NVME, }; -struct bootdev_ops nvme_bootdev_ops = { +static const struct bootdev_ops nvme_bootdev_ops = { }; static const struct udevice_id nvme_bootdev_ids[] = {