hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/misc/sgi-gru/grukservices.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SN Platform GRU Driver
34 *
45 * KERNEL SERVICES THAT USE THE GRU
56 *
67 * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
218 */
229
2310 #include <linux/kernel.h>
....@@ -29,6 +16,7 @@
2916 #include <linux/miscdevice.h>
3017 #include <linux/proc_fs.h>
3118 #include <linux/interrupt.h>
19
+#include <linux/sync_core.h>
3220 #include <linux/uaccess.h>
3321 #include <linux/delay.h>
3422 #include <linux/export.h>
....@@ -634,7 +622,7 @@
634622 break;
635623 case CBSS_PAGE_OVERFLOW:
636624 STAT(mesq_noop_page_overflow);
637
- /* fallthru */
625
+ fallthrough;
638626 default:
639627 BUG();
640628 }
....@@ -792,7 +780,7 @@
792780 break;
793781 case CBSS_PAGE_OVERFLOW:
794782 STAT(mesq_page_overflow);
795
- /* fallthru */
783
+ fallthrough;
796784 default:
797785 BUG();
798786 }