m68k: Use BUILD_BUG for passing invalid sizes to get_user/put_user
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Sep 2021 07:04:02 +0000 (09:04 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 24 Sep 2021 11:35:06 +0000 (13:35 +0200)
commit25d2cae4a5578695f667e868ada38b0b73eb1080
treeef3e103dae48b5c2ff7a047670123ce2ccca3ee0
parentc4f607c3124e4d2f33604f933b29496ce4111753
m68k: Use BUILD_BUG for passing invalid sizes to get_user/put_user

Simplify the handling a bit by using the common helper instead of
referencing undefined symbols.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Link: https://lore.kernel.org/r/20210916070405.52750-4-hch@lst.de
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/uaccess.h