Commit b55d837e authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

nvme: only include x86intrin.h for x86 platforms



The actual uses of intrinsics are already guarded by feature-specific
ifdefs in nvme_pcie_copy_command(), but the header itself should also
only be included when it will actually be needed.

Change-Id: Ife65d6432b8dfd9d9db80fe4e385ab76491874c0
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent ba74eaf4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -46,7 +46,10 @@
#include <string.h>
#include <time.h>
#include <unistd.h>

#if defined(__i386__) || defined(__x86_64__)
#include <x86intrin.h>
#endif

#include <sys/user.h>