From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41160 invoked by alias); 3 Nov 2015 14:27:15 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 41099 invoked by uid 89); 3 Nov 2015 14:27:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg21.ericsson.net Received: from usevmg21.ericsson.net (HELO usevmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Nov 2015 14:27:05 +0000 Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id 23.E6.26730.BC658365; Tue, 3 Nov 2015 07:40:11 +0100 (CET) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.87) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Nov 2015 09:26:53 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH c++ 12/12] xtensa: Add missing statics Date: Tue, 03 Nov 2015 14:27:00 -0000 Message-ID: <1446560804-18858-12-git-send-email-simon.marchi@ericsson.com> In-Reply-To: <1446560804-18858-1-git-send-email-simon.marchi@ericsson.com> References: <1446560804-18858-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00091.txt.bz2 From: Simon Marchi This actually fixes the build in C: /home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:100:1: error: no previous prototype for ‘supply_gregset_reg’ [-Werror=missing-prototypes] supply_gregset_reg (struct regcache *regcache, ^ /home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:257:1: error: no previous prototype for ‘xtensa_linux_fetch_inferior_registers’ [-Werror=missing-prototypes] xtensa_linux_fetch_inferior_registers (struct target_ops *ops, ^ /home/simark/src/binutils-gdb/gdb/xtensa-linux-nat.c:272:1: error: no previous prototype for ‘xtensa_linux_store_inferior_registers’ [-Werror=missing-prototypes] xtensa_linux_store_inferior_registers (struct target_ops *ops, ^ cc1: all warnings being treated as errors These functions are local to this file, so they should be static. gdb/ChangeLog: * xtensa-linux-nat.c (supply_gregset_reg): Make static. (xtensa_linux_fetch_inferior_registers): Likewise. (xtensa_linux_store_inferior_registers): Likewise. --- 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 5538d5b..d024408 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -96,7 +96,7 @@ fill_gregset (const struct regcache *regcache, } } -void +static void supply_gregset_reg (struct regcache *regcache, const gdb_gregset_t *gregsetp, int regnum) { @@ -253,7 +253,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) { @@ -268,7 +268,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) { -- 2.5.1