From e7c4c2890b96b8af8ec9911e9527532355dca56b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Nov 2025 16:54:04 +0100 Subject: [PATCH 1/2] build: mark repo as safe for git Avoid the build script to fail. Signed-off-by: Daniel Wagner --- .github/workflows/coverage.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f2c31cdb08..cdcde6d984 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,6 +15,8 @@ jobs: image: ghcr.io/linux-nvme/debian.python:latest steps: - uses: actions/checkout@v5 + - name: Mark repo as safe for git + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: build run: | scripts/build.sh coverage From 9151ad0527f7b511defc4a8f38f0e4b3f95ebf6e Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Nov 2025 16:58:34 +0100 Subject: [PATCH 2/2] libnvme/mi: always initialize timeout_save The compiler is not able to track the lifetime of the variable correctly and fails sometimes to compile because it thinks the variable is not properly initialized when used. Signed-off-by: Daniel Wagner --- libnvme/src/nvme/mi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnvme/src/nvme/mi.c b/libnvme/src/nvme/mi.c index c988dbc52f..594794060d 100644 --- a/libnvme/src/nvme/mi.c +++ b/libnvme/src/nvme/mi.c @@ -874,7 +874,7 @@ int nvme_mi_admin_admin_passthru(struct nvme_transport_handle *hdl, __u8 opcode, struct nvme_mi_admin_req_hdr req_hdr; struct nvme_mi_resp resp; struct nvme_mi_req req; - unsigned int timeout_save; + unsigned int timeout_save = 0; int rc; int direction = opcode & 0x3; bool has_write_data = false;