hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/x86/events/intel/bts.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * BTS PMU driver for perf
34 * Copyright (c) 2013-2014, Intel Corporation.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
135 */
146
157 #undef DEBUG
....@@ -23,7 +15,7 @@
2315 #include <linux/device.h>
2416 #include <linux/coredump.h>
2517
26
-#include <asm-generic/sizes.h>
18
+#include <linux/sizes.h>
2719 #include <asm/perf_event.h>
2820
2921 #include "../perf_event.h"
....@@ -66,7 +58,7 @@
6658 local_t head;
6759 unsigned long end;
6860 void **data_pages;
69
- struct bts_phys buf[0];
61
+ struct bts_phys buf[];
7062 };
7163
7264 static struct pmu bts_pmu;
....@@ -599,7 +591,7 @@
599591 * the AUX buffer.
600592 *
601593 * However, since this driver supports per-CPU and per-task inherit
602
- * we cannot use the user mapping since it will not be availble
594
+ * we cannot use the user mapping since it will not be available
603595 * if we're not running the owning process.
604596 *
605597 * With PTI we can't use the kernal map either, because its not