]> www.infradead.org Git - users/hch/xfs.git/commit
um: Fix -Wmissing-prototypes warnings for __warp_* and foo
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 6 Mar 2024 10:19:25 +0000 (18:19 +0800)
committerRichard Weinberger <richard@nod.at>
Mon, 22 Apr 2024 19:58:48 +0000 (21:58 +0200)
commit49ff7d871242d7fd8adb8a2d8347c5d94dda808b
tree34fdfaeeeea732da8208d45f4c6e868e3452c10d
parent19cf79157309ea3834caf9ef442722f776b93814
um: Fix -Wmissing-prototypes warnings for __warp_* and foo

These functions are not called explicitly. Let's just workaround
the -Wmissing-prototypes warnings by declaring them locally similar
to what was done in arch/x86/kernel/asm-offsets_32.c.

This will address below -Wmissing-prototypes warnings:

./arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for ‘foo’ [-Wmissing-prototypes]
arch/um/os-Linux/main.c:187:7: warning: no previous prototype for ‘__wrap_malloc’ [-Wmissing-prototypes]
arch/um/os-Linux/main.c:208:7: warning: no previous prototype for ‘__wrap_calloc’ [-Wmissing-prototypes]
arch/um/os-Linux/main.c:222:6: warning: no previous prototype for ‘__wrap_free’ [-Wmissing-prototypes]
arch/x86/um/user-offsets.c:17:6: warning: no previous prototype for ‘foo’ [-Wmissing-prototypes]

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/main.c
arch/x86/um/shared/sysdep/kernel-offsets.h
arch/x86/um/user-offsets.c