Skip to content

Commit 669d089

Browse files
committed
Merge tag 'objtool-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fixlet from Ingo Molnar: "Address a GCC-14 warning: there's no real bug, but indeed the calloc order doesn't match the prototype. (Side note: we should really add zalloc() for such cases)" * tag 'objtool-core-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Fix calloc call for new -Walloc-size
2 parents 6cbf5b3 + e2e1363 commit 669d089

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/objtool/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static void init_insn_state(struct objtool_file *file, struct insn_state *state,
291291

292292
static struct cfi_state *cfi_alloc(void)
293293
{
294-
struct cfi_state *cfi = calloc(sizeof(struct cfi_state), 1);
294+
struct cfi_state *cfi = calloc(1, sizeof(struct cfi_state));
295295
if (!cfi) {
296296
WARN("calloc failed");
297297
exit(1);

0 commit comments

Comments
 (0)