nvme: Minor style(9) fixes
<sys/systm.h> needs to be first after <sys/param.h>. And we don't need
both sys/param.h and sys/types.h.
Fixes: 032fbda024
Sponsored by: Netflix
This commit is contained in:
+4
-7
@@ -29,15 +29,13 @@
|
||||
#ifndef __NVME_H__
|
||||
#define __NVME_H__
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/endian.h>
|
||||
#ifndef _KERNEL
|
||||
#ifdef _KERNEL
|
||||
#include <sys/systm.h>
|
||||
#else
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
#include <sys/endian.h>
|
||||
|
||||
struct sbuf;
|
||||
|
||||
@@ -1909,7 +1907,6 @@ void nvme_sc_sbuf(const struct nvme_completion *cpl, struct sbuf *sbuf);
|
||||
void nvme_strvis(uint8_t *dst, const uint8_t *src, int dstlen, int srclen);
|
||||
|
||||
#ifdef _KERNEL
|
||||
#include <sys/systm.h>
|
||||
#include <sys/disk.h>
|
||||
|
||||
struct bio;
|
||||
|
||||
Reference in New Issue
Block a user