hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/misc/cxl/main.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2014 IBM Corp.
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
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #include <linux/spinlock.h>
....@@ -22,6 +18,7 @@
2218 #include <linux/sched/task.h>
2319
2420 #include <asm/cputable.h>
21
+#include <asm/mmu.h>
2522 #include <misc/cxl-base.h>
2623
2724 #include "cxl.h"
....@@ -319,6 +316,9 @@
319316 {
320317 int rc = 0;
321318
319
+ if (!tlbie_capable)
320
+ return -EINVAL;
321
+
322322 if ((rc = cxl_file_init()))
323323 return rc;
324324