lkml.org 
[lkml]   [2021]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] CFI: Move function_nocfi() into compiler.h
Date
On Wed, 2 Jun 2021 16:37:01 +0100, Mark Rutland wrote:
> Currently the common definition of function_nocfi() is provided by
> <linux/mm.h>, and architectures are expected to provide a definition in
> <asm/memory.h>. Due to header dependencies, this can make it hard to use
> function_nocfi() in low-level headers.
>
> As function_nocfi() has no dependency on any mm code, nor on any memory
> definitions, it doesn't need to live in <linux/mm.h> or <asm/memory.h>.
> Generally, it would make more sense for it to live in
> <linux/compiler.h>, where an architecture can override it in
> <asm/compiler.h>.
>
> [...]

Applied to for-next/clang/features, thanks!

[1/1] CFI: Move function_nocfi() into compiler.h
https://git.kernel.org/kees/c/2d35ea27e0df

--
Kees Cook

\
 
 \ /
  Last update: 2021-06-02 20:54    [W:0.068 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site