mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
platform: dce: fix missing static declarations
Fix sparse errors for static declaration. Update functions and variables defined and used in the same source files with static declaration. Bug 3646321 Change-Id: I378b0f514aedf265420c2eb454691e85c378cd95 Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2846452 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Arun Swain <arswain@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Ketan Patil <ketanp@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -386,7 +386,7 @@ static void (*const ast_master_addr_fn[MAX_NO_ASTS][MAX_AST_REGIONS])
|
||||
*
|
||||
* Ruturns 64 bit mask.
|
||||
*/
|
||||
u64 dce_get_fw_ast_reg_mask(struct tegra_dce *d)
|
||||
static u64 dce_get_fw_ast_reg_mask(struct tegra_dce *d)
|
||||
{
|
||||
struct dce_firmware *fw = d->fw_data;
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ void dce_bootstrap_work_fn(struct tegra_dce *d)
|
||||
*
|
||||
* Return : Void
|
||||
*/
|
||||
void dce_handle_irq_status(struct tegra_dce *d, u32 status)
|
||||
static void dce_handle_irq_status(struct tegra_dce *d, u32 status)
|
||||
{
|
||||
|
||||
if (status & DCE_IRQ_LOG_OVERFLOW)
|
||||
@@ -274,7 +274,7 @@ void dce_handle_irq_status(struct tegra_dce *d, u32 status)
|
||||
*
|
||||
* Return : Void
|
||||
*/
|
||||
void dce_bootstrap_handle_boot_status(struct tegra_dce *d, u32 status)
|
||||
static void dce_bootstrap_handle_boot_status(struct tegra_dce *d, u32 status)
|
||||
{
|
||||
int ret = 0;
|
||||
dce_mailbox_store_interface_status(d, status,
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#define DCE_CLIENT_IPC_HANDLE_INVALID 0U
|
||||
#define DCE_CLIENT_IPC_HANDLE_VALID ((u32)BIT(31))
|
||||
|
||||
struct tegra_dce_client_ipc client_handles[DCE_CLIENT_IPC_TYPE_MAX];
|
||||
static struct tegra_dce_client_ipc client_handles[DCE_CLIENT_IPC_TYPE_MAX];
|
||||
|
||||
static uint32_t dce_interface_type_map[DCE_CLIENT_IPC_TYPE_MAX] = {
|
||||
[DCE_CLIENT_IPC_TYPE_CPU_RM] = DCE_IPC_TYPE_DISPRM,
|
||||
@@ -63,7 +63,7 @@ out:
|
||||
return valid;
|
||||
}
|
||||
|
||||
struct tegra_dce_client_ipc *dce_client_ipc_lookup_handle(u32 handle)
|
||||
static struct tegra_dce_client_ipc *dce_client_ipc_lookup_handle(u32 handle)
|
||||
{
|
||||
struct tegra_dce_client_ipc *cl = NULL;
|
||||
|
||||
|
||||
@@ -621,7 +621,7 @@ void dce_remove_debug(struct tegra_dce *d)
|
||||
d_dev->debugfs = NULL;
|
||||
}
|
||||
|
||||
int dump_hsp_regs_show(struct seq_file *s, void *unused)
|
||||
static int dump_hsp_regs_show(struct seq_file *s, void *unused)
|
||||
{
|
||||
u8 i = 0;
|
||||
struct tegra_dce *d = s->private;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <dce-util-common.h>
|
||||
#include <interface/dce-interface.h>
|
||||
|
||||
struct dce_ipc_signal_instance *mb_signals[DCE_NUM_MBOX_REGS];
|
||||
static struct dce_ipc_signal_instance *mb_signals[DCE_NUM_MBOX_REGS];
|
||||
|
||||
static void dce_ipc_mbox_notify(struct tegra_dce *d,
|
||||
struct dce_ipc_signal_instance *s)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/dce_events.h>
|
||||
|
||||
struct dce_ipc_channel ivc_channels[DCE_IPC_CH_KMD_TYPE_MAX] = {
|
||||
static struct dce_ipc_channel ivc_channels[DCE_IPC_CH_KMD_TYPE_MAX] = {
|
||||
[DCE_IPC_CH_KMD_TYPE_ADMIN] = {
|
||||
.flags = DCE_IPC_CHANNEL_VALID
|
||||
| DCE_IPC_CHANNEL_MSG_HEADER,
|
||||
|
||||
@@ -301,7 +301,7 @@ static int dce_pm_resume(struct device *dev)
|
||||
return dce_pm_exit_sc7(d);
|
||||
}
|
||||
|
||||
const struct dev_pm_ops dce_pm_ops = {
|
||||
static const struct dev_pm_ops dce_pm_ops = {
|
||||
.suspend = dce_pm_suspend,
|
||||
.resume = dce_pm_resume,
|
||||
};
|
||||
|
||||
@@ -117,7 +117,7 @@ bool dce_io_valid_reg(struct tegra_dce *d, u32 r)
|
||||
void *dce_kzalloc(struct tegra_dce *d, size_t size, bool dma_flag)
|
||||
{
|
||||
void *alloc;
|
||||
u32 flags = GFP_KERNEL;
|
||||
gfp_t flags = GFP_KERNEL;
|
||||
|
||||
if (dma_flag)
|
||||
flags |= __GFP_DMA;
|
||||
@@ -628,7 +628,7 @@ void dce_schedule_work(struct dce_work_struct *work)
|
||||
*
|
||||
* Return : void
|
||||
*/
|
||||
void dce_work_handle_fn(struct work_struct *work)
|
||||
static void dce_work_handle_fn(struct work_struct *work)
|
||||
{
|
||||
struct dce_work_struct *dce_work = container_of(work,
|
||||
struct dce_work_struct,
|
||||
|
||||
Reference in New Issue
Block a user