Commit ce4a044
committed
MI: reinstate init_ep and crc32 functions for use in test
Ideally, we would be using the actual implementation of
nvme_mi_init_ep() and nvme_mi_crc32_update for our tests, rather than
open-coding it in the test init.
This change exports nvme_mi_init_ep and nvme_mi_crc32_update from
libnvme-mi.so, but both remain excluded from the headers, as they are
only intended for use in the transport API. This means we can call them
from the tests, but keep somewhat-internal.
We put this into a specific _TEST section of the version script, to keep
separate from the public symbols, and add a comment to suit.
This prevents us from diverging the endpoint init process in our
testcases.
Signed-off-by: Jeremy Kerr <[email protected]>1 parent b7fe911 commit ce4a044
2 files changed
Lines changed: 12 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 33 | | |
46 | 34 | | |
47 | 35 | | |
| |||
70 | 58 | | |
71 | 59 | | |
72 | 60 | | |
73 | | - | |
| 61 | + | |
74 | 62 | | |
75 | 63 | | |
76 | | - | |
77 | | - | |
| 64 | + | |
| 65 | + | |
78 | 66 | | |
79 | 67 | | |
80 | 68 | | |
| |||
101 | 89 | | |
102 | 90 | | |
103 | 91 | | |
104 | | - | |
| 92 | + | |
105 | 93 | | |
106 | | - | |
107 | 94 | | |
108 | 95 | | |
109 | 96 | | |
| |||
0 commit comments