mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvidia-t264: Fix missing-prototypes
The compiler option -Wmissing-prototypes is being enabled globally in the upstream Linux kernel and this causes build failures. The build failures occur because either the driver is missing an include file which has the prototype or because the function is not declared statically when it should be (ie. there are no external users). Fix the various build failures that are seen when enabling -Wmissing-prototypes. Bug 4404965 Change-Id: I0f9189250655c3b3006909e51ffe3aca7fbf763b Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-t264/+/3028738 Reviewed-by: Akhil R <akhilrajeev@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <linux/export.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <soc/tegra/mc-t26x.h>
|
||||
|
||||
#define MC_SECURITY_CARVEOUT_BASE 0x9404
|
||||
#define MC_CARVEOUT_NEXT 0xa0
|
||||
|
||||
@@ -719,7 +719,7 @@ static inline void mc_ch_writel(const struct tegra_mcerr *mc_err, int ch,
|
||||
writel_relaxed(value, mc_err->ch_regs[ch] + offset);
|
||||
}
|
||||
|
||||
void log_fault(struct tegra_mcerr *mc_err, u32 channel, unsigned long mcf_ch_intstatus)
|
||||
static void log_fault(struct tegra_mcerr *mc_err, u32 channel, unsigned long mcf_ch_intstatus)
|
||||
{
|
||||
unsigned int bit;
|
||||
|
||||
@@ -818,7 +818,7 @@ void log_fault(struct tegra_mcerr *mc_err, u32 channel, unsigned long mcf_ch_int
|
||||
}
|
||||
|
||||
/* Currently this function only handle MCF interrupts, will extend for other components */
|
||||
irqreturn_t handle_irq(int irq, void *data)
|
||||
static irqreturn_t handle_irq(int irq, void *data)
|
||||
{
|
||||
struct tegra_mcerr *mc_err = data;
|
||||
unsigned long mcf_intstatus, mcf_ch_intstatus;
|
||||
|
||||
Reference in New Issue
Block a user