Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp115858ybk; Fri, 8 May 2020 15:35:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKWD+B0Jz5dlKyhVcWSlJjOreXMOZaOF/wir67v56eE2q525uw8kRuDaG+hMZCH9r1EwV3B X-Received: by 2002:a17:906:4dc8:: with SMTP id f8mr3948638ejw.23.1588977356041; Fri, 08 May 2020 15:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588977356; cv=none; d=google.com; s=arc-20160816; b=ZPfA4z3ba8j2r4s4K3mJkEishEqxfJEudneqO8HoP3LZECT1+pRM1dbliKvEiwZ7j6 xr+aAe7+OtqI0Pk7ORJwTywE25PJUl6T3rVeRAVQT4cbowf6M9vCJe5i0Bv/LUkr4pzO I7QQ/lSgXGMkxHVfcJSKQpIpVGfQv2uET6KDvK8F79roHnzcGjw9Ez1cZnh0aFQfVNXf 8Dk7Kmr3L8hy/6SqdNGlFjJXNZiAP9OsJmf0eS2SFJoNQuAk9O8RskbfPb7G6sPqGwSw fRA0rizypd2y70xcG4hBWrVFY4fCxeIBLdOqGZ7HXH4Dh4Geecn7bsTjohoJl1QgkhkR g60Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E1Mfd5yafyl5kV91gpEeu6FbVfgj9pE13Xj752dXqhI=; b=hhZYT+VHAy2yuss2Df7N2IIwxC3QUqVL+FTEYG1BY+vwE8bOsqZloLCDtwbrt0qz0G VAd4NJRLe6i7WndVSZpjxncOFmxT1NaCgQsOp/XI7BFns0Wym2vuwYBz3++eLPXlLEwJ XKx/DKOPsL6sHTRbgky745wGrdkEQypcLx0yn9YaG6oMpG+ZHlX93/smOt3P9i/6BPuE hqJP6MRIAKtIM9ho/An/3DhLj70SIi5bDBMbg04rPbvHpC3iI017+n4C0PqdUuueHsK5 JJOGZAJOwwQyc0UEShvLc7GmZpK+wFWc6/O0HpwhtaEi7/KKmvEV9qyOdVcrcWeQotxi 6QBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pbWzq21r; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si1183675ejr.380.2020.05.08.15.35.25; Fri, 08 May 2020 15:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pbWzq21r; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbgEHWfR (ORCPT + 99 others); Fri, 8 May 2020 18:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726843AbgEHWfQ (ORCPT ); Fri, 8 May 2020 18:35:16 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 205E3C061A0C; Fri, 8 May 2020 15:35:16 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id a4so2660815lfh.12; Fri, 08 May 2020 15:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E1Mfd5yafyl5kV91gpEeu6FbVfgj9pE13Xj752dXqhI=; b=pbWzq21r7wR6Koc/nr7AFi0gwVhM5+GUtQVNB2D+pcMeyIQEOFwfgvZgTkpY92gfP+ uHJNgdzSQQ6snGAS0nVrm2VlUsO3GeNrdXcc9iFhYyMa3jqbag7HZ2medKdPqwsCXW/x 0olNvEtc+3aelOOa0qEIk3W4oNEueEkKLP3gBnfHD3+/1NDyhr2SsKNJHxvMU7F2Vk8l PxeN7ma+FycY77JWr0okYxiPivd8hSXI5t8eHZ0f/Uelr5UVgu0PzD7GJSDjPrLnFMQN Oz9KKunPx4vC1SpVPN3kjxYeWEbBwDaiDZkcxtYv7oB+XokCzBkwpGMzdW50EcLF2wVp Wk/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E1Mfd5yafyl5kV91gpEeu6FbVfgj9pE13Xj752dXqhI=; b=nj9ZwA613uSBaFO7U/+BlDqAOp66+M6cVwSD/Vk8G1Gorv15tq0XvDPYQE7MJCMPsk yMGOq5UC9+jAnd7eu0TzV0VXolYbQAbXeGiPQWrXtxEopoABSbKN5JSdwN/p24A03xO9 sP+fDTd2Qe8K0GnSmNNSBwA07ySGvL/RBP/4d7Cxjkx+HgzAZx5OR/yFV8EEj/kpOE7M E2M9jTZFw4j/LwOOVp5s97iPJVI182qG6Cnl/qep+3JwNoUhBYZOtAdAW9H/OdtwennS kWCghgEHsNrgE7G5eF8PyiJbg/0pY23H+XBuV9K9C1DyWlxWKLQiCU84qfIDpxsqK+Lo pTuQ== X-Gm-Message-State: AOAM531XJxA3QDECxiDl7vOEIA+tdvAzUXgKNxKa9jKuH6GsNQj5GWg8 QDbhDX6OZxvZcniRn/eds4U= X-Received: by 2002:a19:6905:: with SMTP id e5mr3291427lfc.175.1588977314621; Fri, 08 May 2020 15:35:14 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-22.NA.cust.bahnhof.se. [158.174.22.22]) by smtp.gmail.com with ESMTPSA id s11sm2316501lfo.86.2020.05.08.15.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 15:35:14 -0700 (PDT) From: Rikard Falkeborn To: Gilad Ben-Yossef Cc: herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH 1/4] crypto: ccree - constify struct debugfs_reg32 Date: Sat, 9 May 2020 00:34:59 +0200 Message-Id: <20200508223502.7258-2-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508223502.7258-1-rikard.falkeborn@gmail.com> References: <20200508223502.7258-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org pid_cd_regs and debug_regs are never changed and can therefore be made const. This allows the compiler to put it in the text section instead of the data section. Before: text data bss dec hex filename 2871 2320 64 5255 1487 drivers/crypto/ccree/cc_debugfs.o After: text data bss dec hex filename 3255 1936 64 5255 1487 drivers/crypto/ccree/cc_debugfs.o Signed-off-by: Rikard Falkeborn --- drivers/crypto/ccree/cc_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccree/cc_debugfs.c b/drivers/crypto/ccree/cc_debugfs.c index c454afce7781..7083767602fc 100644 --- a/drivers/crypto/ccree/cc_debugfs.c +++ b/drivers/crypto/ccree/cc_debugfs.c @@ -26,7 +26,7 @@ static struct debugfs_reg32 ver_sig_regs[] = { { .name = "VERSION" }, /* Must be 1st */ }; -static struct debugfs_reg32 pid_cid_regs[] = { +static const struct debugfs_reg32 pid_cid_regs[] = { CC_DEBUG_REG(PERIPHERAL_ID_0), CC_DEBUG_REG(PERIPHERAL_ID_1), CC_DEBUG_REG(PERIPHERAL_ID_2), @@ -38,7 +38,7 @@ static struct debugfs_reg32 pid_cid_regs[] = { CC_DEBUG_REG(COMPONENT_ID_3), }; -static struct debugfs_reg32 debug_regs[] = { +static const struct debugfs_reg32 debug_regs[] = { CC_DEBUG_REG(HOST_IRR), CC_DEBUG_REG(HOST_POWER_DOWN_EN), CC_DEBUG_REG(AXIM_MON_ERR), -- 2.26.2