agpgart.h: do not include <stdlib.h> from exported header
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 4 Apr 2022 06:19:41 +0000 (15:19 +0900)
committerArnd Bergmann <arnd@arndb.de>
Fri, 13 May 2022 08:56:10 +0000 (10:56 +0200)
commit783eb354fb3dcd598e8e7e8a2ed88c0fb6ce5d2f
tree106bad42fd665d3375573db5b4b438719f0af978
parent3123109284176b1532874591f7c81f3837bbdc17
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>
include/uapi/linux/agpgart.h