Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+1 -1
+1 -1
tools/objtool/check.c
··· 291 291 292 292 static struct cfi_state *cfi_alloc(void) 293 293 { 294 - struct cfi_state *cfi = calloc(sizeof(struct cfi_state), 1); 294 + struct cfi_state *cfi = calloc(1, sizeof(struct cfi_state)); 295 295 if (!cfi) { 296 296 WARN("calloc failed"); 297 297 exit(1);