Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp115859ybk; Fri, 8 May 2020 15:35:56 -0700 (PDT) X-Google-Smtp-Source: APiQypLVf9+qY8crRZwwifGTBM/FbiFAPoPfYGNmZoosB0IyCV22IRcz7HGZhhdes5GAE5H5ZJCZ X-Received: by 2002:a50:ec0c:: with SMTP id g12mr4324900edr.140.1588977356042; 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=iYJ/MCh7oW3MFiaCFFCUfpUswGY9LaOZdd8BDTSMc5QoNCl5LfGFOIUugSZC51L+R8 tHila22R8e5VfG/zITzZOc4y7YoejTY1xwt5UA7E+aaFnciT1BhN3SF9U1FsoT8rIgPI /mG3jtm0S1combRrljH+IGyYavcEo6ao6l2YP1TLJ+Nac2671vBq7SEohnElPvtw1HOj Ue9AX4Sn8iYCk7MQhhh1dEFFGdwi0UsQ6avbBO78xDbNGV7k4bq/v2ivzh3jD9J+Ym6D DPEiUyoyr527hzdOxef3X1i05PjJLWaQYH2lwwoahWlN0K4jfSUPI8TyV3P7InkhSKSt xToA== 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=vNe+ECH+KI0KXYB/C0t3dikvQ9vGDkFhqEvtseTrJKE=; b=GLUbe+WcMeT0JLHIMeDRq9zm2N4aRw09AHLOurUA8YWsEvmOZpkfd96kX2GD79q+yI 3uGOkH009v1H8l41TQvCVF1uK4xPtN7qghs5aaClFTOVwlheL/7dvKEX8qDujEy6cEM8 +gCA2A0+MQwbrigzG9ZoP4b+HUacZIfHUIHXGOq8jQRLN64CYI/jthG0xoZgy7YM4dY1 4kqk29gZ5VrfoA2SVm1IGsxrHnF3SDuT4sMSBilOfgs+mbaHZkggwS0W21/KbuLtAEeo 6bwqbgUwr7JureK+JlbgZIgWkms7RchWAA7jBqW5J1SPWl131JommUc+jkK+yUJqpLJG 7Plg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a6m+W2qi; 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 s29si1779191edi.340.2020.05.08.15.35.32; 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=a6m+W2qi; 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 S1728198AbgEHWfU (ORCPT + 99 others); Fri, 8 May 2020 18:35:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726843AbgEHWfT (ORCPT ); Fri, 8 May 2020 18:35:19 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14ADDC05BD43; Fri, 8 May 2020 15:35:19 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id y4so3325520ljn.7; Fri, 08 May 2020 15:35:18 -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=vNe+ECH+KI0KXYB/C0t3dikvQ9vGDkFhqEvtseTrJKE=; b=a6m+W2qicvjohyLDg4yrn+aFqEvR5GuBblUd4qw7xMZe5y8aHLMoYuZr6TwdMwpuEL LPAQv57wWv5/tfbmYwZjKVBGb6jbqjYqVp+zR7WtUtiK5tUThkYwa/MJddekkWLI8EY4 fmp/BGqkyafNOocUquP1BttEm+SY7Lh3qU3OB3DE8t47HGvpeLb7okaImFUwA4/qh3QN cn7k0AjUa8l0hu0UDmNMbX/JV4DzkYsa5skC7NiLh5NkFrVJf7MRPOgPwjFgisLFIvgZ pKCHFjYec3t32AcRxwn7aK3O8w2+JG6tYseSEF1gtsK98JIc+hQvtFv/4hk9MK6zC8oS 5oNQ== 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=vNe+ECH+KI0KXYB/C0t3dikvQ9vGDkFhqEvtseTrJKE=; b=RDUAjz0UUcxuLHRKur1gDQSTKlkcHp7US1EXNKX//uNjcZ/OFfE5dvL5dvvzxKQNk8 gpsvJ/ius9hReKTfwPX2cjB4Y7YYNXiK6hSQG6uIOH5kpFaUtS9UBt+AjoznJq8KAlVX G8wA6d4JlCYrJ6UGgZWmExqqtGYfn6o1X/jxJwvp2uW2OQ/ZH91Y/q6oKRiONjq7d3Ev OY3JIqrRwpvezt35X7TA6xd0OALe4sKSKe9NTFyi803bgejvkFuIGTyNbQCQ8JBDiLBG IYLwmxrcbbRNMv8tBZV8pMYPaNENbyHLltzjfTlPPrEwQmE0tTl5TKYY8yH98jkincHg iEnw== X-Gm-Message-State: AOAM530Ctjn0n3lMEMUtgT+d8rByR/PrMs9SQTjwqNCVQIjSFicYegG5 xusgLpRgOfIge5DFv7kOsx8= X-Received: by 2002:a05:651c:326:: with SMTP id b6mr3028310ljp.259.1588977317588; Fri, 08 May 2020 15:35:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 15:35:17 -0700 (PDT) From: Rikard Falkeborn To: Zaibo Xu Cc: herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH 4/4] crypto: hisilicon/sec2 - constify sec_dfx_regs Date: Sat, 9 May 2020 00:35:02 +0200 Message-Id: <20200508223502.7258-5-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 sec_dfx_regs is 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 17982 7312 480 25774 64ae drivers/crypto/hisilicon/sec2/sec_main.o After: text data bss dec hex filename 18366 6928 480 25774 64ae drivers/crypto/hisilicon/sec2/sec_main.o Signed-off-by: Rikard Falkeborn --- drivers/crypto/hisilicon/sec2/sec_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c b/drivers/crypto/hisilicon/sec2/sec_main.c index 07a5f4eb96ff..6f577b34098f 100644 --- a/drivers/crypto/hisilicon/sec2/sec_main.c +++ b/drivers/crypto/hisilicon/sec2/sec_main.c @@ -110,7 +110,7 @@ static const char * const sec_dbg_file_name[] = { [SEC_CLEAR_ENABLE] = "clear_enable", }; -static struct debugfs_reg32 sec_dfx_regs[] = { +static const struct debugfs_reg32 sec_dfx_regs[] = { {"SEC_PF_ABNORMAL_INT_SOURCE ", 0x301010}, {"SEC_SAA_EN ", 0x301270}, {"SEC_BD_LATENCY_MIN ", 0x301600}, -- 2.26.2