From patchwork Wed May 21 11:20:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 30533 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 27C0220671 for ; Wed, 21 May 2014 11:22:43 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id m20sf5519761qcx.9 for ; Wed, 21 May 2014 04:22:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=1rhoBhHRlPDDShq4lcc6k0LVpYNuvEtYMYjcsx5e1Tw=; b=Dw150yvol4P8I8CG333XKBuMdaxfs8ED2goTKoB2Av5UO138l9LQ94TgGp5IFY/Kst PmREJjwKV63dSsC+Q4t2/FbZvNEhkEwM2GaRlrgjPPN1J8XtNaSZXr3MQFVe1jBtSVG2 KpVlV7rqU5koakXE3WNTeyZdjmpoR3cN0+VSaQqT1AFMsPVrXe+0jcglTd503LwKPXxj Qp9+GkPU4GqxWSQoax+tMjrbL/yGEdq6hKJZhJPlmgrSY7phT3brg1k36h02eqqx3flB MsmZ/WBXnQHYL4fJdEUxa29g+Ty6rtTvN/woglSej+JdrrOX4wW3ozHrAyI0EIKW64NM cj7Q== X-Gm-Message-State: ALoCoQncVEX26ns65kZIYOLkVk0ynpyv87//3zY81rbPvU+Um5HDOsymof4389fLomc7eEoLRC8q X-Received: by 10.58.236.5 with SMTP id uq5mr9566022vec.35.1400671362892; Wed, 21 May 2014 04:22:42 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.54 with SMTP id b51ls716063qgf.48.gmail; Wed, 21 May 2014 04:22:42 -0700 (PDT) X-Received: by 10.52.173.165 with SMTP id bl5mr7786476vdc.13.1400671362760; Wed, 21 May 2014 04:22:42 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id fl16si404326vec.81.2014.05.21.04.22.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 04:22:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so2306270vcb.38 for ; Wed, 21 May 2014 04:22:42 -0700 (PDT) X-Received: by 10.58.196.236 with SMTP id ip12mr72998vec.47.1400671362644; Wed, 21 May 2014 04:22:42 -0700 (PDT) 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.220.221.72 with SMTP id ib8csp104579vcb; Wed, 21 May 2014 04:22:42 -0700 (PDT) X-Received: by 10.66.164.135 with SMTP id yq7mr58276946pab.126.1400671361930; Wed, 21 May 2014 04:22:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vx5si28721296pab.104.2014.05.21.04.22.41; Wed, 21 May 2014 04:22:41 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1752542AbaEULW0 (ORCPT + 27 others); Wed, 21 May 2014 07:22:26 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:44864 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751425AbaEULWV (ORCPT ); Wed, 21 May 2014 07:22:21 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s4LBLjoP002142; Wed, 21 May 2014 06:21:45 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4LBLjiB027190; Wed, 21 May 2014 06:21:45 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Wed, 21 May 2014 06:21:44 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4LBLAAd018495; Wed, 21 May 2014 06:21:41 -0500 From: Roger Quadros To: , CC: , , , , , , , , , , , Roger Quadros Subject: [RFC PATCH 08/16] mtd: nand: omap: Fix build warning Date: Wed, 21 May 2014 14:20:56 +0300 Message-ID: <1400671264-10702-9-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400671264-10702-1-git-send-email-rogerq@ti.com> References: <1400671264-10702-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.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.220.179 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: , Fix the following warning when CONFIG_MTD_NAND_OMAP_BCH is disabled. warning: ‘erased_sector_bitflips’ defined but not used [-Wunused-function] Signed-off-by: Roger Quadros --- drivers/mtd/nand/omap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 1ff49b8..1b800bc 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -1237,6 +1237,7 @@ static int __maybe_unused omap_calculate_ecc_bch(struct mtd_info *mtd, return 0; } +#ifdef CONFIG_MTD_NAND_OMAP_BCH /** * erased_sector_bitflips - count bit flips * @data: data sector buffer @@ -1276,7 +1277,6 @@ static int erased_sector_bitflips(u_char *data, u_char *oob, return flip_bits; } -#ifdef CONFIG_MTD_NAND_OMAP_BCH /** * omap_elm_correct_data - corrects page data area in case error reported * @mtd: MTD device structure