From patchwork Wed Mar 9 21:48:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 11293 Received: (qmail 43622 invoked by alias); 9 Mar 2016 21:48:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 43556 invoked by uid 89); 9 Mar 2016 21:48:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 spammy=20160310, 2016-03-10, Hx-languages-length:1271, regnum X-HELO: mail-lb0-f171.google.com Received: from mail-lb0-f171.google.com (HELO mail-lb0-f171.google.com) (209.85.217.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 09 Mar 2016 21:48:47 +0000 Received: by mail-lb0-f171.google.com with SMTP id bc4so85213584lbc.2 for ; Wed, 09 Mar 2016 13:48:46 -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=wiatf7pdejmW5zgj9/pZwAoCCSBOurV+PmyllYqnTIM=; b=JOfBg96NSYfYuo7mOyF65fxpYhBMpZ4ZL9Ujd3Uz+Ju7jKzwEjRlnHB1KTKdjsY1F+ mQNWuq8Y+kdGsSHCue9QF/FU57wC7AyQselUvYDgEJaw83xpmXzDhj4KGD3+G+pJSj0r l+VE4BSDkSJs4iM8sTiKaYOyJ++9G2zWv1OYwhJupEu8I0MtLdHdIlUdxr0NexpJBzXn Ir3vkx48YhbdytjxIMizAWxh9uGBLcJUujofqzAOQrygi4GM6c+jGQAOtGh7SoeW6Tv7 +TkRPd3dWsjo81ZfpLw4zznZDNnSfw2Nak220mxOKZpZsD7gXrnynONse1iIxCmMfEAe VGAA== X-Gm-Message-State: AD7BkJInizUa/lKMvSN12W5D5S/Cz5QHfVZWUsCr558OdpO3lXzWK8dQhDbwNyuQ3ZE19g== X-Received: by 10.25.138.7 with SMTP id m7mr162888lfd.109.1457560124065; Wed, 09 Mar 2016 13:48:44 -0800 (PST) Received: from octofox.metropolis ([5.19.183.212]) by smtp.gmail.com with ESMTPSA id mt7sm79530lbb.25.2016.03.09.13.48.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Mar 2016 13:48:43 -0800 (PST) From: Max Filippov To: gdb-patches@sourceware.org Cc: Maxim Grigoriev , Woody LaRue , Marc Gauthier , linux-xtensa@linux-xtensa.org, Max Filippov Subject: [PATCH 1/2] gdb: xtensa: make locally used functions static Date: Thu, 10 Mar 2016 00:48:25 +0300 Message-Id: <1457560106-5830-2-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1457560106-5830-1-git-send-email-jcmvbkbc@gmail.com> References: <1457560106-5830-1-git-send-email-jcmvbkbc@gmail.com> This fixes 'no previous prototype for function' warnings when building gdb/xtensa-linux-nat.c 2016-03-10 Max Filippov gdb/ * xtensa-linux-nat.c (supply_gregset_reg, xtensa_linux_fetch_inferior_registers, xtensa_linux_store_inferior_registers): Mark as static. --- gdb/xtensa-linux-nat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index fa62732..4247f70 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -103,7 +103,7 @@ fill_gregset (const struct regcache *regcache, } } -void +static void supply_gregset_reg (struct regcache *regcache, const gdb_gregset_t *gregsetp, int regnum) { @@ -260,7 +260,7 @@ store_xtregs (struct regcache *regcache, int regnum) perror_with_name (_("Couldn't write extended registers")); } -void +static void xtensa_linux_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) { @@ -275,7 +275,7 @@ xtensa_linux_fetch_inferior_registers (struct target_ops *ops, fetch_xtregs (regcache, regnum); } -void +static void xtensa_linux_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) {