drm/rockchip: fix compile warning

warning: no previous prototype for xxx [-Wmissing-prototypes]

Change-Id: I81eeedab887e4a21133510bce81269fb0b337ab1
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2018-05-07 18:16:00 +08:00
committed by Tao Huang
parent 316be12901
commit e5a28d253f
3 changed files with 9 additions and 9 deletions

View File

@@ -443,9 +443,9 @@ of_parse_display_resource(struct drm_device *drm_dev, struct device_node *route)
return set;
}
int setup_initial_state(struct drm_device *drm_dev,
struct drm_atomic_state *state,
struct rockchip_drm_mode_set *set)
static int setup_initial_state(struct drm_device *drm_dev,
struct drm_atomic_state *state,
struct rockchip_drm_mode_set *set)
{
struct rockchip_drm_private *priv = drm_dev->dev_private;
struct drm_connector *connector = set->connector;
@@ -1630,7 +1630,7 @@ static void rockchip_drm_postclose(struct drm_device *dev, struct drm_file *file
file->driver_priv = NULL;
}
void rockchip_drm_lastclose(struct drm_device *dev)
static void rockchip_drm_lastclose(struct drm_device *dev)
{
struct rockchip_drm_private *priv = dev->dev_private;

View File

@@ -317,9 +317,9 @@ void rockchip_drm_atomic_work(struct work_struct *work)
private->commit = NULL;
}
int rockchip_drm_atomic_commit(struct drm_device *dev,
struct drm_atomic_state *state,
bool async)
static int rockchip_drm_atomic_commit(struct drm_device *dev,
struct drm_atomic_state *state,
bool async)
{
struct rockchip_drm_private *private = dev->dev_private;
struct rockchip_atomic_commit *commit;

View File

@@ -1789,7 +1789,7 @@ static const struct drm_plane_helper_funcs plane_helper_funcs = {
.atomic_disable = vop_plane_atomic_disable,
};
void vop_atomic_plane_reset(struct drm_plane *plane)
static void vop_atomic_plane_reset(struct drm_plane *plane)
{
struct vop_win *win = to_vop_win(plane);
struct vop_plane_state *vop_plane_state =
@@ -1809,7 +1809,7 @@ void vop_atomic_plane_reset(struct drm_plane *plane)
plane->state->plane = plane;
}
struct drm_plane_state *
static struct drm_plane_state *
vop_atomic_plane_duplicate_state(struct drm_plane *plane)
{
struct vop_plane_state *old_vop_plane_state;