Commit f46f0fb
committed
drm: smidrm: ddk750: fix strict-prototypes warning
deepin inclusion
category: other
Just makes clang build happy, no functional change.
Log:
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 f46f0fb
3 files changed
Lines changed: 13 additions & 13 deletions
| 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 | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments