• K
    compiler_types.h: Remove __compiletime_object_size() · c80d92fb
    Kees Cook 提交于
    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/1179Suggested-by: NNick 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: NMiguel Ojeda <ojeda@kernel.org>
    Signed-off-by: NKees Cook <keescook@chromium.org>
    c80d92fb
thread_info.h 6.5 KB