From patchwork Sat Sep 22 06:12:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11635 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 48DA019D196 for ; Sat, 22 Sep 2012 06:16:09 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id ABB04A1806A for ; Sat, 22 Sep 2012 06:16:08 +0000 (UTC) Received: by ieje10 with SMTP id e10so6519564iej.11 for ; Fri, 21 Sep 2012 23:16:08 -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=D+ofMYp54+D5me6pA0WaVjssvfzPyBkCUXrh84YWHkw=; b=R1eKy9OVWblSFnhWvSoFUOV24/S0RZVYWabQcSF6ExZkACvGQob2S3IjVzlNiLv/4i 4hacutsXwNYcnLtLEWFBuAoD5P8/n1L5rEWBGiUgNt/XtP54/sy9sVhl2NViogP60A+Z TE5hWXShiGSvoyJMa0dfiwI1gFWQCGts8SWyhp6paz8BGiQwG4me01R2B28YL+5OJ4+M 0rehQzTJynZyP13PzY4GYLeI1DmlcRX9lz9oEp1v3AFrxbnnGMhA4bDLO0II4SoAjGMO AXGZ6XF2JMDVwOqfl2sTq1OdKntArODI/MNZE1ue199c4MlIXnVndbMFpnBQ/ARw0tLH JRFg== Received: by 10.50.184.129 with SMTP id eu1mr493941igc.0.1348294567992; Fri, 21 Sep 2012 23:16:07 -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.184.232 with SMTP id ex8csp163125igc; Fri, 21 Sep 2012 23:16:07 -0700 (PDT) Received: by 10.66.83.9 with SMTP id m9mr18262276pay.22.1348294566930; Fri, 21 Sep 2012 23:16:06 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id m8si4639111pax.193.2012.09.21.23.16.06 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Sep 2012 23:16:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcmd12 with SMTP id md12so9620539pbc.37 for ; Fri, 21 Sep 2012 23:16:06 -0700 (PDT) Received: by 10.68.229.198 with SMTP id ss6mr19153748pbc.135.1348294566078; Fri, 21 Sep 2012 23:16:06 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ou1sm6237259pbb.24.2012.09.21.23.16.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Sep 2012 23:16:05 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Cc: dwmw2@infradead.org, artem.bityutskiy@linux.intel.com, dedekind1@gmail.com, sachin.kamat@linaro.org, patches@linaro.org, Kyungmin Park Subject: [PATCH] mtd: onenand: Make flexonenand_set_boundary static Date: Sat, 22 Sep 2012 11:42:31 +0530 Message-Id: <1348294351-27182-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmjaVbtEmqZs3b9VkObHgi9s8NvfRMYfxrk9QvVcr+H+rxzuRS2K5v/nNuGJHcJe5zCKLSW Fixes the following sparse warning: drivers/mtd/onenand/onenand_base.c:3697:5: warning: symbol 'flexonenand_set_boundary' was not declared. Should it be static? Cc: Kyungmin Park Signed-off-by: Sachin Kamat Acked-by: Kyungmin Park --- drivers/mtd/onenand/onenand_base.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 7153e0d..b3f41f2 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -3694,7 +3694,7 @@ static int flexonenand_check_blocks_erased(struct mtd_info *mtd, int start, int * flexonenand_set_boundary - Writes the SLC boundary * @param mtd - mtd info structure */ -int flexonenand_set_boundary(struct mtd_info *mtd, int die, +static int flexonenand_set_boundary(struct mtd_info *mtd, int die, int boundary, int lock) { struct onenand_chip *this = mtd->priv;