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:
Warner Losh
2025-11-25 09:10:23 -07:00
parent bc3b72ff48
commit 301b8a806f
+4 -7
View File
@@ -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;