From patchwork Tue Mar 5 13:49:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 15243 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 305C523E64 for ; Tue, 5 Mar 2013 13:52:25 +0000 (UTC) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by fiordland.canonical.com (Postfix) with ESMTP id C8816A18C7B for ; Tue, 5 Mar 2013 13:52:24 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id l6so4123215vcl.31 for ; Tue, 05 Mar 2013 05:52:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state; bh=GtD091kWAkeJt4bgT7DGshPf6FYSwil1P4px9StGKfI=; b=K7n09vuvzCJNbNYSgIDk1Ldr7uc33bg8y0J/G8+s+0E+RsJEb6RFg2yThwss2CJh6f vhxZ7XOQd9mp2/eE57nv28C7g6GUpPiDj6j+Jp8zCOh9lb3Xn6UGK1h6ymulvm44l0AA 21LeZ9icBilcYYVOkIUVxgn+tHrsN9+vvTipKtO4fqWIypKghqr59JNAihsbgHbVr3tl M3la3J1YFh/Ds2C9XighdtsoEaXbPstxFTH70Of6Rq/N4JxKYMyBALnaI+48PKH9b9vU ItjFPr+l27nE4bSxIKN2inkF6FDsWsxsp16NwDBkfZMkRbh2r0q7NVPHUKtb36XfBsl1 T/6Q== X-Received: by 10.221.11.135 with SMTP id pe7mr9538625vcb.41.1362491544321; Tue, 05 Mar 2013 05:52:24 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp112604veb; Tue, 5 Mar 2013 05:52:23 -0800 (PST) X-Received: by 10.68.211.8 with SMTP id my8mr37543234pbc.7.1362491542848; Tue, 05 Mar 2013 05:52:22 -0800 (PST) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id si3si27243962pbc.131.2013.03.05.05.52.22; Tue, 05 Mar 2013 05:52:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of gautam.vivek@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=gautam.vivek@samsung.com Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MJ6002TAX74FT10@mailout1.samsung.com> for patches@linaro.org; Tue, 05 Mar 2013 22:52:21 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 1C.66.17763.598F5315; Tue, 05 Mar 2013 22:52:21 +0900 (KST) X-AuditID: cbfee690-b7f6b6d000004563-32-5135f8956d38 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CC.03.03918.598F5315; Tue, 05 Mar 2013 22:52:21 +0900 (KST) Received: from vivekkumarg-linuxpc.sisodomain.com ([107.108.214.169]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MJ600JXXX6I6D10@mmp1.samsung.com> for patches@linaro.org; Tue, 05 Mar 2013 22:52:21 +0900 (KST) From: Vivek Gautam To: u-boot@lists.denx.de Cc: patches@linaro.org, mk7.kang@samsung.com, sjg@chromium.org, rajeshwari.s@samsung.com Subject: [PATCH 2/2] spi: exynos: Fix compiler warnings for non-dt systems Date: Tue, 05 Mar 2013 19:19:57 +0530 Message-id: <1362491397-14562-2-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.6.5 In-reply-to: <1362491397-14562-1-git-send-email-gautam.vivek@samsung.com> References: <1362491397-14562-1-git-send-email-gautam.vivek@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsWyRsSkWnfqD9NAgwlzZCymHP7C4sDocefa HrYAxigum5TUnMyy1CJ9uwSujM09d1gKHnJU7J28lKWBcTZ7FyMnh4SAicSedevZIGwxiQv3 QGwuDiGBpYwSk5adZ4YpmjppAytEYhGjxI7HN9khnNVMEms6m1lAqtgEdCWa3u5iBLFFBCQk fvVfBbI5OJgFoiQaP+iBhIUFvCQmti4GK2ERUJW4+OQU2AJeAQ+Jns/3oC5SkHhz+xlYnFPA U2LP8mtgY4SAas42qYCslRC4zCbx5cxGJog5AhLfJh9iAamREJCV2HQA6mZJiYMrbrBMYBRe wMiwilE0tSC5oDgpvchErzgxt7g0L10vOT93EyMwBE//ezZhB+O9A9aHGJOBxk1klhJNzgeG cF5JvKGxibmpsamZkaWlpSlpwkrivPKXZAKFBNITS1KzU1MLUovii0pzUosPMTJxcEo1MCp5 hM0N1yva8kxva0zFsW9L5X9NEDg46QQP3/GJM72ObRLK0OZgLk+It0htmKb2Lc/rNcOz/Bdq Ap9u37j4UVJ3u552c9eMzefimbV+hwbfj1/ifjfIWUL856zvW74IPEx+UbjT973kmyn7RJxv VHmuWHupM/Xw180831bPt5y5KOsv6xeWbXuUWIozEg21mIuKEwGeVFGVVwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsVy+t9jAd2pP0wDDabt57OYcvgLiwOjx51r e9gCGKMaGG0yUhNTUosUUvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJz gMYqKZQl5pQChQISi4uV9O0wTQgNcdO1gGmM0PUNCYLrMTJAAwlrGDM299xhKXjIUbF38lKW BsbZ7F2MnBwSAiYSUydtYIWwxSQu3FvP1sXIxSEksIhRYsfjm+wQzmomiTWdzSwgVWwCuhJN b3cxgtgiAhISv/qvAtkcHMwCURKNH/RAwsICXhITWxeDlbAIqEpcfHKKGcTmFfCQ6Pl8D2qx gsSb28/A4pwCnhJ7ll8DGyMEVHO2SWUCI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmb GMEB/kxqB+PKBotDjAIcjEo8vAxHTQKFWBPLiitzDzFKcDArifCGfjANFOJNSaysSi3Kjy8q zUktPsSYDHTURGYp0eR8YPTllcQbGpuYmxqbWppYmJhZkiasJM7LeOpJgJBAemJJanZqakFq EcwWJg5OqQbGtjO7Hlc1arqddv+fe/d58rf9BaeqVx+I6nph+e/NQ3YOHUfZ2NbPtfnqTJnm Hud2bm+UeBsmwc5hd7yXUSiw4354oW3uy+ZntrHGCdJ+Hy43JHM0Vqy4uWznzu8L581zn2Xb asD97+jFakUrW1/RgqbGVdkK0lKt4uvebFg1v/yLiu4XgclKLMUZiYZazEXFiQA3VTpntAIA AA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQk9AXN3KOIkXP1Z/M660VMO0rAYJsDBjdMlFKeMnj1926lf/lf5qLibnDL6/y+DAFvnzMLr Enclosing process_nodes() and spi_get_config() inside CONFIG_OF_CONTROL, since they are compiled only for DT systems. This fixes following warning: exynos_spi.c:391:12: warning: 'process_nodes' defined but not used [-Wunused-function] Signed-off-by: Vivek Gautam Acked-by: Simon Glass --- drivers/spi/exynos_spi.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index be60ada..2260d59 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -360,6 +360,7 @@ static inline struct exynos_spi *get_spi_base(int dev_index) * @param bus SPI bus structure to fill with information * @return 0 if ok, or -FDT_ERR_NOTFOUND if something was missing */ +#ifdef CONFIG_OF_CONTROL static int spi_get_config(const void *blob, int node, struct spi_bus *bus) { bus->node = node; @@ -415,6 +416,7 @@ static int process_nodes(const void *blob, int node_list[], int count) return 0; } +#endif /* Sadly there is no error return from this function */ void spi_init(void)