From patchwork Mon Oct 20 14:59:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Ruder X-Patchwork-Id: 401186 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 588E114003E for ; Tue, 21 Oct 2014 02:01:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE3C5A7481; Mon, 20 Oct 2014 17:00:25 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zMjqoBT3cxOm; Mon, 20 Oct 2014 17:00:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 26783A7479; Mon, 20 Oct 2014 17:00:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6968AA73E7 for ; Mon, 20 Oct 2014 17:00:08 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wkTXBhbMls4e for ; Mon, 20 Oct 2014 17:00:08 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by theia.denx.de (Postfix) with ESMTPS id 374054B668 for ; Mon, 20 Oct 2014 17:00:03 +0200 (CEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by gateway2.nyi.internal (Postfix) with ESMTP id 6ABCD20CB1 for ; Mon, 20 Oct 2014 11:00:02 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 20 Oct 2014 11:00:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:date :message-id:in-reply-to:references; s=smtpout; bh=qYqxtrqwuTcK2J 8CR7PKbi9H7+8=; b=TTbnFVlAqMkVK67Yyn5e994NiAhaOaM/yYNfgsVZ/wZGkI YAY5eQOtXzKbnKyQyr+pB+OxIV0HnZSaEEKwUsKFxR/76N5UHJezK3tNjjuIH7Dv 5fTs4EoztKYmWsZL5ntVx/lGnDfR4P1Snb03wFNc7GJYXAypzX1h+bzoBLWhg= X-Sasl-enc: WejemQkfmSsf313x0Gd31dlrXOFy6WGLaDJefAr405oO 1413817202 Received: from andrewruder-hplin.dci.local (unknown [64.198.156.98]) by mail.messagingengine.com (Postfix) with ESMTPA id 10F07680090; Mon, 20 Oct 2014 11:00:02 -0400 (EDT) From: Andrew Ruder To: u-boot@lists.denx.de Date: Mon, 20 Oct 2014 09:59:43 -0500 Message-Id: <1413817185-32636-2-git-send-email-andrew.ruder@elecsyscorp.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1413817185-32636-1-git-send-email-andrew.ruder@elecsyscorp.com> References: <1413817185-32636-1-git-send-email-andrew.ruder@elecsyscorp.com> Cc: Andrew Ruder Subject: [U-Boot] [PATCH 1/3] dm9000: mark dump_regs() function as unused X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de dump_regs() is a handy function to keep around for bringing up a new dm9000-based board, but defining CONFIG_DM9000_DEBUG only adds the function - nowhere currently uses it. Rather than remove a potentially useful function, let's just tell gcc to not emit a warning when it is unused. Signed-off-by: Andrew Ruder Cc: Joe Hershberger --- drivers/net/dm9000x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c index 4de9d41..50a36f3 100644 --- a/drivers/net/dm9000x.c +++ b/drivers/net/dm9000x.c @@ -126,7 +126,7 @@ static void DM9000_iow(int reg, u8 value); #ifdef CONFIG_DM9000_DEBUG static void -dump_regs(void) +dump_regs(void) __attribute__ ((unused)) { DM9000_DBG("\n"); DM9000_DBG("NCR (0x00): %02x\n", DM9000_ior(0));