Commit 11f4d6f
nvmf: fix generator emitting setters for read-only members in .ld files
generate_ld() always emitted both getter and setter entries regardless
of the member's is_const flag, unlike generate_hdr() and generate_src()
which both gate the setter on not is_const. As a result, accessors.ld
exported setter symbols that had no __public definition in accessors.c.
Also introduce LD_BANNER (a compact copyright block without the ASCII
art) for generated .ld files, since the "Generated Code" art is only
useful in .h/.c files that editors open regularly.
Regenerate accessors.ld to remove the spurious setter entries and
update the banner.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Martin Belanger <[email protected]>1 parent 5403c60 commit 11f4d6f
2 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
| |||
500 | 510 | | |
501 | 511 | | |
502 | 512 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
507 | 516 | | |
508 | 517 | | |
509 | 518 | | |
| |||
656 | 665 | | |
657 | 666 | | |
658 | 667 | | |
659 | | - | |
| 668 | + | |
660 | 669 | | |
661 | 670 | | |
662 | 671 | | |
| |||
0 commit comments