]> git.baikalelectronics.ru Git - kernel.git/commit
string.h: un-fortify memcpy_and_pad
authorMartin Wilck <mwilck@suse.com>
Wed, 6 Sep 2017 12:36:57 +0000 (14:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Sep 2017 16:29:41 +0000 (12:29 -0400)
commitc57c5c0894d9b7de2035809642269d98259e372f
tree9e7b470dbf729ee32e2e19110ff1c9069ddf78ac
parent498152c44eb64d26d8fffd96715122b86a48312d
string.h: un-fortify memcpy_and_pad

The way I'd implemented the new helper memcpy_and_pad  with
__FORTIFY_INLINE caused compiler warnings for certain kernel
configurations.

This helper is only used in a single place at this time, and thus
doesn't benefit much from fortification. So simplify the code
by dropping fortification support for now.

Fixes: a8b9ebd9269b "string.h: add memcpy_and_pad()"
Signed-off-by: Martin Wilck <mwilck@suse.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/string.h