mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
Merge tag 'bootconfig-fixes-v7.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull bootconfig fix from Masami Hiramatsu: - bootconfig: give the footer size static_assert a message Add a message to static_assert() macro because it is required for the compiler before C23. This fixes a warning. * tag 'bootconfig-fixes-v7.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: bootconfig: give the footer size static_assert a message
This commit is contained in:
commit
ca3e345926
1 file changed
+2
-1
@@ -495,7 +495,8 @@ static int apply_xbc(const char *path, const char *xbc_path)
|
||||
footer.size = htole32(size);
|
||||
footer.csum = htole32(csum);
|
||||
memcpy(footer.magic, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN);
|
||||
static_assert(sizeof(footer) == BOOTCONFIG_FOOTER_SIZE);
|
||||
static_assert(sizeof(footer) == BOOTCONFIG_FOOTER_SIZE,
|
||||
"bootconfig footer size mismatch");
|
||||
memcpy(data + size, &footer, BOOTCONFIG_FOOTER_SIZE);
|
||||
|
||||
total_size = size + BOOTCONFIG_FOOTER_SIZE;
|
||||
|
||||
Reference in new issue
Block a user