Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751839AbdCRSbE (ORCPT ); Sat, 18 Mar 2017 14:31:04 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:50440 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbdCRSbB (ORCPT ); Sat, 18 Mar 2017 14:31:01 -0400 From: Sergei Trofimovich To: Andrew Morton Cc: Sergei Trofimovich , Charles Gorand , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfc@ml01.01.org Subject: [PATCH] nfc: ia64: fix redefinition of 'put_unaligned_be64' Date: Sat, 18 Mar 2017 18:21:03 +0000 Message-Id: <20170318182103.10965-1-slyfox@gentoo.org> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2272 Lines: 70 ia64 allmodconfig build failed as: In file included from /home/slyfox/linux-2.6/drivers/nfc/nxp-nci/i2c.c:39:0: linux/include/linux/unaligned/access_ok.h:62:29: error: redefinition of 'put_unaligned_be64' static __always_inline void put_unaligned_be64(u64 val, void *p) ^ In file included from linux/arch/ia64/include/asm/unaligned.h:5:0, ... linux/include/linux/unaligned/be_byteshift.h:65:20: note: previous definition of 'put_unaligned_be64' was here static inline void put_unaligned_be64(u64 val, void *p) ^ The error here is the inclusion of #include header instead of #include for unaligned helpers. CC: Charles Gorand CC: linux-wireless@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: linux-nfc@lists.01.org Signed-off-by: Sergei Trofimovich --- drivers/nfc/nfcmrvl/fw_dnld.c | 2 +- drivers/nfc/nxp-nci/firmware.c | 2 +- drivers/nfc/nxp-nci/i2c.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nfc/nfcmrvl/fw_dnld.c b/drivers/nfc/nfcmrvl/fw_dnld.c index f8dcdf4b24f6..b93b913e8983 100644 --- a/drivers/nfc/nfcmrvl/fw_dnld.c +++ b/drivers/nfc/nfcmrvl/fw_dnld.c @@ -17,7 +17,7 @@ */ #include -#include +#include #include #include #include diff --git a/drivers/nfc/nxp-nci/firmware.c b/drivers/nfc/nxp-nci/firmware.c index 5291797324ba..432f58fe327c 100644 --- a/drivers/nfc/nxp-nci/firmware.c +++ b/drivers/nfc/nxp-nci/firmware.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include "nxp-nci.h" diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index 36099e557730..a926be0d784e 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include -- 2.12.0