]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit140b73b89a1d557cb1be8e484ad5b3d4ad43ac6c
tree106bad42fd665d3375573db5b4b438719f0af978
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
agpgart.h: do not include <stdlib.h> from exported header

Commit e471a4f16ba6 ("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