From: Tom Rini Date: Wed, 1 Oct 2025 20:30:55 +0000 (-0600) Subject: spl: spl_sata: Add __maybe_unused decorator X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a574f8a3e504bed1baaef00c6ba1ac395e43be43;p=thirdparty%2Fu-boot.git spl: spl_sata: Add __maybe_unused decorator It is possible that we will not have enabled the options to call spl_sata_load_image_raw so use the __maybe_unused decorator to silence the compiler warning. Signed-off-by: Tom Rini --- diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index 67fc620d9be..09f94e662fc 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -14,10 +14,12 @@ #include #include #include +#include -static int spl_sata_load_image_raw(struct spl_image_info *spl_image, - struct spl_boot_device *bootdev, - struct blk_desc *stor_dev, unsigned long sector) +static int __maybe_unused spl_sata_load_image_raw(struct spl_image_info *spl_image, + struct spl_boot_device *bootdev, + struct blk_desc *stor_dev, + unsigned long sector) { struct legacy_img_hdr *header; unsigned long count;