.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2017 Josh Poimboeuf <jpoimboe@redhat.com> |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version 2 |
---|
7 | | - * of the License, or (at your option) any later version. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License |
---|
15 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
16 | 4 | */ |
---|
17 | 5 | |
---|
18 | 6 | #include <unistd.h> |
---|
19 | | -#include "orc.h" |
---|
| 7 | +#include <linux/objtool.h> |
---|
| 8 | +#include <asm/orc_types.h> |
---|
| 9 | +#include "objtool.h" |
---|
20 | 10 | #include "warn.h" |
---|
21 | 11 | |
---|
22 | 12 | static const char *reg_name(unsigned int reg) |
---|
.. | .. |
---|
48 | 38 | static const char *orc_type_name(unsigned int type) |
---|
49 | 39 | { |
---|
50 | 40 | switch (type) { |
---|
51 | | - case ORC_TYPE_CALL: |
---|
| 41 | + case UNWIND_HINT_TYPE_CALL: |
---|
52 | 42 | return "call"; |
---|
53 | | - case ORC_TYPE_REGS: |
---|
| 43 | + case UNWIND_HINT_TYPE_REGS: |
---|
54 | 44 | return "regs"; |
---|
55 | | - case ORC_TYPE_REGS_IRET: |
---|
56 | | - return "iret"; |
---|
| 45 | + case UNWIND_HINT_TYPE_REGS_PARTIAL: |
---|
| 46 | + return "regs (partial)"; |
---|
57 | 47 | default: |
---|
58 | 48 | return "?"; |
---|
59 | 49 | } |
---|