string.h: add memcpy_and_pad()
authorMartin Wilck <mwilck@suse.com>
Mon, 14 Aug 2017 20:12:38 +0000 (22:12 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 28 Aug 2017 20:00:41 +0000 (23:00 +0300)
commit01f33c336e2d298ea5d4ce5d6e5bcd12865cc30f
tree05ebf178ef681769d20767f63fe6f4a21f957a4a
parent48fa362b6c3f4d69bdb6310b46626049092475e0
string.h: add memcpy_and_pad()

This helper function is useful for the nvme subsystem, and maybe
others.

Note: the warnings reported by the kbuild test robot for this patch
are actually generated by the use of CONFIG_PROFILE_ALL_BRANCHES
together with __FORTIFY_INLINE.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Sagi Grimberg <sagi@grimbeg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/string.h