perf cpumap: Rename empty functions
[linux-2.6-block.git] / tools / objtool / weak.c
CommitLineData
0decf1f8
MH
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 */
7
8#include <stdbool.h>
9#include <errno.h>
7786032e 10#include <objtool/objtool.h>
0decf1f8 11
0decf1f8
MH
12#define UNSUPPORTED(name) \
13({ \
14 fprintf(stderr, "error: objtool: " name " not implemented\n"); \
15 return ENOSYS; \
16})
17
d44becb9 18int __weak check(struct objtool_file *file)
0decf1f8
MH
19{
20 UNSUPPORTED("check subcommand");
21}
22
23int __weak orc_dump(const char *_objname)
24{
25 UNSUPPORTED("orc");
26}
27
ab4e0744 28int __weak orc_create(struct objtool_file *file)
0decf1f8
MH
29{
30 UNSUPPORTED("orc");
31}