forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/misc/sgi-gru/grutables.h
....@@ -1,23 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * SN Platform GRU Driver
34 *
45 * GRU DRIVER TABLES, MACROS, externs, etc
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 #ifndef __GRUTABLES_H__
....@@ -320,10 +307,8 @@
320307
321308 struct gru_mm_struct {
322309 struct mmu_notifier ms_notifier;
323
- atomic_t ms_refcnt;
324310 spinlock_t ms_asid_lock; /* protects ASID assignment */
325311 atomic_t ms_range_active;/* num range_invals active */
326
- char ms_released;
327312 wait_queue_head_t ms_wait_queue;
328313 DECLARE_BITMAP(ms_asidmap, GRU_MAX_GRUS);
329314 struct gru_mm_tracker ms_asids[GRU_MAX_GRUS];
....@@ -387,7 +372,7 @@
387372 int ts_data_valid; /* Indicates if ts_gdata has
388373 valid data */
389374 struct gru_gseg_statistics ustats; /* User statistics */
390
- unsigned long ts_gdata[0]; /* save area for GRU data (CB,
375
+ unsigned long ts_gdata[]; /* save area for GRU data (CB,
391376 DS, CBE) */
392377 };
393378