Skip to content

Commit db4aa1f

Browse files
authored
Merge pull request #379 from igaw/fix-libnvme-mi-build
ioctl: Add inline to nvme_identify_cns_nsid and nvme_get_log_ana
2 parents bbee294 + 2b30854 commit db4aa1f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/nvme/ioctl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ struct nvme_identify_args {
476476
*/
477477
int nvme_identify(struct nvme_identify_args *args);
478478

479-
static int nvme_identify_cns_nsid(int fd, enum nvme_identify_cns cns,
480-
__u32 nsid, void *data)
479+
static inline int nvme_identify_cns_nsid(int fd, enum nvme_identify_cns cns,
480+
__u32 nsid, void *data)
481481
{
482482
struct nvme_identify_args args = {
483483
.result = NULL,
@@ -1689,8 +1689,8 @@ static inline int nvme_get_log_predictable_lat_event(int fd, bool rae,
16891689
* Return: The nvme command status if a response was received (see
16901690
* &enum nvme_status_field) or -1 with errno set otherwise.
16911691
*/
1692-
static int nvme_get_log_ana(int fd, enum nvme_log_ana_lsp lsp, bool rae,
1693-
__u64 offset, __u32 len, void *log)
1692+
static inline int nvme_get_log_ana(int fd, enum nvme_log_ana_lsp lsp, bool rae,
1693+
__u64 offset, __u32 len, void *log)
16941694
{
16951695
struct nvme_get_log_args args = {
16961696
.lpo = offset,

0 commit comments

Comments
 (0)