From: Dmitry Osipenko Date: Thu, 27 May 2021 23:54:04 +0000 (+0300) Subject: soc/tegra: fuse: Add stubs needed for compile-testing X-Git-Tag: accepted/tizen/unified/20230118.172025~6846^2~3^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30b44e81772a5caa983000057ce1cd9cb4531647;p=platform%2Fkernel%2Flinux-rpi.git soc/tegra: fuse: Add stubs needed for compile-testing Add missing stubs that will allow Tegra memory driver to be compile-tested by kernel build bots. Signed-off-by: Dmitry Osipenko Signed-off-by: Thierry Reding --- diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 78cbc78..990701f 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -52,14 +52,28 @@ struct tegra_sku_info { enum tegra_revision revision; }; +#ifdef CONFIG_ARCH_TEGRA +extern struct tegra_sku_info tegra_sku_info; u32 tegra_read_straps(void); u32 tegra_read_ram_code(void); int tegra_fuse_readl(unsigned long offset, u32 *value); - -#ifdef CONFIG_ARCH_TEGRA -extern struct tegra_sku_info tegra_sku_info; #else static struct tegra_sku_info tegra_sku_info __maybe_unused; + +static inline u32 tegra_read_straps(void) +{ + return 0; +} + +static inline u32 tegra_read_ram_code(void) +{ + return 0; +} + +static inline int tegra_fuse_readl(unsigned long offset, u32 *value) +{ + return -ENODEV; +} #endif struct device *tegra_soc_device_register(void);