]> 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)
commitfa649d08834ae6c5fbf2ea4ab45a7d347280d5d7
tree9e7b470dbf729ee32e2e19110ff1c9069ddf78ac
parentc8228bad1d1ec20ab0a52c4f8fb3a4e857ddbc7a
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: a1f77d23624e "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