]> asedeno.scripts.mit.edu Git - linux.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)
commit1359798f9d4082eb04575efdd19512fbd9c28464
tree9e7b470dbf729ee32e2e19110ff1c9069ddf78ac
parent044a9df1a7cbb89f48fcc0e9e39997989342966b
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: 01f33c336e2d "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