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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-03-06 16:30:14 -07:00 committed by Jim Harris
parent ba74eaf49f
commit b55d837e7b

View File

@ -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>