From patchwork Sun Dec 8 00:21:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 848266 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c2:0:b0:385:e875:8a9e with SMTP id f2csp1467618wrt; Sat, 7 Dec 2024 16:21:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXX/zFc5eLUz1oxOw/lLhYtKwWF1RjgttIlrlz48fE/qxO3nLLhXslASVP8FKZqzUyXG/rrnQ==@linaro.org X-Google-Smtp-Source: AGHT+IFhiRkSP/xz3pOTSYeLW/Uigql8JVO3umb2h70JGMSb2An7nQSx48XCU2Vk8AG2zrFC/5+5 X-Received: by 2002:a17:906:9c9:b0:aa6:3de7:f254 with SMTP id a640c23a62f3a-aa63de7f3b7mr653037466b.41.1733617314743; Sat, 07 Dec 2024 16:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733617314; cv=none; d=google.com; s=arc-20240605; b=Q0O2nZcmp6jGozmTVJyLYkzrjwPVCZW7MjgZzPDnrYSG0bPG6zFY66CGa0glWxmbvR 7SE0B9FyaFDkSmXGR7x6YwPilI2ERJJA2Lj8jDDEgMs9HFsSO2oBiVXumHt/5XW9jfZN 5R5BK5wT1e37yWSpoB5fKUgsHGlGMIRhFBD8s5Mb8BJ7NiXiGq2fz17N9Im9mzEiUWaR ObYGNZ/C7a2Ev8Xz8H33/urxdlPaysLLkz5GDn4jlTn7p3WGaWM4Fo/+BlnLBtVF7jS/ FfjhxHWefireJOSUEWzFHLGTY9BDFQlxg4tJrpQssxvqJLPq1I6mbbR7CGH+JrrMpOal cVZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YIqLi+LU0gMp1928vzjIFNBq6//rtBT59aOVqHfPg8M=; fh=2+wB7Lh+5VeO58IB//yN0X0Kl+yd1DdGyPRnvIl9OSc=; b=cdh+/X4EBIlKP/6gNDk8IUY8uCC8a0ZB8lQLBsH8QeLmV+kiB/bF2Y/OzidcyY1+fS 2Eg3eCWXRzBBe/ys/Jdmu6EHzPR3lxF2sGyHHRxB8C55f7x4nKm9cYHSllyZJz3hfnxR gintohPks6J7R9nHA/jHWWau12ExHg5f5v7qhPPmL4orPe9gsuQGV6XakAbRbI3Ci4g7 PsjkxuPd01iHuSKti/SF4wLQeHEyka3vyTBXo76R2laMlRqCANfcG0CnDvnZrZyKyecw DcGvdAyzEr7IGEioK776MNWUze+bcHfHf0SGNd/3lPazhFU9YIrYQTs1x6v3EmALQ5H9 w7Vg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oafd8Xnt; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-aa67400cecasi40691666b.422.2024.12.07.16.21.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2024 16:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oafd8Xnt; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DAD3089486; Sun, 8 Dec 2024 01:21:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="oafd8Xnt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75A84893D4; Sun, 8 Dec 2024 01:21:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (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 45D55893D2 for ; Sun, 8 Dec 2024 01:21:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3ea32c929a3so1003188b6e.1 for ; Sat, 07 Dec 2024 16:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733617287; x=1734222087; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YIqLi+LU0gMp1928vzjIFNBq6//rtBT59aOVqHfPg8M=; b=oafd8XntKIi6xkL7dJBB43DFyQBlbOn5mR7V+2WrLM1v7swT0mWwmQ0vzsBgJzdHBR 3yQJdgU5uat6TmeKtCEchVrhRcNMORemlLSBpesO4WVfZagW/VtKpmNsZRY2+W4sCsc7 xYcR08YZMw0CoTaObwA4DUwvM0Gd6F/aSxWzjR5ROh6Bu4pXPjQk44izgYH93rvElpeQ a/A4DLAIpCE1cA2Zrv4cctMQu0kcuUuJCl07ZjjMJXo2UmfQLMn8+3MlSCkNPWnQ7KP7 Id8d87SuwrTpeYMDHiiH/1wJt4UufgOwxKROqWuG+Scz6KREIsqE6aqJfAirXp1n4v11 BkoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733617287; x=1734222087; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YIqLi+LU0gMp1928vzjIFNBq6//rtBT59aOVqHfPg8M=; b=NBOg2qYVPbtiTLg45+rqt0dignexnt7zZb43nT3xRZSue9S3OrTM5mZ3knWN2EhYYs CX5NS658jrp3hRcUOLotosAV2BvWz2muE5ulo/B27ufomxLHaIoDlLj05OutVobXfqEj tCdnXQShE3GctKeniYbbEU8DMgL06WkYZXySdDDxdvleTu6hJjIGf5KH8lVVFqP57FcL Pq+rX8/JZ0PYdkp//0xbpv9++thn7D74/pRNgNRrYELaHpmPdHVKM9SmpowleN8hVugo zxVJ29UgduvtfKbNST50U3Jd7DdzEKdo4WL7J3ZF5m7Miwu9wt9wzh19c83NpldiAzW0 oa5g== X-Forwarded-Encrypted: i=1; AJvYcCWFrmbXKX0f5glsFuvHlDShdOF6XPuJ/Jd1QhecOOiPd19BH17C+h/F52K1DlpR5U0rYEbC0nE=@lists.denx.de X-Gm-Message-State: AOJu0YxZWJJuprYT2IDDlCIcY7y+0j9UQaziRzGg9KHzILp/tgKNY+Cv Z7jpGAFsK31r66oI9UMl0PDeLrvbXQNeEzBzbVkzPbCFbbnPg2OP3jW7VksP/LA= X-Gm-Gg: ASbGncvrnkzYpcj5+7Uwh/nAKBBV6tVOGirHJJrfDfhiAvw0OuHGH7qyvf9z8jAAMfS TjcXSX+IrCGQJp86dcenfAN95NbVhHym6Z7irHMitYMIp1YQsWp2P0uMGUkNqc++akhaQruPyz0 u3PeRj5urrpPPgnn75isfnYIURsfan5YTUnbRBueHLD/4rE+/ro6x84pPhHAfrOkGseVYtZNNao 3xRBbofzOzBm5PvCv/ZvVjxBcDdw/E02y9yq/ZV3gKxsdB5j3x4BiM= X-Received: by 2002:a05:6808:1688:b0:3e7:61f6:811a with SMTP id 5614622812f47-3eb19ed2188mr5187222b6e.35.1733617287017; Sat, 07 Dec 2024 16:21:27 -0800 (PST) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3eb40c6009esm300705b6e.28.2024.12.07.16.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2024 16:21:26 -0800 (PST) From: Sam Protsenko To: Tom Rini Cc: Ilias Apalodimas , Sughosh Ganu , Heinrich Schuchardt , Simon Glass , Caleb Connolly , Marek Vasut , Laurent Pinchart , Patrick Delaunay , u-boot@lists.denx.de Subject: [PATCH 3/6] lmb: Make const flag_str[] in lmb_print_region_flags() more const Date: Sat, 7 Dec 2024 18:21:18 -0600 Message-Id: <20241208002121.31887-4-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241208002121.31887-1-semen.protsenko@linaro.org> References: <20241208002121.31887-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean flag_str[] is a pointer to const. Make it also a const pointer. Improve a style a bit while a it, to make this line fit 80 characters limit. No functional change. Signed-off-by: Sam Protsenko Reviewed-by: Ilias Apalodimas --- lib/lmb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lmb.c b/lib/lmb.c index ce0dc49345fb..1642ce48bbbd 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -482,7 +482,8 @@ static int lmb_map_update_notify(phys_addr_t addr, phys_size_t size, u8 op, static void lmb_print_region_flags(enum lmb_flags flags) { - const char *flag_str[] = { "none", "no-map", "no-overwrite", "no-notify" }; + const char * const flag_str[] = { "none", "no-map", "no-overwrite", + "no-notify" }; unsigned int pflags = flags & (LMB_NOMAP | LMB_NOOVERWRITE | LMB_NONOTIFY);