Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

add intptr_t

Add signed intptr_t given that a) it is standard type and b) uintptr_t is
in tree.

Link: https://lkml.kernel.org/r/ed66b9e4-1fb7-45be-9bb9-d4bc291c691f@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Alexey Dobriyan and committed by
Andrew Morton
3db55767 9e627588

+1 -21
-3
arch/mips/include/asm/fw/cfe/cfe_api.h
··· 17 17 #include <linux/types.h> 18 18 #include <linux/string.h> 19 19 20 - typedef long intptr_t; 21 - 22 - 23 20 /* 24 21 * Constants 25 22 */
+1
include/linux/types.h
··· 35 35 typedef __kernel_gid16_t gid16_t; 36 36 37 37 typedef unsigned long uintptr_t; 38 + typedef long intptr_t; 38 39 39 40 #ifdef CONFIG_HAVE_UID16 40 41 /* This is defined by include/asm-{arch}/posix_types.h */
-18
lib/zstd/common/zstd_deps.h
··· 105 105 106 106 #endif /* ZSTD_DEPS_IO */ 107 107 #endif /* ZSTD_DEPS_NEED_IO */ 108 - 109 - /* 110 - * Only requested when MSAN is enabled. 111 - * Need: 112 - * intptr_t 113 - */ 114 - #ifdef ZSTD_DEPS_NEED_STDINT 115 - #ifndef ZSTD_DEPS_STDINT 116 - #define ZSTD_DEPS_STDINT 117 - 118 - /* 119 - * The Linux Kernel doesn't provide intptr_t, only uintptr_t, which 120 - * is an unsigned long. 121 - */ 122 - typedef long intptr_t; 123 - 124 - #endif /* ZSTD_DEPS_STDINT */ 125 - #endif /* ZSTD_DEPS_NEED_STDINT */