From patchwork Fri Aug 3 04:38:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10479 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 BEEF124050 for ; Fri, 3 Aug 2012 04:39:31 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 84FA6A19316 for ; Fri, 3 Aug 2012 04:39:31 +0000 (UTC) Received: by ggnf1 with SMTP id f1so368287ggn.11 for ; Thu, 02 Aug 2012 21:39:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=C7RNi0mpCl0Wb8PIX3bew7GMREcMiBokfmm/Z8z+Vtc=; b=bJsGqjpHJ+2n5BY0f83Vx0lmQTZeMReFNSjvyR1QxXg0r1ivi2wgGdeLUvRtI6gdpg L9UGl7XhRUycCaiJZ8g4bVcuHqJDQqasXLmujq5nvHHVnvujwXYwv5L7YZGl0nh49/d7 dLXIZ9zrshWkEZsJ6QL4/VuVRvYELOG2rQ/ouJDsHvpDYV3HSkcOTtbBkpO53Kme84N1 RQPsL15/pP2iHtQORYmolR2K/P2mqGT07y148HgKErLr2ZUbxv1pl0rjhOGx6kuRgJYX +6VGRaU55WD+VBRdpdj9Ui54gMzWp4Z8mAAswlULWRQYgnhLm47/Bo/rJ5N8zfQo6k+x WaNA== Received: by 10.50.47.161 with SMTP id e1mr922742ign.11.1343968770655; Thu, 02 Aug 2012 21:39:30 -0700 (PDT) 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.50.87.40 with SMTP id u8csp293284igz; Thu, 2 Aug 2012 21:39:30 -0700 (PDT) Received: by 10.236.114.72 with SMTP id b48mr358389yhh.7.1343968769485; Thu, 02 Aug 2012 21:39:29 -0700 (PDT) Received: from mail-gh0-f178.google.com (mail-gh0-f178.google.com [209.85.160.178]) by mx.google.com with ESMTPS id h6si8942551yhk.151.2012.08.02.21.39.28 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 21:39:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by ghbf1 with SMTP id f1so431594ghb.37 for ; Thu, 02 Aug 2012 21:39:28 -0700 (PDT) Received: by 10.50.217.163 with SMTP id oz3mr959686igc.5.1343968768409; Thu, 02 Aug 2012 21:39:28 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id rd8sm18455427igb.3.2012.08.02.21.39.24 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 21:39:27 -0700 (PDT) From: Sachin Kamat To: spi-devel-general@lists.sourceforge.net Cc: grant.likely@secretlab.ca, kgene.kim@samsung.com, broonie@opensource.wolfsonmicro.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] spi/s3c64xx: Add missing static storage class specifiers Date: Fri, 3 Aug 2012 10:08:12 +0530 Message-Id: <1343968692-13691-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlXRPZZzGA0AebQrIDEm4nBx/UOzQl+eAmWiqPZQ0CE20We6vpOV+3BYq+Dgi4uCVMOL8zo Silences the following sparse warnings: drivers/spi/spi-s3c64xx.c:1482:32: warning: symbol 's3c2443_spi_port_config' was not declared. Should it be static? drivers/spi/spi-s3c64xx.c:1489:32: warning: symbol 's3c6410_spi_port_config' was not declared. Should it be static? drivers/spi/spi-s3c64xx.c:1495:32: warning: symbol 's5p64x0_spi_port_config' was not declared. Should it be static? drivers/spi/spi-s3c64xx.c:1501:32: warning: symbol 's5pc100_spi_port_config' was not declared. Should it be static? drivers/spi/spi-s3c64xx.c:1508:32: warning: symbol 's5pv210_spi_port_config' was not declared. Should it be static? drivers/spi/spi-s3c64xx.c:1515:32: warning: symbol 'exynos4_spi_port_config' was not declared. Should it be static? Signed-off-by: Sachin Kamat --- drivers/spi/spi-s3c64xx.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index d24ec80..9a86dfe 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1477,40 +1477,40 @@ static const struct dev_pm_ops s3c64xx_spi_pm = { s3c64xx_spi_runtime_resume, NULL) }; -struct s3c64xx_spi_port_config s3c2443_spi_port_config = { +static struct s3c64xx_spi_port_config s3c2443_spi_port_config = { .fifo_lvl_mask = { 0x7f }, .rx_lvl_offset = 13, .tx_st_done = 21, .high_speed = true, }; -struct s3c64xx_spi_port_config s3c6410_spi_port_config = { +static struct s3c64xx_spi_port_config s3c6410_spi_port_config = { .fifo_lvl_mask = { 0x7f, 0x7F }, .rx_lvl_offset = 13, .tx_st_done = 21, }; -struct s3c64xx_spi_port_config s5p64x0_spi_port_config = { +static struct s3c64xx_spi_port_config s5p64x0_spi_port_config = { .fifo_lvl_mask = { 0x1ff, 0x7F }, .rx_lvl_offset = 15, .tx_st_done = 25, }; -struct s3c64xx_spi_port_config s5pc100_spi_port_config = { +static struct s3c64xx_spi_port_config s5pc100_spi_port_config = { .fifo_lvl_mask = { 0x7f, 0x7F }, .rx_lvl_offset = 13, .tx_st_done = 21, .high_speed = true, }; -struct s3c64xx_spi_port_config s5pv210_spi_port_config = { +static struct s3c64xx_spi_port_config s5pv210_spi_port_config = { .fifo_lvl_mask = { 0x1ff, 0x7F }, .rx_lvl_offset = 15, .tx_st_done = 25, .high_speed = true, }; -struct s3c64xx_spi_port_config exynos4_spi_port_config = { +static struct s3c64xx_spi_port_config exynos4_spi_port_config = { .fifo_lvl_mask = { 0x1ff, 0x7F, 0x7F }, .rx_lvl_offset = 15, .tx_st_done = 25,