Commit 8cea95b
committed
tools: ynl-gen: handle do ops with no input attrs
The code supports dumps with no input attributes currently
thru a combination of special-casing and luck.
Clean up the handling of ops with no inputs. Create empty
Structs, and skip printing of empty types.
This makes dos with no inputs work.
Tested-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Link: https://lore.kernel.org/r/20231006135032.3328523-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent a4cd2f3 commit 8cea95b
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1047 | 1049 | | |
1048 | 1050 | | |
1049 | 1051 | | |
| |||
1752 | 1754 | | |
1753 | 1755 | | |
1754 | 1756 | | |
| 1757 | + | |
| 1758 | + | |
1755 | 1759 | | |
1756 | 1760 | | |
1757 | 1761 | | |
| |||
1773 | 1777 | | |
1774 | 1778 | | |
1775 | 1779 | | |
| 1780 | + | |
| 1781 | + | |
1776 | 1782 | | |
1777 | 1783 | | |
1778 | 1784 | | |
| |||
2515 | 2521 | | |
2516 | 2522 | | |
2517 | 2523 | | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
| 2524 | + | |
| 2525 | + | |
2521 | 2526 | | |
2522 | 2527 | | |
2523 | 2528 | | |
| |||
0 commit comments