Return-Path: Received: from mail-by2nam01on0124.outbound.protection.outlook.com ([104.47.34.124]:1120 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934573AbeCCWjR (ORCPT ); Sat, 3 Mar 2018 17:39:17 -0500 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Tobias Klauser , Vincent Cuissard , Samuel Ortiz , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 046/115] NFC: nfcmrvl: Include unaligned.h instead of access_ok.h Date: Sat, 3 Mar 2018 22:31:15 +0000 Message-ID: <20180303223010.27106-46-alexander.levin@microsoft.com> References: <20180303223010.27106-1-alexander.levin@microsoft.com> In-Reply-To: <20180303223010.27106-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Tobias Klauser [ Upstream commit d916d923724d59cde99ee588f15eec59dd863bbd ] Including linux/unaligned/access_ok.h causes the allmodconfig build on ia64 (and maybe others) to fail with the following warnings: include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unali= gned_le16' include/linux/unaligned/access_ok.h:12:19: error: redefinition of 'get_unal= igned_le32' include/linux/unaligned/access_ok.h:17:19: error: redefinition of 'get_unal= igned_le64' include/linux/unaligned/access_ok.h:22:19: error: redefinition of 'get_unal= igned_be16' include/linux/unaligned/access_ok.h:27:19: error: redefinition of 'get_unal= igned_be32' include/linux/unaligned/access_ok.h:32:19: error: redefinition of 'get_unal= igned_be64' include/linux/unaligned/access_ok.h:37:20: error: redefinition of 'put_unal= igned_le16' include/linux/unaligned/access_ok.h:42:20: error: redefinition of 'put_unal= igned_le32' include/linux/unaligned/access_ok.h:42:20: error: redefinition of 'put_unal= igned_le64' include/linux/unaligned/access_ok.h:42:20: error: redefinition of 'put_unal= igned_be16' include/linux/unaligned/access_ok.h:42:20: error: redefinition of 'put_unal= igned_be32' include/linux/unaligned/access_ok.h:42:20: error: redefinition of 'put_unal= igned_be64' Fix these by including asm/unaligned.h instead and leave it up to the architecture to decide how to implement unaligned accesses. Fixes: 3194c6870158 ("NFC: nfcmrvl: add firmware download support") Reported-by: kbuild test robot Link: https://lkml.org/lkml/2016/10/22/247 Cc: Vincent Cuissard Signed-off-by: Tobias Klauser Signed-off-by: Samuel Ortiz Signed-off-by: Sasha Levin --- drivers/nfc/nfcmrvl/fw_dnld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nfcmrvl/fw_dnld.c b/drivers/nfc/nfcmrvl/fw_dnld.c index af62c4c854f3..b4f31dad40d6 100644 --- a/drivers/nfc/nfcmrvl/fw_dnld.c +++ b/drivers/nfc/nfcmrvl/fw_dnld.c @@ -17,7 +17,7 @@ */ =20 #include -#include +#include #include #include #include --=20 2.14.1