From patchwork Wed Nov 19 11:15:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 41128 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A37CE20CBB for ; Wed, 19 Nov 2014 11:16:30 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf252846lbj.8 for ; Wed, 19 Nov 2014 03:16:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=uconoTNlinQo1nwtarONWkaSJfqv1Npk1/9fkP0/QCQ=; b=DZ4/n5lDBkS920irIkXPO75gt6gp9tGoOjRXTLG4E8HxYL6Ta5XYNvGPCQWGvvbefW bq9xmy4r7IzDqhNQ1CYlnKx1gyGRA6KnQrSOY6njORzzpzHE0Ru+PgE7Fu/mJ0jcnnva bpDkvJ7+aiMe16x0bYMOI9L8Uuvw2Wutu9gHjLgRtmDV6zQJ2tpGBPzcgisOD3jI7uox tNH/GpRhqDKOg9zvX9ZDxu2tTJkKu+mS2W+TEAOeR1sXJQhNr+cVJh6Y/I0JcrdJ94NU 04kEHhzCQk1Z9Glx6Wb7PLyVAl1XG3gXSdSfbRk5AkHqz/g20IVektiIfC0/KC3NUGX/ 4orQ== X-Gm-Message-State: ALoCoQl6jMait2YOKloedX716iUbThvLBDNvzoYkQ4KZe2LuqwBJJ6X7A3nYmhF2B8QwMNElNpTK X-Received: by 10.112.163.229 with SMTP id yl5mr85000lbb.23.1416395789604; Wed, 19 Nov 2014 03:16:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.193 with SMTP id l1ls1547641laa.79.gmail; Wed, 19 Nov 2014 03:16:29 -0800 (PST) X-Received: by 10.152.20.72 with SMTP id l8mr4739144lae.43.1416395789275; Wed, 19 Nov 2014 03:16:29 -0800 (PST) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id m4si1424405lbd.106.2014.11.19.03.16.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Nov 2014 03:16:29 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by mail-lb0-f178.google.com with SMTP id f15so314524lbj.23 for ; Wed, 19 Nov 2014 03:16:29 -0800 (PST) X-Received: by 10.152.116.102 with SMTP id jv6mr4809097lab.40.1416395789121; Wed, 19 Nov 2014 03:16:29 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp64261lbc; Wed, 19 Nov 2014 03:16:28 -0800 (PST) X-Received: by 10.66.221.198 with SMTP id qg6mr45569165pac.106.1416395786849; Wed, 19 Nov 2014 03:16:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xo9si2087857pbc.210.2014.11.19.03.16.26 for ; Wed, 19 Nov 2014 03:16:26 -0800 (PST) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750757AbaKSLQZ (ORCPT + 4 others); Wed, 19 Nov 2014 06:16:25 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:61891 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbaKSLQY (ORCPT ); Wed, 19 Nov 2014 06:16:24 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NFA004RJA3VXL40@mailout4.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 19 Nov 2014 11:19:07 +0000 (GMT) X-AuditID: cbfec7f4-b7f6c6d00000120b-7d-546c7c0651e1 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 08.E6.04619.60C7C645; Wed, 19 Nov 2014 11:16:22 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NFA00GC59YMTL30@eusync1.samsung.com>; Wed, 19 Nov 2014 11:16:22 +0000 (GMT) From: Marek Szyprowski To: iommu@lists.linux-foundation.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , linaro-mm-sig@lists.linaro.org, Arnd Bergmann , Shaik Ameer Basha , Cho KyongHo , Joerg Roedel , Thierry Reding , Olof Johansson , Laurent Pinchart , Rob Herring , Will Deacon , David Wodhouse , Inki Dae , Kukjin Kim , Tomasz Figa , Kyungmin Park Subject: [PATCH v3 01/19] iommu: fix const qualifier in of_iommu_set_ops Date: Wed, 19 Nov 2014 12:15:30 +0100 Message-id: <1416395748-10731-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1416395748-10731-1-git-send-email-m.szyprowski@samsung.com> References: <1416395748-10731-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t/xy7psNTkhBjvnc1n8nXSM3WLiysnM FpPuT2CxWLDf2qJz9gZ2i94FV9kszja9YbfonLiE3eLLlYdMFpseX2O1mHF+H5PF2iN32S1O Xf/MZvGv9yCjxf89O9gtjjzczW6xatcfRovbv/ksXn48weIg7PHk4DwmjzXz1jB6/P41idFj 56y77B6zO2ayemxeoeWxaVUnm8fmJfUet/89ZvaYfGM5o8eVE02sHr3N79g8+rasYvT4vEku gC+KyyYlNSezLLVI3y6BK6P71HaWgq1sFV8un2NsYFzB2sXIySEhYCJx6+cHZghbTOLCvfVs XYxcHEICSxklmv5dZoVw+pgkpnSdAetgEzCU6HrbxQZiiwjkS7zY+5cFxGYWeMMicW+TIYgt LOAhMXfKOaYuRg4OFgFVidWH5UDCvEDhlQvns0Msk5P4/3IFWAmngKfE9RdgU4SASpqmr2Od wMi7gJFhFaNoamlyQXFSeq6hXnFibnFpXrpecn7uJkZIdHzZwbj4mNUhRgEORiUe3obinBAh 1sSy4srcQ4wSHMxKIrzFhUAh3pTEyqrUovz4otKc1OJDjEwcnFINjD2hCW8tLpb1Oes3ted9 8i4sm3VdW2a6fWfDnNuVV29euXDJaoL5996danqiWwMUcvnU77/69OKQ7fOOmA86Gt+lGCR9 J63Rclg6+2nzEtXOVv2vv15q/5wlw7Y+995xv7Vbj27neVYUcr98x4Lm+G8WEWIp5udb6iI/ iDq7qWXfXrAzip3xrRJLcUaioRZzUXEiAPUXuJ1sAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Make of_iommu_set_ops() parameter attribute consistent with bus_set_iommu(). Signed-off-by: Marek Szyprowski --- include/linux/of_iommu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/of_iommu.h b/include/linux/of_iommu.h index 7ded21c0ccdf..d03abbb11c34 100644 --- a/include/linux/of_iommu.h +++ b/include/linux/of_iommu.h @@ -32,9 +32,9 @@ static inline struct iommu_ops *of_iommu_configure(struct device *dev) #endif /* CONFIG_OF_IOMMU */ static inline void of_iommu_set_ops(struct device_node *np, - struct iommu_ops *ops) + const struct iommu_ops *ops) { - np->data = ops; + np->data = (struct iommu_ops *)ops; } static inline struct iommu_ops *of_iommu_get_ops(struct device_node *np)