Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2459624imj; Mon, 18 Feb 2019 06:24:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLeGvKqgfjhuyL9eZgJ0KbmwHyetu0SylopSbOLQhHwtJ04EhZu3iH8D9bVTQIMrIXQnLN X-Received: by 2002:a17:902:4681:: with SMTP id p1mr26239546pld.184.1550499897947; Mon, 18 Feb 2019 06:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550499897; cv=none; d=google.com; s=arc-20160816; b=FJBys8RGSL+U62Ij4Dq+MEmqZp3UOxue3AXbn5Coe9CrtprpTvJHTRiORAc2yWQte4 2TQZkpxB7jJbwzpqWXqazXy04GePDZVF2tgWF9F4X2uNTIGxChpx5byYZy9NvG+8gZjf CXb5RqQqVgXfcN1+VNNADIrJFhNKa3x85YIezsD3JcbZZ5B5s0/EKBSDMBBea8lAIaPB AyYkPNALAOtNEmxZLuFWbFYjNmh4naavAlA542wIk/B3xugHhENBWn4zeFfdOOL9/6dt 9EFeyq9VgxgtuwNscMRiEK2t3NGzsYO+baHdl0cres3BwUBRgugRNTMo+65kN5EpM95H 0CXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4YzkkolBjUvHOeRjoQ1Q08dhOSDLxhkvW7UgiUY/bTY=; b=t635TOXi1co8WS6LOGoYIJT0ru2bRZPJWocwyPcvI94xzv6tYObA2wG1qfgyBTSFrm Wp2oCWAYrRZhLf+BuCvUcDp2Lg0DBu8oC/lhVyvNdsLhmBIR2AC3wyGEw1i1Q66k174X 1T/KfAT2Du2C6UbG8T4sO+7zQanC6f7VrA5pqlCu0h2lH+E2LU4g+7KknK97x/yJZ7ZC ZuTkaAcwnAJdzUTCsx3mN+CTfQyYEgToHSCKIyJbn0kg0rEV1QkXvEbjt/584Dc1HlN/ EGMAwvxfxcC/kZdgk1YzxCtIlLytc+Kh3sckulbcU2dY2DZIfwSrZD09NIIbpQxzDcR0 qapg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pkPb+8Y+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si13256930pgh.493.2019.02.18.06.24.42; Mon, 18 Feb 2019 06:24:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pkPb+8Y+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390309AbfBROGB (ORCPT + 99 others); Mon, 18 Feb 2019 09:06:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:48960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390290AbfBROF7 (ORCPT ); Mon, 18 Feb 2019 09:05:59 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 32FAB21901; Mon, 18 Feb 2019 14:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498758; bh=pYMHqMWjRdAa5wE9slkCO3MIdRg1u/LQSEDpg1zX4uQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pkPb+8Y+GAsxnPDvn+hBBwUgG7KtE3HyrSEFVWR7hjgIeuTo4VGViE8cMxZzEdoql j8iwxotC9BAc755uN2WtZi5CslR9BTow8O9Hej4Gpv5FWUJNNH1AR59U7JBYl+k/sV Pmcl7tUrkd3YXvg/IUdbb995XxcBMThiqR3hgzFM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Cl=C3=A9ment=20Perrochaud?= , Samuel Ortiz , Guenter Roeck , Matthias Kaehlcke Subject: [PATCH 4.4 112/143] NFC: nxp-nci: Include unaligned.h instead of access_ok.h Date: Mon, 18 Feb 2019 14:44:00 +0100 Message-Id: <20190218133533.115879972@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133529.099444112@linuxfoundation.org> References: <20190218133529.099444112@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Guenter Roeck commit 2eee74b7e2a496dea49847c36fd09320505f45b7 upstream. Directly including access_ok.h can result in the following compile errors if an architecture such as ia64 does not support direct unaligned accesses. include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16' include/linux/unaligned/le_struct.h:6:19: note: previous definition of 'get_unaligned_le16' was here include/linux/unaligned/access_ok.h:12:19: error: redefinition of 'get_unaligned_le32' include/linux/unaligned/le_struct.h:11:19: note: previous definition of 'get_unaligned_le32' was here Include asm/unaligned.h instead and let the architecture decide which access functions to use. Cc: Clément Perrochaud Cc: Samuel Ortiz Signed-off-by: Guenter Roeck Signed-off-by: Samuel Ortiz Cc: Matthias Kaehlcke Signed-off-by: Greg Kroah-Hartman --- drivers/nfc/nxp-nci/firmware.c | 2 +- drivers/nfc/nxp-nci/i2c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- 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" --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include