Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136932055
D53842.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
643 B
Referenced Files
None
Subscribers
None
D53842.id.diff
View Options
diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h
--- a/sys/dev/nvme/nvme.h
+++ b/sys/dev/nvme/nvme.h
@@ -29,10 +29,6 @@
#ifndef __NVME_H__
#define __NVME_H__
-#ifdef _KERNEL
-#include <sys/types.h>
-#endif
-
#include <sys/param.h>
#include <sys/endian.h>
#ifndef _KERNEL
@@ -2010,7 +2006,7 @@
_Static_assert(NVME_SERIAL_NUMBER_LENGTH < DISK_IDENT_SIZE,
"NVME serial number too big for disk ident");
- memmove(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGTH);
+ memcpy(sn, cdata->sn, NVME_SERIAL_NUMBER_LENGTH);
sn[NVME_SERIAL_NUMBER_LENGTH] = '\0';
for (int i = 0; sn[i] != '\0'; i++) {
if (sn[i] < 0x20 || sn[i] >= 0x80)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 5:39 PM (21 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25771353
Default Alt Text
D53842.id.diff (643 B)
Attached To
Mode
D53842: nvme: Small cleanups to <dev/nvme/nvme.h>
Attached
Detach File
Event Timeline
Log In to Comment