Commit 4120d1a
committed
drm: smidrm: ddk750: fix strict-prototypes warning
deepin inclusion
category: other
Just makes clang build happy, no functional change.
Log:
2025-11-19T11:09:53.6529129Z drivers/gpu/drm/smidrm/ddk750/ddk750_2d.c:57:13: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T11:09:53.6530540Z 57 | void deReset()
2025-11-19T11:09:53.6530958Z | ^
2025-11-19T11:09:53.6531401Z | void
2025-11-19T10:09:43.3657557Z drivers/gpu/drm/smidrm/ddk750/ddk750_power.c:72:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T10:09:43.3673893Z 72 | unsigned long getPowerMode()
2025-11-19T10:09:43.3674636Z | ^
2025-11-19T10:09:43.3675615Z | void
2025-11-19T10:09:43.3734385Z 1 error generated.
2025-11-19T09:16:36.1737153Z drivers/gpu/drm/smidrm/ddk750/ddk750_chip.c:64:39: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T09:16:36.1743256Z 64 | logical_chip_type_t ddk750_getChipType()
2025-11-19T09:16:36.1745432Z | ^
2025-11-19T09:16:36.1747272Z | void
2025-11-19T09:16:36.1752477Z drivers/gpu/drm/smidrm/ddk750/ddk750_chip.c:73:35: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T09:16:36.1757687Z 73 | void ddk750_resetFrameBufferMemory()
2025-11-19T09:16:36.1760926Z | ^
2025-11-19T09:16:36.1764285Z CC [M] drivers/gpu/drm/mgag200/mgag200_g200se.o
2025-11-19T09:16:36.1769831Z | void
2025-11-19T09:16:36.1803138Z drivers/gpu/drm/smidrm/ddk750/ddk750_chip.c:205:21: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T09:16:36.1808661Z 205 | long ddk750_initChip()
2025-11-19T09:16:36.1810285Z | ^
2025-11-19T09:16:36.1811231Z | void
2025-11-19T09:16:36.1811780Z 3 errors generated.
2025-11-19T07:49:35.4025494Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:255:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4027365Z 255 | unsigned long getChipClock()
2025-11-19T07:49:35.4028223Z | ^
2025-11-19T07:49:35.4029015Z | void
2025-11-19T07:49:35.4043181Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:379:38: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4073953Z 379 | unsigned long getPrimaryDispCtrlClock()
2025-11-19T07:49:35.4075443Z | ^
2025-11-19T07:49:35.4076477Z | void
2025-11-19T07:49:35.4079714Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:391:40: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4081500Z 391 | unsigned long getSecondaryDispCtrlClock()
2025-11-19T07:49:35.4082170Z | ^
2025-11-19T07:49:35.4082742Z | void
2025-11-19T07:49:35.4084394Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:403:29: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4086711Z 403 | unsigned long getMasterClock()
2025-11-19T07:49:35.4087261Z | ^
2025-11-19T07:49:35.4087781Z | void
2025-11-19T07:49:35.4089267Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:441:29: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4090955Z 441 | unsigned long getMemoryClock()
2025-11-19T07:49:35.4091520Z | ^
2025-11-19T07:49:35.4092057Z | void
2025-11-19T07:49:35.4093569Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:479:37: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4095118Z 479 | unsigned char *getMasterClockDivider()
2025-11-19T07:49:35.4096134Z | ^
2025-11-19T07:49:35.4096784Z | void
2025-11-19T07:49:35.4098342Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:487:41: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4099857Z 487 | unsigned long getTotalMasterClockDivider()
2025-11-19T07:49:35.4100531Z | ^
2025-11-19T07:49:35.4101096Z | void
2025-11-19T07:49:35.4102632Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:498:37: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4104141Z 498 | unsigned char *getMemoryClockDivider()
2025-11-19T07:49:35.4104741Z | ^
2025-11-19T07:49:35.4105297Z | void
2025-11-19T07:49:35.4106877Z drivers/gpu/drm/smidrm/ddk750/ddk750_clock.c:506:41: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2025-11-19T07:49:35.4108577Z 506 | unsigned long getTotalMemoryClockDivider()
2025-11-19T07:49:35.4109191Z | ^
2025-11-19T07:49:35.4109784Z | void
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent 8956ced commit 4120d1a
21 files changed
Lines changed: 60 additions & 60 deletions
File tree
- drivers/gpu/drm/smidrm
- ddk750
- ddk768
- ddk770
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
2590 | 2590 | | |
2591 | 2591 | | |
2592 | 2592 | | |
2593 | | - | |
| 2593 | + | |
2594 | 2594 | | |
2595 | 2595 | | |
2596 | 2596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
| 574 | + | |
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments