From patchwork Wed Dec 11 23:51:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 3329111 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0DBACC0D4A for ; Wed, 11 Dec 2013 23:51:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FA3520800 for ; Wed, 11 Dec 2013 23:51:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F297207EF for ; Wed, 11 Dec 2013 23:51:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767Ab3LKXu4 (ORCPT ); Wed, 11 Dec 2013 18:50:56 -0500 Received: from mail-pb0-f52.google.com ([209.85.160.52]:42540 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709Ab3LKXux (ORCPT ); Wed, 11 Dec 2013 18:50:53 -0500 Received: by mail-pb0-f52.google.com with SMTP id uo5so10884972pbc.25 for ; Wed, 11 Dec 2013 15:50:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y9S6T226liByKaxNTE51dIo2AjONpbJyxw9ZUISPtcM=; b=JA9N/aMde0I4W/mCUpsUG6RR/Fd1rbrPz3cWGAA2Nl2O4WQFfD+8CJQrK+2ewef3ns 9MuYrNRiiw1AHZp5p8ZYhSeW4BpXywEobIMQAwrTf/H/CK4Qz0a8voYSuJhsZb8Sih35 vyFf7Wec6fE6LiM+oY6ExSnYl5bMtFciqdV+sfmbEdeIphbSw7RJvth82yo9lhWiCg7S YvXAFEtEs1zJNFkqqp2EpVpS/a1ClRJjamqO4T+9OWY2KOm+gSmwau6Ej0Jr6Xhu9ice /u8NT9AEugZ0XmKKoWnUC/cW/Oo3/htk4Y+7TD8SR6+i0b1mnU8rAUaMRh2xSeBq89bY QkHA== X-Gm-Message-State: ALoCoQnd5nw5nbO/JZBBh68o30SEUsf82aR9y2OxTDhrj5tnIf3ZgF/tFxibtqmG5buv8wyYdvCa X-Received: by 10.68.196.227 with SMTP id ip3mr5910139pbc.163.1386805852974; Wed, 11 Dec 2013 15:50:52 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id ja5sm35455215pbc.14.2013.12.11.15.50.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Dec 2013 15:50:51 -0800 (PST) From: Olof Johansson To: davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Olof Johansson Subject: [PATCH 2/2] net: eth: davinci_cpdma: Mark a local variable static Date: Wed, 11 Dec 2013 15:51:21 -0800 Message-Id: <1386805882-25360-2-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1386805882-25360-1-git-send-email-olof@lixom.net> References: <1386805882-25360-1-git-send-email-olof@lixom.net> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Only used locally. Found by sparse. Signed-off-by: Olof Johansson --- drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index b041a87..364d0c7 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.c +++ b/drivers/net/ethernet/ti/davinci_cpdma.c @@ -971,7 +971,7 @@ struct cpdma_control_info { #define ACCESS_RW (ACCESS_RO | ACCESS_WO) }; -struct cpdma_control_info controls[] = { +static struct cpdma_control_info controls[] = { [CPDMA_CMD_IDLE] = {CPDMA_DMACONTROL, 3, 1, ACCESS_WO}, [CPDMA_COPY_ERROR_FRAMES] = {CPDMA_DMACONTROL, 4, 1, ACCESS_RW}, [CPDMA_RX_OFF_LEN_UPDATE] = {CPDMA_DMACONTROL, 2, 1, ACCESS_RW},