From nobody Fri May 8 03:09:17 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36A8BC433FE for ; Thu, 12 May 2022 14:49:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355192AbiELOt0 (ORCPT ); Thu, 12 May 2022 10:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233424AbiELOtY (ORCPT ); Thu, 12 May 2022 10:49:24 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7D8AA246DA0 for ; Thu, 12 May 2022 07:49:22 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 413131E80D70; Thu, 12 May 2022 22:43:46 +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 kj5QDLbieTlH; Thu, 12 May 2022 22:43:43 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: liqiong@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 3C0451E80D6B; Thu, 12 May 2022 22:43:43 +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 22:48:29 +0800 Message-Id: <20220512144829.5148-1-liqiong@nfschina.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20220512082637.24649-1-liqiong@nfschina.com> References: <20220512082637.24649-1-liqiong@nfschina.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" "char bdi_unknown_nam[]" string form declares a single variable. It is better than "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); =20 static struct class *bdi_class; -static const char *bdi_unknown_name =3D "(unknown)"; +static const char bdi_unknown_name[] =3D "(unknown)"; =20 /* * bdi_lock protects bdi_tree and updates to bdi_list. bdi_list has RCU --=20 2.11.0