From patchwork Tue Jun 23 07:06:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 6659061 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7A333C05AC for ; Tue, 23 Jun 2015 07:06:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E191205E3 for ; Tue, 23 Jun 2015 07:06:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 88FEB2058A for ; Tue, 23 Jun 2015 07:06:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67B426E7F1; Tue, 23 Jun 2015 00:06:48 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 63F686E7F1 for ; Tue, 23 Jun 2015 00:06:47 -0700 (PDT) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NQD021FDYF90O60@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 23 Jun 2015 16:06:45 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 93.95.28411.58509855; Tue, 23 Jun 2015 16:06:45 +0900 (KST) X-AuditID: cbfee68e-f79c56d000006efb-a4-558905853fd2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4D.26.05312.58509855; Tue, 23 Jun 2015 16:06:45 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.83.67]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NQD001C7YF8OYA0@mmp1.samsung.com>; Tue, 23 Jun 2015 16:06:44 +0900 (KST) From: Inki Dae To: devicetree@vger.kernel.org, robh+dt@kernel.org Subject: [PATCH Resend] of: fix a build error to f_graph_get_endpoint_by_regs function Date: Tue, 23 Jun 2015 16:06:44 +0900 Message-id: <1435043204-23133-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsWyRsSkQLeVtTPU4H6ftEXvuZNMFvOPnGO1 uPL1PZtF/5uFrBbnXq1ktJh0fwKLxdLrF5ksJkxfy2LRuvcIu8XWvVfZHbg81sxbw+jReOMG m8flvl4mj5XLv7B5bFrVyeax/dsDVo/73ceZPPq2rGL0+LxJLoAzissmJTUnsyy1SN8ugSvj 9fcfTAXH+SpmdH9kamBcxtPFyMEhIWAi8eIyWxcjJ5ApJnHh3nogm4tDSGApo0Tzr8+sEAkT ifOHXjNDJBYxSky92QVV1cAk8fHKAWaQKjYBVYmJK+6DjRIRMJJYufczWJxZ4DyjRMPaAhBb WCBC4ujaf2BTWYDqt37bxQhi8wq4SGxbvoUV4iIFiTmTbEDmSwhsYpe4fu0LO0S9gMS3yYdY IGpkJTZBrJUQkJQ4uOIGywRGwQWMDKsYRVMLkguKk9KLjPSKE3OLS/PS9ZLzczcxAkP/9L9n fTsYbx6wPsQowMGoxMO7hLEzVIg1say4MvcQoynQhonMUqLJ+cAIyyuJNzQ2M7IwNTE1NjK3 NFMS502Q+hksJJCeWJKanZpakFoUX1Sak1p8iJGJg1OqgTG545Jp/Huu8k85d+acYkg59qhU +iV7v2/u95pKUw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pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: mark.rutland@arm.com, sfr@canb.auug.org.au, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, dri-devel@lists.freedesktop.org, galak@codeaurora.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the below build error reported by Stephen, Stephen reported: After merging the drm-exynos tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/media/i2c/adv7604.o: In function `of_graph_get_endpoint_by_regs': adv7604.c:(.text+0x586c): multiple definition of `of_graph_get_endpoint_by_regs' drivers/media/i2c/adv7343.o:adv7343.c:(.text+0xa13): first defined here drivers/media/platform/soc_camera/atmel-isi.o: In function `of_graph_get_endpoint_by_regs': atmel-isi.c:(.text+0x1ec9): multiple definition of `of_graph_get_endpoint_by_regs' drivers/media/platform/soc_camera/soc_camera.o:soc_camera.c:(.text+0x2ce3): first defined here drivers/media/platform/soc_camera/rcar_vin.o: In function `of_graph_get_endpoint_by_regs': rcar_vin.c:(.text+0x307c): multiple definition of `of_graph_get_endpoint_by_regs' drivers/media/platform/soc_camera/soc_camera.o:soc_camera.c:(.text+0x2ce3): first defined here Caused by commit: a0f7001c18ca ("of: add helper for getting endpoint node of specific identifiers") To fix the error, this patch declares of_graph_get_endpoint_by_regs function with "static inline". Signed-off-by: Inki Dae Acked-by: Rob Herring --- include/linux/of_graph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h index 1c1d5b9..f8bcd0e 100644 --- a/include/linux/of_graph.h +++ b/include/linux/of_graph.h @@ -71,7 +71,7 @@ static inline struct device_node *of_graph_get_next_endpoint( return NULL; } -struct device_node *of_graph_get_endpoint_by_regs( +static inline struct device_node *of_graph_get_endpoint_by_regs( const struct device_node *parent, int port_reg, int reg) { return NULL;