.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * User-space Probes (UProbes) for x86 |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License as published by |
---|
6 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
7 | | - * (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, write to the Free Software |
---|
16 | | - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
17 | 4 | * |
---|
18 | 5 | * Copyright (C) IBM Corporation, 2008-2011 |
---|
19 | 6 | * Authors: |
---|
.. | .. |
---|
750 | 737 | * OPCODE1() of the "short" jmp which checks the same condition. |
---|
751 | 738 | */ |
---|
752 | 739 | opc1 = OPCODE2(insn) - 0x10; |
---|
| 740 | + fallthrough; |
---|
753 | 741 | default: |
---|
754 | 742 | if (!is_cond_jmp_opcode(opc1)) |
---|
755 | 743 | return -ENOSYS; |
---|
.. | .. |
---|
856 | 844 | |
---|
857 | 845 | /** |
---|
858 | 846 | * arch_uprobe_analyze_insn - instruction analysis including validity and fixups. |
---|
| 847 | + * @auprobe: the probepoint information. |
---|
859 | 848 | * @mm: the probed address space. |
---|
860 | | - * @arch_uprobe: the probepoint information. |
---|
861 | 849 | * @addr: virtual address at which to install the probepoint |
---|
862 | 850 | * Return 0 on success or a -ve number on error. |
---|
863 | 851 | */ |
---|
.. | .. |
---|
906 | 894 | fix_ip_or_call = 0; |
---|
907 | 895 | break; |
---|
908 | 896 | } |
---|
909 | | - /* fall through */ |
---|
| 897 | + fallthrough; |
---|
910 | 898 | default: |
---|
911 | 899 | riprel_analyze(auprobe, &insn); |
---|
912 | 900 | } |
---|
.. | .. |
---|
1091 | 1079 | pr_err("return address clobbered: pid=%d, %%sp=%#lx, %%ip=%#lx\n", |
---|
1092 | 1080 | current->pid, regs->sp, regs->ip); |
---|
1093 | 1081 | |
---|
1094 | | - force_sig(SIGSEGV, current); |
---|
| 1082 | + force_sig(SIGSEGV); |
---|
1095 | 1083 | } |
---|
1096 | 1084 | |
---|
1097 | 1085 | return -1; |
---|