update mods.h with public header guidelines

In git, we have moved this header to uapi directory, so that it can be
installed with the headers_install target. It now has to follow
guidelines of well-formed headers usable in userspace programs.

* Update SPDX license header.
* Don't use kernel CONFIG options.

Bug 2657961

Change-Id: Iee2bbfc6c931b5e8c5ee71cef9dfdfbb7f50d114
Signed-off-by: Chris Dragan <kdragan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2310801
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Chris Dragan
2020-03-11 03:28:57 -07:00
committed by Laxman Dewangan
parent 949b226f0e
commit fa93fef9fb
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
*/
/* Note: the original mods.h which contains ioctls is located in
* include/uapi/misc/mods.
* include/uapi/misc/mods.h.
*/
#include <uapi/misc/mods.h>

View File

@@ -1,4 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0 */
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* mods.h - This file is part of NVIDIA MODS kernel driver.
*
@@ -831,7 +831,7 @@ struct MODS_DEVICE_NUMA_INFO_3 {
__u32 node_cpu_mask[MAX_CPU_MASKS_3];
};
#if defined(CONFIG_PPC64) || defined(PPC64LE)
#if defined(__powerpc64__)
#define MAX_CPU_MASKS 64 /* 32 masks of 32bits = 2048 CPUs max */
#else
#define MAX_CPU_MASKS 32 /* 32 masks of 32bits = 1024 CPUs max */