diff --git a/include/spdk/cpuset.h b/include/spdk/cpuset.h index 153fe0fae0..43f2e73431 100644 --- a/include/spdk/cpuset.h +++ b/include/spdk/cpuset.h @@ -50,7 +50,10 @@ extern "C" { /** * List of CPUs. */ -struct spdk_cpuset; +struct spdk_cpuset { + char str[SPDK_CPUSET_SIZE / 4 + 1]; + uint8_t cpus[SPDK_CPUSET_SIZE / 8]; +}; /** * Allocate CPU set object. diff --git a/lib/util/cpuset.c b/lib/util/cpuset.c index fdcfd71598..8d7c8dc89a 100644 --- a/lib/util/cpuset.c +++ b/lib/util/cpuset.c @@ -34,11 +34,6 @@ #include "spdk/cpuset.h" #include "spdk/log.h" -struct spdk_cpuset { - char str[SPDK_CPUSET_SIZE / 4 + 1]; - uint8_t cpus[SPDK_CPUSET_SIZE / 8]; -}; - struct spdk_cpuset * spdk_cpuset_alloc(void) {