mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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 <trini@konsulko.com>
This commit is contained in:
@@ -14,10 +14,12 @@
|
||||
#include <errno.h>
|
||||
#include <fat.h>
|
||||
#include <image.h>
|
||||
#include <linux/compiler.h>
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user