Skip to content

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Jul 15, 2025

Fix:

btrfs.c: In function ‘unpack_root_item’:
btrfs.c:25:9: error: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
   25 |         memcpy(dst->uuid, src->uuid, BTRFS_UUID_SIZE);
      |         ^~~~~~
btrfs.c:23:1: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
   22 | #include "btrfs.h"
  +++ |+#include <string.h>
   23 |
btrfs.c:25:9: warning: incompatible implicit declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
   25 |         memcpy(dst->uuid, src->uuid, BTRFS_UUID_SIZE);
      |         ^~~~~~
btrfs.c:25:9: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’

Fix containerd/containerd issue 12094

```
btrfs.c: In function ‘unpack_root_item’:
btrfs.c:25:9: error: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
   25 |         memcpy(dst->uuid, src->uuid, BTRFS_UUID_SIZE);
      |         ^~~~~~
btrfs.c:23:1: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
   22 | #include "btrfs.h"
  +++ |+#include <string.h>
   23 |
btrfs.c:25:9: warning: incompatible implicit declaration of built-in function ‘memcpy’ [-Wbuiltin-declaration-mismatch]
   25 |         memcpy(dst->uuid, src->uuid, BTRFS_UUID_SIZE);
      |         ^~~~~~
btrfs.c:25:9: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
```

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda

This comment was marked as resolved.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda force-pushed the fix-containerd-12094 branch from 03088a1 to 4786a77 Compare July 15, 2025 05:59
project-checks no longer works with an old Go

```
get "golang.org/x/sys/unix": found meta tag vcs.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
golang.org/x/sys (download)
package slices: unrecognized import path "slices": import path does not begin with hostname
```

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda force-pushed the fix-containerd-12094 branch from 4786a77 to 3fb5c91 Compare July 15, 2025 06:02
@estesp estesp merged commit 62700b4 into containerd:release/1.0 Jul 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants