Backport minimal compiler_attributes.h to support GCC 9
authorMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Fri, 2 Aug 2019 10:37:56 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Aug 2019 16:29:42 +0000 (18:29 +0200)
commitfe5844365ec6c4d61838f289926f4d55da94d2fb
tree01907d7625db83ad6c8c01f6277fbe4f40a07148
parent0b326994892a2f8ed76cd4867c3aebcec9e6b54d
Backport minimal compiler_attributes.h to support GCC 9

This adds support for __copy to v4.9.y so that we can use it in
init/exit_module to avoid -Werror=missing-attributes errors on GCC 9.

Link: https://lore.kernel.org/lkml/259986242.BvXPX32bHu@devpool35/
Cc: <stable@vger.kernel.org>
Suggested-by: Rolf Eike Beer <eb@emlix.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/compiler.h