From patchwork Tue Mar 29 15:49:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1610689 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QmTwg0PQ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KSYt14vwSz9sFk for ; Wed, 30 Mar 2022 02:50:01 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KSYt14Ttvz2xvv for ; Wed, 30 Mar 2022 02:50:01 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QmTwg0PQ; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::42d; helo=mail-pf1-x42d.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=QmTwg0PQ; dkim-atps=neutral Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4KSYsy33Wzz2yR4 for ; Wed, 30 Mar 2022 02:49:58 +1100 (AEDT) Received: by mail-pf1-x42d.google.com with SMTP id t5so16262072pfg.4 for ; Tue, 29 Mar 2022 08:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7L/WP+N5xIZ2DTr1VV7mKvK3ERmRRxLOHJH30MW6PtU=; b=QmTwg0PQAXVF8K3TfLoU3QaPDJPpZKLWWQf0KNBnT2rUy9X9gITqRtZRcdRxfdCxDa t9bqVn6/3Ze8UUbhUOOcHKmccSuteqgL8LKKs0y2TM6NCQBOfmojA2kHyKUffIDBlTcT bkhbW+T83SAqsYuc8idaByQqIlHKUWH1e3MIEXDgJng74UFia7nRJQ3KPk507yhpUSIT SEksmQTduAEnGJI+vUxp6uskPKi8AHJhR7o9CdahEqbZSq/aYcCBwJEQeboqTkn0tmAL 2T4WN6WNaFjKH0FtRwBbyFWwAXqGYMyMi4EW4kAcksoTwhJy2bDLHuz4z63mOHpWh8ux UJew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7L/WP+N5xIZ2DTr1VV7mKvK3ERmRRxLOHJH30MW6PtU=; b=AVo8TarqTPvuXX1ulXABLRafka36srVgg3boi0rX/sT0jX5xUUMP5YG3EkRMbG4/sx wfPJ/KNeRFjyx2d4BBJyIC8b9JLW01MQpKB0qoVWxUM3PJoQQ1EUUPbClHSKtsXwwyyc HVl2RYodo0m9GvOuabiNEwQ4hxefRk8UL00UTTm25qRP8mKIhSTukG1q61fArUZx2083 Hr0irByaEUyrPb675u+1+BYYG4xWkShbcSxi0skWcyqM5WG+Y9GciSdVl98BKcG5PRdF fTJmiyTaUAZwQjOHjxWK8GYLFeTESF1LS1F7HI5Jw7RHG9LnY1BEoT8fFeYVOMCqZd7M YslA== X-Gm-Message-State: AOAM533GiAmZygCA+XYegfK1+RWTywVpLHcZ94Bp9ucUQREQTzWKKqRV m/Hzp6x/3+n6vt03b4iIogYyX0Xf4no= X-Google-Smtp-Source: ABdhPJxOjE4VCrB+NPHrUA50Tm8m1IVCWYGZwTqNwBcq+E6Hqg0zh0ZeJcdNzrCGauoEkPKGPUf/8w== X-Received: by 2002:aa7:8893:0:b0:4fb:10e1:8976 with SMTP id z19-20020aa78893000000b004fb10e18976mr21500627pfe.36.1648568996208; Tue, 29 Mar 2022 08:49:56 -0700 (PDT) Received: from bobo.ibm.com (58-6-255-110.tpgi.com.au. [58.6.255.110]) by smtp.gmail.com with ESMTPSA id s35-20020a056a001c6300b004fb20b5d6c1sm14163564pfw.40.2022.03.29.08.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 08:49:55 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Wed, 30 Mar 2022 01:49:00 +1000 Message-Id: <20220329154931.493851-8-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220329154931.493851-1-npiggin@gmail.com> References: <20220329154931.493851-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 07/38] gdbserver: Make command static X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" The command array is local, make it static. Reviewed-by: Joel Stanley Signed-off-by: Nicholas Piggin --- src/pdbgproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdbgproxy.c b/src/pdbgproxy.c index e32f518..5a8b5f9 100644 --- a/src/pdbgproxy.c +++ b/src/pdbgproxy.c @@ -405,7 +405,7 @@ static int read_from_client(int fd) return 0; } -command_cb callbacks[LAST_CMD + 1] = { +static command_cb callbacks[LAST_CMD + 1] = { cmd_default, get_gprs, get_spr,