Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / objtool / weak.c
blobd83f607733b047dfb8287a786e21b3766f8de4d1
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (C) 2020 Matt Helsley <mhelsley@vmware.com>
4 * Weak definitions necessary to compile objtool without
5 * some subcommands (e.g. check, orc).
6 */
8 #include <stdbool.h>
9 #include <errno.h>
10 #include <objtool/objtool.h>
12 #define UNSUPPORTED(name) \
13 ({ \
14 fprintf(stderr, "error: objtool: " name " not implemented\n"); \
15 return ENOSYS; \
18 int __weak orc_dump(const char *_objname)
20 UNSUPPORTED("ORC");
23 int __weak orc_create(struct objtool_file *file)
25 UNSUPPORTED("ORC");