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

Configure Feed

Select the types of activity you want to include in your feed.

agpgart.h: do not include <stdlib.h> from exported header

Commit 35d0f1d54ecd ("include/uapi/linux/agpgart.h: include stdlib.h in
userspace") included <stdlib.h> to fix the unknown size_t error, but
I do not think it is the right fix.

This header already uses __kernel_size_t a few lines below.

Replace the remaining size_t, and stop including <stdlib.h>.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>

authored by

Masahiro Yamada and committed by
Arnd Bergmann
783eb354 31231092

+4 -5
+4 -5
include/uapi/linux/agpgart.h
··· 52 52 53 53 #ifndef __KERNEL__ 54 54 #include <linux/types.h> 55 - #include <stdlib.h> 56 55 57 56 struct agp_version { 58 57 __u16 major; ··· 63 64 __u32 bridge_id; /* bridge vendor/device */ 64 65 __u32 agp_mode; /* mode info of bridge */ 65 66 unsigned long aper_base;/* base of aperture */ 66 - size_t aper_size; /* size of aperture */ 67 - size_t pg_total; /* max pages (swap + system) */ 68 - size_t pg_system; /* max pages (system) */ 69 - size_t pg_used; /* current pages used */ 67 + __kernel_size_t aper_size; /* size of aperture */ 68 + __kernel_size_t pg_total; /* max pages (swap + system) */ 69 + __kernel_size_t pg_system; /* max pages (system) */ 70 + __kernel_size_t pg_used; /* current pages used */ 70 71 } agp_info; 71 72 72 73 typedef struct _agp_setup {