From patchwork Mon Mar 14 04:17:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1604891 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=Ce+uWC+3; 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) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KH3Dc2v7Qz9sGN for ; Mon, 14 Mar 2022 15:18:08 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KH3Dc1P4Bz30HX for ; Mon, 14 Mar 2022 15:18:08 +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=Ce+uWC+3; 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::52d; helo=mail-pg1-x52d.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=Ce+uWC+3; dkim-atps=neutral Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (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 4KH3DJ6khJz303H for ; Mon, 14 Mar 2022 15:17:52 +1100 (AEDT) Received: by mail-pg1-x52d.google.com with SMTP id bc27so12689991pgb.4 for ; Sun, 13 Mar 2022 21:17:52 -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=+ZIXsujvzCD470l/nVoPLWyhs6kP+VU1Nbb1zAo00vg=; b=Ce+uWC+3fv0xn30C5le5XV1oA+pjTl2hCPjesyjs/LnE5Ue0h83DZwt2tBG2LBWF66 YF99a7juG4m76v7XfWMq2Nk8As8PZ+4SYjQVPNyW65bXptCFo0E8GG8B5rni4RLw9n4p EMg+NBpRITvnFSoCUix6ZKwGAtRMAvwe6+61OiLRj8hUmesmPFeEZm7u/b1RdDd1I93x RuuMNRezl9Xb+to0kE98BeoKnIPuKzCMQXRrjTBVc1PeGgVQwLBzOPO0fpCKpFMp2FDV AIhUUpXGIM2CGn6nX11st7Itj1kIIvrmvCkJFUQHlvvPIyc3romUTiqOO93EpO9+JkL4 CvrA== 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=+ZIXsujvzCD470l/nVoPLWyhs6kP+VU1Nbb1zAo00vg=; b=EpvjF1LRw3WEyUsTlgyxIrLKk1q+s+bNkAzO4gjIcBEN6YWhgIJzd0+2Va7eKQqJ4e QH0SU7rguDy/oFWKhYRVPIUUoUISjECwK9sMi1fz53DDlvYEICWtfFZVPrAzd90+Xhx7 J+MfwbuILweVcF4dWnaACrjg8y6o00uVnT9B8D5KIpYxeMcKTPgM7R4eMD7UzfNEXWv4 3HBQqcsaBMkMCQdBIqiXRwIqQckV445GzDzoTzucmW8pQ8X15WEi/l/0HTv/J+WQ+bzQ xvFkBlLhpOFEHgPzEb00goXx6OVehbAqmmWD8KuIdBCUbWpWvV7xedK8NQtfQ5YWdBwq PCnQ== X-Gm-Message-State: AOAM5330W3/zvtzZ0pQROZZLE9em1bOjimDiDPkTOaPa+vPZ2zNvsPzx r5MK8wm4MzbMyOgEgeGizulktss8PM0= X-Google-Smtp-Source: ABdhPJyLTLhuX8TVt9+2eY14dnGhFrjzmRsBy2YvQKEfFMgFzc4QvsTCOUxLXFeF2Jsml1vs+GEb4w== X-Received: by 2002:a63:540b:0:b0:380:a069:c53c with SMTP id i11-20020a63540b000000b00380a069c53cmr18834531pgb.31.1647231470750; Sun, 13 Mar 2022 21:17:50 -0700 (PDT) Received: from bobo.ibm.com (110-175-148-108.static.tpgi.com.au. [110.175.148.108]) by smtp.gmail.com with ESMTPSA id d16-20020a056a00245000b004f771b48736sm14283018pfj.194.2022.03.13.21.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 21:17:50 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Mon, 14 Mar 2022 14:17:24 +1000 Message-Id: <20220314041735.542867-5-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220314041735.542867-1-npiggin@gmail.com> References: <20220314041735.542867-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 04/14] 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. Signed-off-by: Nicholas Piggin Reviewed-by: Joel Stanley --- 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,