From fa93fef9fb91b0ecf62baa7b45818ebca93bece4 Mon Sep 17 00:00:00 2001 From: Chris Dragan Date: Wed, 11 Mar 2020 03:28:57 -0700 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2310801 Tested-by: mobile promotions Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions --- drivers/misc/mods/mods.h | 2 +- include/uapi/misc/mods.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/mods/mods.h b/drivers/misc/mods/mods.h index 37221e20..b8503e4e 100644 --- a/drivers/misc/mods/mods.h +++ b/drivers/misc/mods/mods.h @@ -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 diff --git a/include/uapi/misc/mods.h b/include/uapi/misc/mods.h index fb54dc07..51adf4b4 100644 --- a/include/uapi/misc/mods.h +++ b/include/uapi/misc/mods.h @@ -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 */