exec: only build read_code when needed
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jun 2020 04:42:40 +0000 (21:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 8 Jun 2020 18:05:58 +0000 (11:05 -0700)
commit48304f7994d74ef8fddde3ff27ce41aa61453d39
tree6cc168311b6600036c1f9595361018d644c4e05b
parenta1e81f9654eef650d3ee35c94a8cab00b5cd379c
exec: only build read_code when needed

Only build read_code when binary formats that use it are built into the
kernel.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Link: http://lkml.kernel.org/r/20200515143646.3857579-26-hch@lst.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c