Commit c7feff2
drm/vmwgfx: fix kernel-doc warnings in vmwgfx_drv.h
Fix 45+ kernel-doc warnings in vmwgfx_drv.h:
- spell a struct name correctly
- don't have structs between kernel-doc and its struct
- end description of struct members with ':'
- start all kernel-doc lines with " *"
- mark private struct member and enum value with "private:"
- add kernel-doc for enum vmw_dma_map_mode
- add missing struct member comments
- add missing function parameter comments
- convert "/**" to "/*" for non-kernel-doc comments
- add missing "Returns:" comments for several functions
- correct a function parameter name
to eliminate kernel-doc warnings (examples):
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:128 struct vmw_bo; error:
Cannot parse struct or union!
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:151 struct member 'used_prio'
not described in 'vmw_resource'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:151 struct member 'mob_node'
not described in 'vmw_resource'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:199 bad line: SM4 device.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:270 struct member 'private'
not described in 'vmw_res_cache_entry'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:280 Enum value
'vmw_dma_alloc_coherent' not described in enum 'vmw_dma_map_mode'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:280 Enum value
'vmw_dma_map_bind' not described in enum 'vmw_dma_map_mode'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:295 struct member 'addrs'
not described in 'vmw_sg_table'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:295 struct member 'mode'
not described in 'vmw_sg_table'
vmwgfx_drv.h:309: warning: Excess struct member 'num_regions' description
in 'vmw_sg_table'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:402 struct member 'filp'
not described in 'vmw_sw_context'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:732 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:742 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:762 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:887 No description found for
return value of 'vmw_fifo_caps'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:901 No description found for
return value of 'vmw_is_cursor_bypass3_enabled'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:906 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:961 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:996 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1082 cannot understand
function prototype: 'const struct dma_buf_ops vmw_prime_dmabuf_ops;'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1303 struct member 'do_cpy'
not described in 'vmw_diff_cpy'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1385 function parameter 'fmt'
not described in 'VMW_DEBUG_KMS'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1389 This comment starts with
'/**', but isn't a kernel-doc comment.
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1426 function parameter 'vmw'
not described in 'vmw_fifo_mem_read'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1426 No description found for
return value of 'vmw_fifo_mem_read'
Warning: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:1441 function parameter
'fifo_reg' not described in 'vmw_fifo_mem_write'
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Zack Rusin <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent 49973e2 commit c7feff2
1 file changed
Lines changed: 57 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | | - | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
120 | | - | |
| 125 | + | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
199 | | - | |
200 | | - | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| 271 | + | |
268 | 272 | | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
274 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
275 | 283 | | |
276 | 284 | | |
277 | | - | |
278 | | - | |
279 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
280 | 289 | | |
281 | 290 | | |
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
285 | 294 | | |
286 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
287 | 299 | | |
288 | | - | |
| 300 | + | |
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
| |||
353 | 365 | | |
354 | 366 | | |
355 | 367 | | |
| 368 | + | |
356 | 369 | | |
357 | 370 | | |
358 | 371 | | |
| |||
729 | 742 | | |
730 | 743 | | |
731 | 744 | | |
732 | | - | |
| 745 | + | |
733 | 746 | | |
734 | 747 | | |
735 | 748 | | |
| |||
739 | 752 | | |
740 | 753 | | |
741 | 754 | | |
742 | | - | |
| 755 | + | |
743 | 756 | | |
744 | 757 | | |
745 | 758 | | |
| |||
759 | 772 | | |
760 | 773 | | |
761 | 774 | | |
762 | | - | |
| 775 | + | |
763 | 776 | | |
764 | 777 | | |
765 | 778 | | |
| |||
819 | 832 | | |
820 | 833 | | |
821 | 834 | | |
822 | | - | |
| 835 | + | |
823 | 836 | | |
824 | 837 | | |
825 | 838 | | |
| |||
833 | 846 | | |
834 | 847 | | |
835 | 848 | | |
836 | | - | |
| 849 | + | |
837 | 850 | | |
838 | 851 | | |
839 | 852 | | |
| |||
846 | 859 | | |
847 | 860 | | |
848 | 861 | | |
849 | | - | |
| 862 | + | |
850 | 863 | | |
851 | 864 | | |
852 | 865 | | |
| |||
880 | 893 | | |
881 | 894 | | |
882 | 895 | | |
883 | | - | |
| 896 | + | |
884 | 897 | | |
885 | 898 | | |
| 899 | + | |
| 900 | + | |
886 | 901 | | |
887 | 902 | | |
888 | 903 | | |
| |||
893 | 908 | | |
894 | 909 | | |
895 | 910 | | |
896 | | - | |
897 | | - | |
| 911 | + | |
| 912 | + | |
898 | 913 | | |
| 914 | + | |
| 915 | + | |
899 | 916 | | |
900 | 917 | | |
901 | 918 | | |
902 | 919 | | |
903 | 920 | | |
904 | 921 | | |
905 | 922 | | |
906 | | - | |
| 923 | + | |
907 | 924 | | |
908 | 925 | | |
909 | 926 | | |
| |||
927 | 944 | | |
928 | 945 | | |
929 | 946 | | |
930 | | - | |
| 947 | + | |
931 | 948 | | |
932 | 949 | | |
933 | 950 | | |
| |||
939 | 956 | | |
940 | 957 | | |
941 | 958 | | |
942 | | - | |
| 959 | + | |
943 | 960 | | |
944 | 961 | | |
945 | 962 | | |
| |||
951 | 968 | | |
952 | 969 | | |
953 | 970 | | |
954 | | - | |
| 971 | + | |
955 | 972 | | |
956 | 973 | | |
957 | 974 | | |
958 | 975 | | |
959 | 976 | | |
960 | 977 | | |
961 | | - | |
| 978 | + | |
962 | 979 | | |
963 | 980 | | |
964 | 981 | | |
| |||
993 | 1010 | | |
994 | 1011 | | |
995 | 1012 | | |
996 | | - | |
| 1013 | + | |
997 | 1014 | | |
998 | 1015 | | |
999 | 1016 | | |
| |||
1016 | 1033 | | |
1017 | 1034 | | |
1018 | 1035 | | |
1019 | | - | |
| 1036 | + | |
1020 | 1037 | | |
1021 | 1038 | | |
1022 | 1039 | | |
| |||
1048 | 1065 | | |
1049 | 1066 | | |
1050 | 1067 | | |
1051 | | - | |
| 1068 | + | |
1052 | 1069 | | |
1053 | 1070 | | |
1054 | 1071 | | |
| |||
1063 | 1080 | | |
1064 | 1081 | | |
1065 | 1082 | | |
1066 | | - | |
| 1083 | + | |
1067 | 1084 | | |
1068 | 1085 | | |
1069 | 1086 | | |
1070 | 1087 | | |
1071 | 1088 | | |
1072 | 1089 | | |
1073 | | - | |
| 1090 | + | |
1074 | 1091 | | |
1075 | 1092 | | |
1076 | 1093 | | |
1077 | 1094 | | |
1078 | 1095 | | |
1079 | | - | |
| 1096 | + | |
1080 | 1097 | | |
1081 | 1098 | | |
1082 | 1099 | | |
| |||
1292 | 1309 | | |
1293 | 1310 | | |
1294 | 1311 | | |
1295 | | - | |
| 1312 | + | |
1296 | 1313 | | |
1297 | 1314 | | |
1298 | 1315 | | |
| |||
1380 | 1397 | | |
1381 | 1398 | | |
1382 | 1399 | | |
| 1400 | + | |
1383 | 1401 | | |
1384 | 1402 | | |
1385 | 1403 | | |
1386 | 1404 | | |
1387 | 1405 | | |
1388 | 1406 | | |
1389 | | - | |
| 1407 | + | |
1390 | 1408 | | |
1391 | 1409 | | |
1392 | 1410 | | |
| |||
1417 | 1435 | | |
1418 | 1436 | | |
1419 | 1437 | | |
1420 | | - | |
| 1438 | + | |
1421 | 1439 | | |
1422 | 1440 | | |
1423 | 1441 | | |
1424 | 1442 | | |
| 1443 | + | |
| 1444 | + | |
1425 | 1445 | | |
1426 | 1446 | | |
1427 | 1447 | | |
| |||
1431 | 1451 | | |
1432 | 1452 | | |
1433 | 1453 | | |
1434 | | - | |
1435 | | - | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
1436 | 1457 | | |
1437 | 1458 | | |
1438 | 1459 | | |
| |||
0 commit comments