From patchwork Wed Nov 30 20:46:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 701192 X-Patchwork-Delegate: monstr@monstr.eu 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 3tTXXf42Q6z9t1T for ; Thu, 1 Dec 2016 07:47:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="Dp1m6H4b"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 00ABDA7609; Wed, 30 Nov 2016 21:47:12 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 zTJndHfzUIHg; Wed, 30 Nov 2016 21:47:11 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7AD4BA760B; Wed, 30 Nov 2016 21:47:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F54FA75B7 for ; Wed, 30 Nov 2016 21:47:01 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" 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 RNcy5Ivz6a2d for ; Wed, 30 Nov 2016 21:47:01 +0100 (CET) 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 mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by theia.denx.de (Postfix) with ESMTPS id 09E26A7550 for ; Wed, 30 Nov 2016 21:46:59 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id m203so31120600wma.3 for ; Wed, 30 Nov 2016 12:46:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=6uHmvHQodOAaETpACOpyrEVupteaNDK4eesPjj+xmZU=; b=Dp1m6H4bDNLieJ7FapKpQLs+28Qz2pVg0ynLjfYmRh5in27UqkEy+cBgIpvqf/w2vL 2P/XBPzcu3HjbdE4iwIvrtl+C6oevUgNDg18gzq9SdaTTO2KJxLaDYd+S+VEbJUQG119 Tx9T09k17HNvpjTAgsdf6D+SVNxQzfsGwYkhjtrehT4Z1ehBJ+UczL27tm6gP9QpNTIi nmveb3g0SnT42A84b/IuAe3PDK4jCKacdVjPBqIOq2rZMP4AW/jb6kKOx7IE+rMJrm5Y 98hs2VOYk3aVDtYKXnFGC/S1g36BeuywuK0IfeyVVJnjhPkb+m624QggL4ZbKrT0HRRA WeCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=6uHmvHQodOAaETpACOpyrEVupteaNDK4eesPjj+xmZU=; b=GCXqk/5vLMnFchMAJxnlK3IlfMyRMIQnjY9Y2vXvSUr7QIqj2rD2fpW8n1xi6UyPm9 IEqC+l1/C/Yft0m/lohuRvBo4DY83C/YqaBnbAvpcufBcRsNp3e7XNOIHVZv3GaKIwT0 dEUcwY94C+jw5rtYgdH8+FHhinWhRrGHbc25q0WdKz+57hKUBJLRLBvJPzhgs7pSXJSM LyOFW5XelZmeKnJLV9FbhwV13DOwO9Y+N4BrHrZEFKtJOGlwyTGV+kKo5b9PkexNINKq P+Bj3jlTY5NxS3BEmfDeSyCJAv3gqRHRz++DwMEo4M1mnimAagLKq0R9x+miMsdfBwNi KGcQ== X-Gm-Message-State: AKaTC02ReDffIKwNZnBhgT8DOVzjMCVo/phum0dfIZEBmHNIvlp635pvlhq8HtvjhLmN2A== X-Received: by 10.28.217.195 with SMTP id q186mr30994682wmg.17.1480538819415; Wed, 30 Nov 2016 12:46:59 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id w18sm9719821wme.9.2016.11.30.12.46.58 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 30 Nov 2016 12:46:58 -0800 (PST) From: Michal Simek To: Simon Glass Date: Wed, 30 Nov 2016 21:46:49 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: <8c42f4113fa6cf67146dcc512e2d7a3f981074cd.1480538807.git.michal.simek@xilinx.com> References: <8c42f4113fa6cf67146dcc512e2d7a3f981074cd.1480538807.git.michal.simek@xilinx.com> In-Reply-To: <8c42f4113fa6cf67146dcc512e2d7a3f981074cd.1480538807.git.michal.simek@xilinx.com> References: <8c42f4113fa6cf67146dcc512e2d7a3f981074cd.1480538807.git.michal.simek@xilinx.com> Cc: Stefan Roese , Stephen Warren , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v1 3/5] cmd: scsi: Make private functions static X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Two functions should be static because they are not exported to any other file. Warnings were reported by sparse C=1. Signed-off-by: Michal Simek Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- cmd/scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/scsi.c b/cmd/scsi.c index 387ca1a262ab..a9c954a82f3d 100644 --- a/cmd/scsi.c +++ b/cmd/scsi.c @@ -17,7 +17,7 @@ static int scsi_curr_dev; /* current device */ /* * scsi boot command intepreter. Derived from diskboot */ -int do_scsiboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_scsiboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { return common_diskboot(cmdtp, "scsi", argc, argv); } @@ -25,7 +25,7 @@ int do_scsiboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) /* * scsi command intepreter */ -int do_scsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +static int do_scsi(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { switch (argc) { case 0: