From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3C6BC433F5 for ; Thu, 12 May 2022 08:27:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 136726B0074; Thu, 12 May 2022 04:27:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E8916B0075; Thu, 12 May 2022 04:27:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3EAA6B0078; Thu, 12 May 2022 04:27:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E3A626B0074 for ; Thu, 12 May 2022 04:27:43 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id BB4A4120372 for ; Thu, 12 May 2022 08:27:43 +0000 (UTC) X-FDA: 79456412406.31.4BC06CF Received: from mail.nfschina.com (unknown [124.16.136.209]) by imf16.hostedemail.com (Postfix) with ESMTP id 6516A1800CA for ; Thu, 12 May 2022 08:27:32 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 72CC61E80D22; Thu, 12 May 2022 16:22:05 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P_XuIkaqYk70; Thu, 12 May 2022 16:22:02 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: liqiong@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 5AEB81E80D04; Thu, 12 May 2022 16:22:02 +0800 (CST) From: liqiong To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, liqiong Subject: [PATCH] mm: change "char *bdi_unknown_name" to "char bdi_unknown_name[]" Date: Thu, 12 May 2022 16:26:37 +0800 Message-Id: <20220512082637.24649-1-liqiong@nfschina.com> X-Mailer: git-send-email 2.11.0 X-Rspamd-Queue-Id: 6516A1800CA X-Stat-Signature: h9bu3tw87zxp3euu8omskfgsu3hsk85e X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=none; spf=none (imf16.hostedemail.com: domain of liqiong@nfschina.com has no SPF policy when checking 124.16.136.209) smtp.mailfrom=liqiong@nfschina.com X-Rspamd-Server: rspam09 X-HE-Tag: 1652344052-366343 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: "char bdi_unknown_nam[]" string form declares a single variable. It is better then "char *bdi_unknown_name" which creates two variables. Signed-off-by: liqiong --- mm/backing-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 7176af65b103..4982ccc63536 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -20,7 +20,7 @@ struct backing_dev_info noop_backing_dev_info; EXPORT_SYMBOL_GPL(noop_backing_dev_info); static struct class *bdi_class; -static const char *bdi_unknown_name = "(unknown)"; +static const char bdi_unknown_name[] = "(unknown)"; /* * bdi_lock protects bdi_tree and updates to bdi_list. bdi_list has RCU -- 2.11.0