Return-path: Received: from sabertooth01.qualcomm.com ([65.197.215.72]:46246 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423AbbAMCSb (ORCPT ); Mon, 12 Jan 2015 21:18:31 -0500 From: Mathieu Olivari To: "Luis R. Rodriguez" CC: , Mathieu Olivari Subject: [PATCH 1/2] backports: explicitely include string.h from device.h Date: Mon, 12 Jan 2015 18:17:55 -0800 Message-ID: <1421115476-11855-1-git-send-email-mathieu@qca.qualcomm.com> (sfid-20150113_031834_365149_7A2ECD09) MIME-Version: 1.0 Content-Type: text/plain Sender: backports-owner@vger.kernel.org List-ID: string.h is usually included from the asm/ folder in most configuration, but on some older kernels and non-x86 architecture, this inclusion is not necessarily happening. As we're using memcpy() in the code below, we need to be safe and make sure string.h is indeed there. This issue has been observed on a 3.4 vendor kernels, but may be applicable to other configurations. Signed-off-by: Mathieu Olivari --- backport/backport-include/linux/device.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backport/backport-include/linux/device.h b/backport/backport-include/linux/device.h index 29dc077..03ca1f1 100644 --- a/backport/backport-include/linux/device.h +++ b/backport/backport-include/linux/device.h @@ -5,6 +5,13 @@ #include +/* + * string.h is usually included from the asm/ folder in most configuration, + * but on some older kernels it doesn't. As we're using memcpy() in the code + * below, we need to be safe and make sure string.h is indeed there. + */ +#include + #if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) /* backport * commit 9f3b795a626ee79574595e06d1437fe0c7d51d29 -- 1.7.10.4