From patchwork Wed Apr 20 06:49:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1619334 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=nhbiCoIK; 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 4Kjrsf5vp3z9sG0 for ; Wed, 20 Apr 2022 16:50:46 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Kjrsf4hr0z2yWn for ; Wed, 20 Apr 2022 16:50:46 +1000 (AEST) 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=nhbiCoIK; 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=nhbiCoIK; 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 4Kjrsc4JFCz2yyG for ; Wed, 20 Apr 2022 16:50:44 +1000 (AEST) Received: by mail-pf1-x42d.google.com with SMTP id i24so1094919pfa.7 for ; Tue, 19 Apr 2022 23:50:44 -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=A+u7iVLDIQ41FZf5vMM8eJREctPOKCkbYgQYTvfbWkU=; b=nhbiCoIK8N1yDxPVmdfxNGQGf0JMibg0+7KKoKtTJps/bHsgUpeSrra0fwfqVEcg6u GzY6SgQS0wXbmr5JTgKOrl8GsCvLUaYa9DXTtoOzFIrVf2qaTiDRuVNXErZCDHEzZajH RFrSdrhnOHlFV/pYf6Ocp8P/a9FK1E6gHZSNcoJ8ZJDU7Noq5HPQKYudjcwTxrvWW6Pp vxmvPtfbJOUCjfu1iu792WIyZcFburiQ3aMVOVYi8+ieFQmZ4+RmgBhmk8WftgTffmQF Yvj3i3Y91AYwqUEiL6KZkGhN5Maqf/HTistqoNscG5A3BiIeT1nvKMdIK8ygyudNrE72 DWVA== 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=A+u7iVLDIQ41FZf5vMM8eJREctPOKCkbYgQYTvfbWkU=; b=voP5HpKIM8YfYqC48DZo4Y7i5o2SIm+U7LSNCYQ5fLybbsj/2V8nXXAsgbhEgL6XlL MHd7Iul9ZflTPTKHv6rY9RoOGJHYk2kzQwo1hRIaNyrKbyKOw/sCWBj/uA4mnjp0o3ET iZVwAnlt4lb4mrQsDhutA5vEijg4wmKV9IYzL2+1cdSrHKQHMD89z+Ym7ThYyNWCkj1k i8sywvh7gkP/tjaP+50GIvMd2UAujYq1JqCrqXtF8yR20fW30jXzRMEtfkIcaVzYKXxi V1q1YmdsiiC2c9nel3a0WhD1fqL1Cfs52GIq0S/etxSodlfCzfcKOTPJ4dZ+jc7RJauS 3DqQ== X-Gm-Message-State: AOAM531BWgYPw0KKlig340UyXNktvzyKRUN4S8jX8+5FNDDYBP9LAlXk taOsb3kOB1dNO2kicsp8PbSWw7BgH4Gkzg== X-Google-Smtp-Source: ABdhPJyrcCC/jC7LoaPMtlR1Xs21J+T6WqulQuzLlZ3ZrplmmWrMOCPwvkJxkD/CtCRzG7lrCuiHLg== X-Received: by 2002:a63:d13:0:b0:381:f043:c627 with SMTP id c19-20020a630d13000000b00381f043c627mr18282099pgl.168.1650437442200; Tue, 19 Apr 2022 23:50:42 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([203.221.203.144]) by smtp.gmail.com with ESMTPSA id x20-20020aa79574000000b005061f4782c5sm18481235pfq.183.2022.04.19.23.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 23:50:41 -0700 (PDT) From: Nicholas Piggin To: pdbg@lists.ozlabs.org Date: Wed, 20 Apr 2022 16:49:42 +1000 Message-Id: <20220420065013.222816-9-npiggin@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220420065013.222816-1-npiggin@gmail.com> References: <20220420065013.222816-1-npiggin@gmail.com> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 08/39] gdbserver: Make command callback array 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 e32f5184..5a8b5f99 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,