]> www.infradead.org Git - users/jedix/linux-maple.git/commit
compiler_types.h: Remove __compiletime_object_size()
authorKees Cook <keescook@chromium.org>
Fri, 18 Jun 2021 05:48:05 +0000 (22:48 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 25 Aug 2021 15:38:41 +0000 (08:38 -0700)
commit122b05c65c5d9cada10f13f835ef8c890a3257db
treedfa2efc6107b8790500002b19877d25e350e2a32
parent997b6d17702d1a92b1621b498e811158f4278447
compiler_types.h: Remove __compiletime_object_size()

Since all compilers support __builtin_object_size(), and there is only
one user of __compiletime_object_size, remove it to avoid the needless
indirection. This lets Clang reason about check_copy_size() correctly.

Link: https://github.com/ClangBuiltLinux/linux/issues/1179
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Will Deacon <will@kernel.org>
Cc: Marco Elver <elver@google.com>
Cc: Arvind Sankar <nivedita@alum.mit.edu>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Sami Tolvanen <samitolvanen@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/compiler-gcc.h
include/linux/compiler_types.h
include/linux/thread_info.h