From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEADEC433EF for ; Sun, 19 Sep 2021 21:50:18 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1382660F9B for ; Sun, 19 Sep 2021 21:50:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1382660F9B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE2F383267; Sun, 19 Sep 2021 23:50:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="hUUQSkkz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A275183252; Sun, 19 Sep 2021 23:49:50 +0200 (CEST) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8A2BA82DA1 for ; Sun, 19 Sep 2021 23:49:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x334.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so20945163otq.7 for ; Sun, 19 Sep 2021 14:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ltsZl6v9OgHf5XjzPGMGQVtwkGN/7fLKS3I498w/HeA=; b=hUUQSkkz9QIBa7/HTdLPExVEBg9EM1cC/+taSzQ3c3d9i3A56fT2NGeBEeop4RUA+D 5DP1qGVl5A5RmYFRJ2d1jhZOIwcKCX1Y2n9S8lEUc2SwXJgkD4g2zFeH7cTLglPa9qRa OnqVZffq146O6/k1qdP/428h/eUY06LhxS07o= 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=ltsZl6v9OgHf5XjzPGMGQVtwkGN/7fLKS3I498w/HeA=; b=K4lrsKBTAkGSsNHAP8iJ1BGKrkkI6qKMTqXPPB/wmF+NxBWOFBZUN9lWVcKwuXEJQn TfJzFo6UsZqzUM3FBVH1HpQoXVQyBdqmYanNCLfeUyMbAW318pq029wEpmPANf8WCs0S cYMmEOBcoxruqVu/ivUXSm/irtCuTodT/xFzqKXDlPvcOaTrnBMJu13GLfBBhT/CkoUF IYnJNYABQ+WcQclqIM58vU7AT+Pv6FrhQGmaYukk2G1dhb2/HK1C0Dda5uBKyuoRwxSk ZDTq1u4oehAinnrPuXz7EPYhsZjzJbCWBXnaa5pLG3WfU/9YY5Afwbo+4JENX5ZqhXEA giyA== X-Gm-Message-State: AOAM533kRQGDTwqcLONAWBB6aryxyG1lvDWRY6R6oYtUyr85WhL1PcZq BFpiDuFSpcRs8OC80EAVYaahrTybsFzE3A== X-Google-Smtp-Source: ABdhPJzIx25RPUuX1bwi8cW18riqREIt57CX5Ye68OZQCSS30YnFFqLeKmiMk5ZF8EFspvO/RRmp+A== X-Received: by 2002:a9d:1708:: with SMTP id i8mr10811791ota.233.1632088182749; Sun, 19 Sep 2021 14:49:42 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id q25sm519897oof.33.2021.09.19.14.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 14:49:42 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Jagan Teki , Heinrich Schuchardt , Simon Glass , Mike Frysinger Subject: [PATCH v4 2/5] sf: Use const for the stage name Date: Sun, 19 Sep 2021 15:49:33 -0600 Message-Id: <20210919214937.3829422-3-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog In-Reply-To: <20210919214937.3829422-1-sjg@chromium.org> References: <20210919214937.3829422-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This is not updated at runtime so should be marked const. Update the code accordingly. Signed-off-by: Simon Glass --- (no changes since v1) cmd/sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sf.c b/cmd/sf.c index eac27ed2d77..15361a4bddf 100644 --- a/cmd/sf.c +++ b/cmd/sf.c @@ -394,7 +394,7 @@ enum { STAGE_COUNT, }; -static char *stage_name[STAGE_COUNT] = { +static const char *stage_name[STAGE_COUNT] = { "erase", "check", "write", -- 2.33.0.464.g1972c5931b-goog