Skip to content

Commit 27fc4f1

Browse files
Sachin Kamatairlied
authored andcommitted
drm: Add missing static storage class specifiers in drm_proc.c file
Fixes the following sparse warning: drivers/gpu/drm/drm_proc.c:92:5: warning: symbol 'drm_proc_create_files' was not declared. Should it be static? drivers/gpu/drm/drm_proc.c:175:5: warning: symbol 'drm_proc_remove_files' was not declared. Should it be static? Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent d5c2c20 commit 27fc4f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/drm_proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static const struct file_operations drm_proc_fops = {
8989
* Create a given set of proc files represented by an array of
9090
* gdm_proc_lists in the given root directory.
9191
*/
92-
int drm_proc_create_files(struct drm_info_list *files, int count,
92+
static int drm_proc_create_files(struct drm_info_list *files, int count,
9393
struct proc_dir_entry *root, struct drm_minor *minor)
9494
{
9595
struct drm_device *dev = minor->dev;
@@ -172,7 +172,7 @@ int drm_proc_init(struct drm_minor *minor, int minor_id,
172172
return 0;
173173
}
174174

175-
int drm_proc_remove_files(struct drm_info_list *files, int count,
175+
static int drm_proc_remove_files(struct drm_info_list *files, int count,
176176
struct drm_minor *minor)
177177
{
178178
struct list_head *pos, *q;

0 commit comments

Comments
 (0)