Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp67367ybk; Fri, 8 May 2020 18:50:23 -0700 (PDT) X-Google-Smtp-Source: APiQypLB7S/7mydrtwvSCFKhCC9V9JmmQ3Wty2WuVYu3I4Y1NkFJXj6BAe9p+toxbdMDsRb4rnRn X-Received: by 2002:aa7:dd53:: with SMTP id o19mr4530653edw.180.1588989022894; Fri, 08 May 2020 18:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588989022; cv=none; d=google.com; s=arc-20160816; b=b5QH53o6uZUjmW/8TQ5S0CftR4kBDBhQVunT2IcfOpgEpGbCYfZyPFEoOUt2xpb63k l+xL8uOAyuGdXBXQAwbdtdLr32SOT9R02QvPXyalCBxLxnnyvljvz2bM0nVKZuN92K6m rNID7DWITU9g7TyGLuMgFeGDXW985lwo8HqFFsq+uuUJzvhNMxEJ+xb4GDOJIxUVdthB 3PVebn+L3/rO4AMvA7n3HgLA2e0JMjHkT5c7JhGNvdIQE7D16fd4nQ9VgFzyU8h3InAf kXkcYSPZ1if8n27aONzIiZpP08PIg9EwKnf/NIAjsHV+ZrBP+ThTudnvQ16tuEfXaUmW 5x/g== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=I/BOqYUVgqPXfIicBSPDkCMdmd17z9C2J6z1hELm/bk=; b=k5xZWbHjqBKfrNnBGxyYKLJ2u0bN+xOlqam8i1txPBUh498Y/gA3kCXuObrVetEopM BvntRoUOuCa8ePikVhpzJEjlddPHiNCd0+Gdb6OW0Iwh0wNYTQA2e9CB5uW3SVxSdYy0 PgEYHQxf3qMELnbFqB5Rf/greyCnH+UseUHnB7ilds4fdRTugf49qvQVTffWj+Ptfwtk x+3MBxk7kgxI6ecQ8boHq/aM1HcCSpIS3gQkS6dFnAbFoTw6OmfIjLcSjo0WT6SKgJFo 0VuTQjXpIueybEsqs4a85t03odICJerkEly4ToW4/0A3bwukynOnurSMNe0fazQ32Zl5 L9Mw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj13si1925926edb.342.2020.05.08.18.49.59; Fri, 08 May 2020 18:50:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728305AbgEIBtz (ORCPT + 99 others); Fri, 8 May 2020 21:49:55 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4359 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727828AbgEIBtz (ORCPT ); Fri, 8 May 2020 21:49:55 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id ACEE65FB9EFAEC69915B; Sat, 9 May 2020 09:49:49 +0800 (CST) Received: from [10.63.139.185] (10.63.139.185) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 09:49:48 +0800 Subject: Re: [PATCH 3/4] crypto: hisilicon/zip - constify struct debugfs_reg32 To: Rikard Falkeborn References: <20200508223502.7258-1-rikard.falkeborn@gmail.com> <20200508223502.7258-4-rikard.falkeborn@gmail.com> CC: , , , From: Zhou Wang Message-ID: <5EB60C26.8050205@hisilicon.com> Date: Sat, 9 May 2020 09:49:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20200508223502.7258-4-rikard.falkeborn@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/5/9 6:35, Rikard Falkeborn wrote: > hzip_dfx_regs is never changed and can 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 > 15236 6160 480 21876 5574 drivers/crypto/hisilicon/zip/zip_main.o > > After: > text data bss dec hex filename > 15620 5776 480 21876 5574 drivers/crypto/hisilicon/zip/zip_main.o > > Signed-off-by: Rikard Falkeborn Reviewed-by: Zhou Wang Thanks for fixing this. > --- > drivers/crypto/hisilicon/zip/zip_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c > index 37db11f96fab..6934a03d21e1 100644 > --- a/drivers/crypto/hisilicon/zip/zip_main.c > +++ b/drivers/crypto/hisilicon/zip/zip_main.c > @@ -165,7 +165,7 @@ static const u64 core_offsets[] = { > [HZIP_DECOMP_CORE5] = 0x309000, > }; > > -static struct debugfs_reg32 hzip_dfx_regs[] = { > +static const struct debugfs_reg32 hzip_dfx_regs[] = { > {"HZIP_GET_BD_NUM ", 0x00ull}, > {"HZIP_GET_RIGHT_BD ", 0x04ull}, > {"HZIP_GET_ERROR_BD ", 0x08ull}, >