diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-08-19 17:00:00 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:13:07 -0400 |
commit | 5b8a43aeb9cbf6b965f67f6c850382788076325a (patch) | |
tree | ef0f64d82a723311338555b860fe19552497df8d /drivers/gpu | |
parent | e6626254f99be74bdae291a12c3981b996de6409 (diff) |
drm/nouveau: quiet some static-related sparse noise
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
25 files changed, 51 insertions, 47 deletions
diff --git a/drivers/gpu/drm/nouveau/core/core/gpuobj.c b/drivers/gpu/drm/nouveau/core/core/gpuobj.c index 715fd318f234..1f34549aff18 100644 --- a/drivers/gpu/drm/nouveau/core/core/gpuobj.c +++ b/drivers/gpu/drm/nouveau/core/core/gpuobj.c | |||
@@ -139,7 +139,7 @@ struct nouveau_gpuobj_class { | |||
139 | u32 flags; | 139 | u32 flags; |
140 | }; | 140 | }; |
141 | 141 | ||
142 | int | 142 | static int |
143 | _nouveau_gpuobj_ctor(struct nouveau_object *parent, | 143 | _nouveau_gpuobj_ctor(struct nouveau_object *parent, |
144 | struct nouveau_object *engine, | 144 | struct nouveau_object *engine, |
145 | struct nouveau_oclass *oclass, void *data, u32 size, | 145 | struct nouveau_oclass *oclass, void *data, u32 size, |
diff --git a/drivers/gpu/drm/nouveau/core/core/object.c b/drivers/gpu/drm/nouveau/core/core/object.c index f37598e3f5aa..0daab62ea14c 100644 --- a/drivers/gpu/drm/nouveau/core/core/object.c +++ b/drivers/gpu/drm/nouveau/core/core/object.c | |||
@@ -61,7 +61,7 @@ nouveau_object_create_(struct nouveau_object *parent, | |||
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |
63 | 63 | ||
64 | int | 64 | static int |
65 | _nouveau_object_ctor(struct nouveau_object *parent, | 65 | _nouveau_object_ctor(struct nouveau_object *parent, |
66 | struct nouveau_object *engine, | 66 | struct nouveau_object *engine, |
67 | struct nouveau_oclass *oclass, void *data, u32 size, | 67 | struct nouveau_oclass *oclass, void *data, u32 size, |
@@ -91,7 +91,7 @@ nouveau_object_destroy(struct nouveau_object *object) | |||
91 | kfree(object); | 91 | kfree(object); |
92 | } | 92 | } |
93 | 93 | ||
94 | void | 94 | static void |
95 | _nouveau_object_dtor(struct nouveau_object *object) | 95 | _nouveau_object_dtor(struct nouveau_object *object) |
96 | { | 96 | { |
97 | nouveau_object_destroy(object); | 97 | nouveau_object_destroy(object); |
@@ -103,7 +103,7 @@ nouveau_object_init(struct nouveau_object *object) | |||
103 | return 0; | 103 | return 0; |
104 | } | 104 | } |
105 | 105 | ||
106 | int | 106 | static int |
107 | _nouveau_object_init(struct nouveau_object *object) | 107 | _nouveau_object_init(struct nouveau_object *object) |
108 | { | 108 | { |
109 | return nouveau_object_init(object); | 109 | return nouveau_object_init(object); |
@@ -115,7 +115,7 @@ nouveau_object_fini(struct nouveau_object *object, bool suspend) | |||
115 | return 0; | 115 | return 0; |
116 | } | 116 | } |
117 | 117 | ||
118 | int | 118 | static int |
119 | _nouveau_object_fini(struct nouveau_object *object, bool suspend) | 119 | _nouveau_object_fini(struct nouveau_object *object, bool suspend) |
120 | { | 120 | { |
121 | return nouveau_object_fini(object, suspend); | 121 | return nouveau_object_fini(object, suspend); |
diff --git a/drivers/gpu/drm/nouveau/core/core/option.c b/drivers/gpu/drm/nouveau/core/core/option.c index 1b53ebb57af3..62a432ea39e5 100644 --- a/drivers/gpu/drm/nouveau/core/core/option.c +++ b/drivers/gpu/drm/nouveau/core/core/option.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Authors: Ben Skeggs | 22 | * Authors: Ben Skeggs |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <core/os.h> | 25 | #include <core/option.h> |
26 | #include <core/debug.h> | 26 | #include <core/debug.h> |
27 | 27 | ||
28 | /* compares unterminated string 'str' with zero-terminated string 'cmp' */ | 28 | /* compares unterminated string 'str' with zero-terminated string 'cmp' */ |
diff --git a/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nva3.fuc.h b/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nva3.fuc.h index 37d6de3c9d61..c92520f3ed46 100644 --- a/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nva3.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nva3.fuc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | u32 nva3_pcopy_data[] = { | 1 | static u32 nva3_pcopy_data[] = { |
2 | /* 0x0000: ctx_object */ | 2 | /* 0x0000: ctx_object */ |
3 | 0x00000000, | 3 | 0x00000000, |
4 | /* 0x0004: ctx_dma */ | 4 | /* 0x0004: ctx_dma */ |
@@ -183,7 +183,7 @@ u32 nva3_pcopy_data[] = { | |||
183 | 0x00000800, | 183 | 0x00000800, |
184 | }; | 184 | }; |
185 | 185 | ||
186 | u32 nva3_pcopy_code[] = { | 186 | static u32 nva3_pcopy_code[] = { |
187 | /* 0x0000: main */ | 187 | /* 0x0000: main */ |
188 | 0x04fe04bd, | 188 | 0x04fe04bd, |
189 | 0x3517f000, | 189 | 0x3517f000, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nvc0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nvc0.fuc.h index cd879f31bb38..0d98c6c0958d 100644 --- a/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nvc0.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/copy/fuc/nvc0.fuc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | u32 nvc0_pcopy_data[] = { | 1 | static u32 nvc0_pcopy_data[] = { |
2 | /* 0x0000: ctx_object */ | 2 | /* 0x0000: ctx_object */ |
3 | 0x00000000, | 3 | 0x00000000, |
4 | /* 0x0004: ctx_query_address_high */ | 4 | /* 0x0004: ctx_query_address_high */ |
@@ -171,7 +171,7 @@ u32 nvc0_pcopy_data[] = { | |||
171 | 0x00000800, | 171 | 0x00000800, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | u32 nvc0_pcopy_code[] = { | 174 | static u32 nvc0_pcopy_code[] = { |
175 | /* 0x0000: main */ | 175 | /* 0x0000: main */ |
176 | 0x04fe04bd, | 176 | 0x04fe04bd, |
177 | 0x3517f000, | 177 | 0x3517f000, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/crypt/fuc/nv98.fuc.h b/drivers/gpu/drm/nouveau/core/engine/crypt/fuc/nv98.fuc.h index 38676c74e6e0..09962e4210e9 100644 --- a/drivers/gpu/drm/nouveau/core/engine/crypt/fuc/nv98.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/crypt/fuc/nv98.fuc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | uint32_t nv98_pcrypt_data[] = { | 1 | static uint32_t nv98_pcrypt_data[] = { |
2 | /* 0x0000: ctx_dma */ | 2 | /* 0x0000: ctx_dma */ |
3 | /* 0x0000: ctx_dma_query */ | 3 | /* 0x0000: ctx_dma_query */ |
4 | 0x00000000, | 4 | 0x00000000, |
@@ -150,7 +150,7 @@ uint32_t nv98_pcrypt_data[] = { | |||
150 | 0x00000000, | 150 | 0x00000000, |
151 | }; | 151 | }; |
152 | 152 | ||
153 | uint32_t nv98_pcrypt_code[] = { | 153 | static uint32_t nv98_pcrypt_code[] = { |
154 | 0x17f004bd, | 154 | 0x17f004bd, |
155 | 0x0010fe35, | 155 | 0x0010fe35, |
156 | 0xf10004fe, | 156 | 0xf10004fe, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/vga.c b/drivers/gpu/drm/nouveau/core/engine/disp/vga.c index cec2110cc53e..5a1c68474597 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/vga.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/vga.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <core/subdev.h> | 25 | #include <core/subdev.h> |
26 | #include <core/device.h> | 26 | #include <core/device.h> |
27 | #include <subdev/vga.h> | ||
27 | 28 | ||
28 | u8 | 29 | u8 |
29 | nv_rdport(void *obj, int head, u16 port) | 30 | nv_rdport(void *obj, int head, u16 port) |
diff --git a/drivers/gpu/drm/nouveau/core/engine/fifo/base.c b/drivers/gpu/drm/nouveau/core/engine/fifo/base.c index 2a7c13d55aca..bbb43c67c2ae 100644 --- a/drivers/gpu/drm/nouveau/core/engine/fifo/base.c +++ b/drivers/gpu/drm/nouveau/core/engine/fifo/base.c | |||
@@ -132,7 +132,7 @@ _nouveau_fifo_channel_wr32(struct nouveau_object *object, u32 addr, u32 data) | |||
132 | iowrite32_native(data, chan->user + addr); | 132 | iowrite32_native(data, chan->user + addr); |
133 | } | 133 | } |
134 | 134 | ||
135 | int | 135 | static int |
136 | nouveau_fifo_chid(struct nouveau_fifo *priv, struct nouveau_object *object) | 136 | nouveau_fifo_chid(struct nouveau_fifo *priv, struct nouveau_object *object) |
137 | { | 137 | { |
138 | int engidx = nv_hclass(priv) & 0xff; | 138 | int engidx = nv_hclass(priv) & 0xff; |
diff --git a/drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c b/drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c index 55620fbd5c21..b4fd26d8f166 100644 --- a/drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c +++ b/drivers/gpu/drm/nouveau/core/engine/fifo/nv84.c | |||
@@ -319,7 +319,7 @@ nv84_fifo_sclass[] = { | |||
319 | * FIFO context - basically just the instmem reserved for the channel | 319 | * FIFO context - basically just the instmem reserved for the channel |
320 | ******************************************************************************/ | 320 | ******************************************************************************/ |
321 | 321 | ||
322 | int | 322 | static int |
323 | nv84_fifo_context_ctor(struct nouveau_object *parent, | 323 | nv84_fifo_context_ctor(struct nouveau_object *parent, |
324 | struct nouveau_object *engine, | 324 | struct nouveau_object *engine, |
325 | struct nouveau_oclass *oclass, void *data, u32 size, | 325 | struct nouveau_oclass *oclass, void *data, u32 size, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h index a988b8ad00ac..826a7b321937 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/gpcnvc0.fuc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | uint32_t nvc0_grgpc_data[] = { | 1 | static uint32_t nvc0_grgpc_data[] = { |
2 | 0x00000000, | 2 | 0x00000000, |
3 | 0x00000000, | 3 | 0x00000000, |
4 | 0x00000000, | 4 | 0x00000000, |
@@ -150,7 +150,7 @@ uint32_t nvc0_grgpc_data[] = { | |||
150 | 0x08000750, | 150 | 0x08000750, |
151 | }; | 151 | }; |
152 | 152 | ||
153 | uint32_t nvc0_grgpc_code[] = { | 153 | static uint32_t nvc0_grgpc_code[] = { |
154 | 0x03060ef5, | 154 | 0x03060ef5, |
155 | 0x9800d898, | 155 | 0x9800d898, |
156 | 0x86f001d9, | 156 | 0x86f001d9, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h index c5ed307abeb9..db0c0ee5496d 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h +++ b/drivers/gpu/drm/nouveau/core/engine/graph/fuc/hubnvc0.fuc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | uint32_t nvc0_grhub_data[] = { | 1 | static uint32_t nvc0_grhub_data[] = { |
2 | 0x00000000, | 2 | 0x00000000, |
3 | 0x00000000, | 3 | 0x00000000, |
4 | 0x00000000, | 4 | 0x00000000, |
@@ -194,7 +194,7 @@ uint32_t nvc0_grhub_data[] = { | |||
194 | 0x00000000, | 194 | 0x00000000, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | uint32_t nvc0_grhub_code[] = { | 197 | static uint32_t nvc0_grhub_code[] = { |
198 | 0x03090ef5, | 198 | 0x03090ef5, |
199 | 0x9800d898, | 199 | 0x9800d898, |
200 | 0x86f001d9, | 200 | 0x86f001d9, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nv40.c b/drivers/gpu/drm/nouveau/core/engine/graph/nv40.c index 5690fe37d660..8d0021049ec0 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/nv40.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/nv40.c | |||
@@ -75,7 +75,7 @@ nv40_graph_object_ctor(struct nouveau_object *parent, | |||
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
78 | struct nouveau_ofuncs | 78 | static struct nouveau_ofuncs |
79 | nv40_graph_ofuncs = { | 79 | nv40_graph_ofuncs = { |
80 | .ctor = nv40_graph_object_ctor, | 80 | .ctor = nv40_graph_object_ctor, |
81 | .dtor = _nouveau_gpuobj_dtor, | 81 | .dtor = _nouveau_gpuobj_dtor, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c b/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c index 7d30d0287ab2..ab3b9dcaf478 100644 --- a/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c +++ b/drivers/gpu/drm/nouveau/core/engine/graph/nv50.c | |||
@@ -73,7 +73,7 @@ nv50_graph_object_ctor(struct nouveau_object *parent, | |||
73 | return 0; | 73 | return 0; |
74 | } | 74 | } |
75 | 75 | ||
76 | struct nouveau_ofuncs | 76 | static struct nouveau_ofuncs |
77 | nv50_graph_ofuncs = { | 77 | nv50_graph_ofuncs = { |
78 | .ctor = nv50_graph_object_ctor, | 78 | .ctor = nv50_graph_object_ctor, |
79 | .dtor = _nouveau_gpuobj_dtor, | 79 | .dtor = _nouveau_gpuobj_dtor, |
diff --git a/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c b/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c index 9adcefc275fb..1f394a2629e7 100644 --- a/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c +++ b/drivers/gpu/drm/nouveau/core/engine/mpeg/nv31.c | |||
@@ -109,7 +109,7 @@ nv31_mpeg_mthd_dma(struct nouveau_object *object, u32 mthd, void *arg, u32 len) | |||
109 | return 0; | 109 | return 0; |
110 | } | 110 | } |
111 | 111 | ||
112 | struct nouveau_ofuncs | 112 | static struct nouveau_ofuncs |
113 | nv31_mpeg_ofuncs = { | 113 | nv31_mpeg_ofuncs = { |
114 | .ctor = nv31_mpeg_object_ctor, | 114 | .ctor = nv31_mpeg_object_ctor, |
115 | .dtor = _nouveau_gpuobj_dtor, | 115 | .dtor = _nouveau_gpuobj_dtor, |
@@ -119,7 +119,7 @@ nv31_mpeg_ofuncs = { | |||
119 | .wr32 = _nouveau_gpuobj_wr32, | 119 | .wr32 = _nouveau_gpuobj_wr32, |
120 | }; | 120 | }; |
121 | 121 | ||
122 | struct nouveau_omthds | 122 | static struct nouveau_omthds |
123 | nv31_mpeg_omthds[] = { | 123 | nv31_mpeg_omthds[] = { |
124 | { 0x0190, nv31_mpeg_mthd_dma }, | 124 | { 0x0190, nv31_mpeg_mthd_dma }, |
125 | { 0x01a0, nv31_mpeg_mthd_dma }, | 125 | { 0x01a0, nv31_mpeg_mthd_dma }, |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/conn.c b/drivers/gpu/drm/nouveau/core/subdev/bios/conn.c index ac4026cd315f..5ac010efd959 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/conn.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/conn.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #include <subdev/bios.h> | 27 | #include <subdev/bios.h> |
28 | #include <subdev/bios/dcb.h> | 28 | #include <subdev/bios/dcb.h> |
29 | #include <subdev/bios/conn.h> | ||
29 | 30 | ||
30 | u16 | 31 | u16 |
31 | dcb_conntab(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) | 32 | dcb_conntab(struct nouveau_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/mxm/base.c b/drivers/gpu/drm/nouveau/core/subdev/mxm/base.c index 684f39678bf7..93e3ddf7303a 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/mxm/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/mxm/base.c | |||
@@ -210,7 +210,7 @@ mxm_shadow_wmi(struct nouveau_mxm *mxm, u8 version) | |||
210 | } | 210 | } |
211 | #endif | 211 | #endif |
212 | 212 | ||
213 | struct mxm_shadow_h { | 213 | static struct mxm_shadow_h { |
214 | const char *name; | 214 | const char *name; |
215 | bool (*exec)(struct nouveau_mxm *, u8 version); | 215 | bool (*exec)(struct nouveau_mxm *, u8 version); |
216 | } _mxm_shadow[] = { | 216 | } _mxm_shadow[] = { |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c index 0f0d3a5de5c2..d83489c44c3a 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c +++ b/drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c | |||
@@ -34,7 +34,7 @@ struct nv50_vmmgr_priv { | |||
34 | spinlock_t lock; | 34 | spinlock_t lock; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | void | 37 | static void |
38 | nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde, | 38 | nv50_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 pde, |
39 | struct nouveau_gpuobj *pgt[2]) | 39 | struct nouveau_gpuobj *pgt[2]) |
40 | { | 40 | { |
@@ -76,7 +76,7 @@ vm_addr(struct nouveau_vma *vma, u64 phys, u32 memtype, u32 target) | |||
76 | return phys; | 76 | return phys; |
77 | } | 77 | } |
78 | 78 | ||
79 | void | 79 | static void |
80 | nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | 80 | nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, |
81 | struct nouveau_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) | 81 | struct nouveau_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) |
82 | { | 82 | { |
@@ -123,7 +123,7 @@ nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | |||
123 | } | 123 | } |
124 | } | 124 | } |
125 | 125 | ||
126 | void | 126 | static void |
127 | nv50_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | 127 | nv50_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, |
128 | struct nouveau_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) | 128 | struct nouveau_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) |
129 | { | 129 | { |
@@ -137,7 +137,7 @@ nv50_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | |||
137 | } | 137 | } |
138 | } | 138 | } |
139 | 139 | ||
140 | void | 140 | static void |
141 | nv50_vm_unmap(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt) | 141 | nv50_vm_unmap(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt) |
142 | { | 142 | { |
143 | pte <<= 3; | 143 | pte <<= 3; |
@@ -148,7 +148,7 @@ nv50_vm_unmap(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt) | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | 150 | ||
151 | void | 151 | static void |
152 | nv50_vm_flush(struct nouveau_vm *vm) | 152 | nv50_vm_flush(struct nouveau_vm *vm) |
153 | { | 153 | { |
154 | struct nouveau_engine *engine; | 154 | struct nouveau_engine *engine; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c index e48ece297511..44721a4714d1 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c | |||
@@ -34,7 +34,7 @@ struct nvc0_vmmgr_priv { | |||
34 | spinlock_t lock; | 34 | spinlock_t lock; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | void | 37 | static void |
38 | nvc0_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 index, | 38 | nvc0_vm_map_pgt(struct nouveau_gpuobj *pgd, u32 index, |
39 | struct nouveau_gpuobj *pgt[2]) | 39 | struct nouveau_gpuobj *pgt[2]) |
40 | { | 40 | { |
@@ -64,7 +64,7 @@ nvc0_vm_addr(struct nouveau_vma *vma, u64 phys, u32 memtype, u32 target) | |||
64 | return phys; | 64 | return phys; |
65 | } | 65 | } |
66 | 66 | ||
67 | void | 67 | static void |
68 | nvc0_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | 68 | nvc0_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, |
69 | struct nouveau_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) | 69 | struct nouveau_mem *mem, u32 pte, u32 cnt, u64 phys, u64 delta) |
70 | { | 70 | { |
@@ -80,7 +80,7 @@ nvc0_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | |||
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
83 | void | 83 | static void |
84 | nvc0_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | 84 | nvc0_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, |
85 | struct nouveau_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) | 85 | struct nouveau_mem *mem, u32 pte, u32 cnt, dma_addr_t *list) |
86 | { | 86 | { |
@@ -95,7 +95,7 @@ nvc0_vm_map_sg(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | |||
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||
98 | void | 98 | static void |
99 | nvc0_vm_unmap(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt) | 99 | nvc0_vm_unmap(struct nouveau_gpuobj *pgt, u32 pte, u32 cnt) |
100 | { | 100 | { |
101 | pte <<= 3; | 101 | pte <<= 3; |
@@ -132,7 +132,7 @@ nvc0_vm_flush_engine(struct nouveau_subdev *subdev, u64 addr, int type) | |||
132 | spin_unlock_irqrestore(&priv->lock, flags); | 132 | spin_unlock_irqrestore(&priv->lock, flags); |
133 | } | 133 | } |
134 | 134 | ||
135 | void | 135 | static void |
136 | nvc0_vm_flush(struct nouveau_vm *vm) | 136 | nvc0_vm_flush(struct nouveau_vm *vm) |
137 | { | 137 | { |
138 | struct nouveau_vm_pgd *vpgd; | 138 | struct nouveau_vm_pgd *vpgd; |
diff --git a/drivers/gpu/drm/nouveau/nouveau_chan.c b/drivers/gpu/drm/nouveau/nouveau_chan.c index 55dc51c1b92e..3b3791453178 100644 --- a/drivers/gpu/drm/nouveau/nouveau_chan.c +++ b/drivers/gpu/drm/nouveau/nouveau_chan.c | |||
@@ -182,7 +182,7 @@ nouveau_channel_prep(struct nouveau_drm *drm, struct nouveau_cli *cli, | |||
182 | return 0; | 182 | return 0; |
183 | } | 183 | } |
184 | 184 | ||
185 | int | 185 | static int |
186 | nouveau_channel_ind(struct nouveau_drm *drm, struct nouveau_cli *cli, | 186 | nouveau_channel_ind(struct nouveau_drm *drm, struct nouveau_cli *cli, |
187 | u32 parent, u32 handle, u32 engine, | 187 | u32 parent, u32 handle, u32 engine, |
188 | struct nouveau_channel **pchan) | 188 | struct nouveau_channel **pchan) |
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c index 78e54cb8dfbe..e1387bd73d76 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dp.c +++ b/drivers/gpu/drm/nouveau/nouveau_dp.c | |||
@@ -286,7 +286,7 @@ dp_link_train_fini(struct drm_device *dev, struct dp_state *dp) | |||
286 | nouveau_bios_run_init_table(dev, script, dp->dcb, dp->crtc); | 286 | nouveau_bios_run_init_table(dev, script, dp->dcb, dp->crtc); |
287 | } | 287 | } |
288 | 288 | ||
289 | bool | 289 | static bool |
290 | nouveau_dp_link_train(struct drm_encoder *encoder, u32 datarate, | 290 | nouveau_dp_link_train(struct drm_encoder *encoder, u32 datarate, |
291 | struct dp_train_func *func) | 291 | struct dp_train_func *func) |
292 | { | 292 | { |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 4dfc40e3dabe..e26358c79151 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c | |||
@@ -64,7 +64,7 @@ static int nouveau_noaccel = 0; | |||
64 | module_param_named(noaccel, nouveau_noaccel, int, 0400); | 64 | module_param_named(noaccel, nouveau_noaccel, int, 0400); |
65 | 65 | ||
66 | MODULE_PARM_DESC(modeset, "enable driver"); | 66 | MODULE_PARM_DESC(modeset, "enable driver"); |
67 | int nouveau_modeset = -1; | 67 | static int nouveau_modeset = -1; |
68 | module_param_named(modeset, nouveau_modeset, int, 0400); | 68 | module_param_named(modeset, nouveau_modeset, int, 0400); |
69 | 69 | ||
70 | static struct drm_driver driver; | 70 | static struct drm_driver driver; |
@@ -238,7 +238,7 @@ nouveau_drm_probe(struct pci_dev *pdev, const struct pci_device_id *pent) | |||
238 | return 0; | 238 | return 0; |
239 | } | 239 | } |
240 | 240 | ||
241 | int | 241 | static int |
242 | nouveau_drm_load(struct drm_device *dev, unsigned long flags) | 242 | nouveau_drm_load(struct drm_device *dev, unsigned long flags) |
243 | { | 243 | { |
244 | struct pci_dev *pdev = dev->pdev; | 244 | struct pci_dev *pdev = dev->pdev; |
@@ -352,7 +352,7 @@ fail_device: | |||
352 | return ret; | 352 | return ret; |
353 | } | 353 | } |
354 | 354 | ||
355 | int | 355 | static int |
356 | nouveau_drm_unload(struct drm_device *dev) | 356 | nouveau_drm_unload(struct drm_device *dev) |
357 | { | 357 | { |
358 | struct nouveau_drm *drm = nouveau_drm(dev); | 358 | struct nouveau_drm *drm = nouveau_drm(dev); |
@@ -490,7 +490,7 @@ nouveau_drm_resume(struct pci_dev *pdev) | |||
490 | return 0; | 490 | return 0; |
491 | } | 491 | } |
492 | 492 | ||
493 | int | 493 | static int |
494 | nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) | 494 | nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) |
495 | { | 495 | { |
496 | struct pci_dev *pdev = dev->pdev; | 496 | struct pci_dev *pdev = dev->pdev; |
@@ -519,7 +519,7 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv) | |||
519 | return 0; | 519 | return 0; |
520 | } | 520 | } |
521 | 521 | ||
522 | void | 522 | static void |
523 | nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv) | 523 | nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv) |
524 | { | 524 | { |
525 | struct nouveau_cli *cli = nouveau_cli(fpriv); | 525 | struct nouveau_cli *cli = nouveau_cli(fpriv); |
@@ -533,7 +533,7 @@ nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv) | |||
533 | mutex_unlock(&drm->client.mutex); | 533 | mutex_unlock(&drm->client.mutex); |
534 | } | 534 | } |
535 | 535 | ||
536 | void | 536 | static void |
537 | nouveau_drm_postclose(struct drm_device *dev, struct drm_file *fpriv) | 537 | nouveau_drm_postclose(struct drm_device *dev, struct drm_file *fpriv) |
538 | { | 538 | { |
539 | struct nouveau_cli *cli = nouveau_cli(fpriv); | 539 | struct nouveau_cli *cli = nouveau_cli(fpriv); |
diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c index af0cfe81da69..9ca8afdb5549 100644 --- a/drivers/gpu/drm/nouveau/nouveau_irq.c +++ b/drivers/gpu/drm/nouveau/nouveau_irq.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <subdev/mc.h> | 25 | #include <subdev/mc.h> |
26 | 26 | ||
27 | #include "nouveau_drm.h" | 27 | #include "nouveau_drm.h" |
28 | #include "nouveau_irq.h" | ||
28 | #include "nv50_display.h" | 29 | #include "nv50_display.h" |
29 | 30 | ||
30 | void | 31 | void |
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index 8f8f421367bc..7e0ff10a2759 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c | |||
@@ -248,7 +248,7 @@ nouveau_mem_ddr2_mr(struct drm_device *dev, u32 freq, | |||
248 | return 0; | 248 | return 0; |
249 | } | 249 | } |
250 | 250 | ||
251 | uint8_t nv_mem_wr_lut_ddr3[NV_MEM_WR_DDR3_MAX] = { | 251 | static const uint8_t nv_mem_wr_lut_ddr3[NV_MEM_WR_DDR3_MAX] = { |
252 | 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 5, 6, 6, 7, 7, 0, 0}; | 252 | 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 5, 6, 6, 7, 7, 0, 0}; |
253 | 253 | ||
254 | static int | 254 | static int |
@@ -297,9 +297,9 @@ nouveau_mem_ddr3_mr(struct drm_device *dev, u32 freq, | |||
297 | return 0; | 297 | return 0; |
298 | } | 298 | } |
299 | 299 | ||
300 | uint8_t nv_mem_cl_lut_gddr3[NV_MEM_CL_GDDR3_MAX] = { | 300 | static const uint8_t nv_mem_cl_lut_gddr3[NV_MEM_CL_GDDR3_MAX] = { |
301 | 0, 0, 0, 0, 4, 5, 6, 7, 0, 1, 2, 3, 8, 9, 10, 11}; | 301 | 0, 0, 0, 0, 4, 5, 6, 7, 0, 1, 2, 3, 8, 9, 10, 11}; |
302 | uint8_t nv_mem_wr_lut_gddr3[NV_MEM_WR_GDDR3_MAX] = { | 302 | static const uint8_t nv_mem_wr_lut_gddr3[NV_MEM_WR_GDDR3_MAX] = { |
303 | 0, 0, 0, 0, 0, 2, 3, 8, 9, 10, 11, 0, 0, 1, 1, 0, 3}; | 303 | 0, 0, 0, 0, 0, 2, 3, 8, 9, 10, 11, 0, 0, 1, 1, 0, 3}; |
304 | 304 | ||
305 | static int | 305 | static int |
diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c index 030e4b84386c..d2fc121ff861 100644 --- a/drivers/gpu/drm/nouveau/nouveau_ttm.c +++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c | |||
@@ -101,7 +101,7 @@ nouveau_vram_manager_new(struct ttm_mem_type_manager *man, | |||
101 | return 0; | 101 | return 0; |
102 | } | 102 | } |
103 | 103 | ||
104 | void | 104 | static void |
105 | nouveau_vram_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) | 105 | nouveau_vram_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) |
106 | { | 106 | { |
107 | struct nouveau_mm *mm = man->priv; | 107 | struct nouveau_mm *mm = man->priv; |
@@ -176,7 +176,7 @@ nouveau_gart_manager_new(struct ttm_mem_type_manager *man, | |||
176 | return 0; | 176 | return 0; |
177 | } | 177 | } |
178 | 178 | ||
179 | void | 179 | static void |
180 | nouveau_gart_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) | 180 | nouveau_gart_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) |
181 | { | 181 | { |
182 | } | 182 | } |
@@ -248,7 +248,7 @@ nv04_gart_manager_new(struct ttm_mem_type_manager *man, | |||
248 | return 0; | 248 | return 0; |
249 | } | 249 | } |
250 | 250 | ||
251 | void | 251 | static void |
252 | nv04_gart_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) | 252 | nv04_gart_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) |
253 | { | 253 | { |
254 | } | 254 | } |
diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c index 9d455444f958..7bf7d131eee0 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vga.c +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #include "nouveau_drm.h" | 7 | #include "nouveau_drm.h" |
8 | #include "nouveau_acpi.h" | 8 | #include "nouveau_acpi.h" |
9 | #include "nouveau_fbcon.h" | 9 | #include "nouveau_fbcon.h" |
10 | #include "nouveau_vga.h" | ||
10 | 11 | ||
11 | static unsigned int | 12 | static unsigned int |
12 | nouveau_vga_set_decode(void *priv, bool state) | 13 | nouveau_vga_set_decode(void *priv, bool state) |