diff --git a/Changelog.md b/Changelog.md index 85a28eb..43ae128 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,16 @@ +# 1.2.1 + - Set library version correctly + - Fix test build + +# 1.2.0 +This is mostly a bug fix release, there's no major new feature: + - Fix to support devices names with a hexadecimal domain name + - Allow to override path to read driver info (LIBOCXL_SYSPATH) + - Documentation enhancements + - Makefile/build enhancements + - Add tests for debug AFUs (memcpy, afp) + + # 1.1.0 ## User facing changes - Requires Linux headers >= 4.18 to compile diff --git a/Makefile.vars b/Makefile.vars index a1b4bd4..212ed2e 100644 --- a/Makefile.vars +++ b/Makefile.vars @@ -6,10 +6,10 @@ MAKEFLAGS += -rR VERSION_MAJOR = 1 # Change VERSION_MINOR on new features -VERSION_MINOR = 1 +VERSION_MINOR = 2 # Change VERSION_PATCH on each tag -VERSION_PATCH = 0 +VERSION_PATCH = 1 AR = $(CROSS_COMPILE)ar AS = $(CROSS_COMPILE)as diff --git a/unittests/unittests.c b/unittests/unittests.c index 8d67358..6f45de4 100644 --- a/unittests/unittests.c +++ b/unittests/unittests.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#include "libocxl_internal.h" #include #include #include @@ -24,14 +25,9 @@ #include #include #include - #include - -#include "libocxl_internal.h" #include "static.h" -#include - static const char *ocxl_sysfs_path = "/tmp/ocxl-test"; static const char *ocxl_dev_path = "/dev/ocxl-test"; diff --git a/unittests/virtocxl.c b/unittests/virtocxl.c index c00f1fc..a918b70 100644 --- a/unittests/virtocxl.c +++ b/unittests/virtocxl.c @@ -14,10 +14,10 @@ * limitations under the License. */ +#include "libocxl_internal.h" #include #include #include -#include "libocxl_internal.h" #include #include #include @@ -26,7 +26,6 @@ #include #include #include - #include typedef struct ocxl_kernel_event_header ocxl_kernel_event_header; @@ -193,7 +192,7 @@ bool afu_is_attached() { * @return the thread for the device, or 0 on error */ pthread_t create_ocxl_device(const char *afu_name, size_t global_mmio_size, size_t per_pasid_mmio_size) { - char sysfs_base[PATH_MAX]; + char sysfs_base[PATH_MAX - 20]; char tmp[PATH_MAX]; char buf[BUF_SIZE];