Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1015896iob; Fri, 13 May 2022 19:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRE3WwCzx49/gbhLt3mN8Mlq/TRzQu6uiXSqqdY4UdcV+hRe8f/7oyWCrQhIG501dclNqy X-Received: by 2002:a05:6000:1681:b0:20c:5aa2:ae14 with SMTP id y1-20020a056000168100b0020c5aa2ae14mr6093210wrd.443.1652496242951; Fri, 13 May 2022 19:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652496242; cv=none; d=google.com; s=arc-20160816; b=vRcnep8DnugUTnzi1mIBOxm73GjBKV+OA2CsSZWFUcxMU8M+gr7KCH/etH1eHAUvhb iwCn1vRZJclmkl0DnGFWO4vGgpnN3KuuJRplQUIMjVTD2Mb2JfkEHSYX7TDzdh1R/sjW 8HRE97tjMyCRfoGRgEz0uKlp135Ox6K1f98c7Jb/gLZ8Eqz3M6X1yF2KL75ztUS8VKCj m81IJHaUBM5uoaVu54h6FpECtyiK3vN8mS3upxTLhPF+IohnFoI9ki0Au7fLYW9IrQ+b 7qmc7X6ZuM1CnOIoUYGlwy+oj7VZGGIOSeX/q5jz6TG9DvOFIP3OunzhePtT1W/H5ck3 eBvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=fG1IokKk/5JlLinFQkogakFrrV6JILIwX54aw0rz/Co=; b=TeW1klAdbTYVzlk3CMWWFM7vamzGSDNviA83q4iyDSpGY3nitWTo8f/kM8UqoQs1g6 7CO32jR6YExq7dkgKFfTD4MQJWxBuTXIl2vN5RWSOn+IZ9R12rchjbua+7fxRNd/g5g8 ZbUuTQvGskaFGMiE0KH/7Crh6raGnIK3EHGItUz/ou67slszmAYq5gtlWak72SAFjTJS amXb8mWh5XAXp+tRWqIFExrt3+eCV8OmqF545OA8jn7JMfShdt02yQP5gcfFEU8KL6at WEk7dwmed5uBTqAjEllb705T/dQWt9zLpFcU+sh3Vt7IznIOvmDZMvK1NJsXvtAj7Gc8 b8OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w17-20020a7bc751000000b0038c77be9b0fsi6954881wmk.42.2022.05.13.19.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:44:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 294C5356C2D; Fri, 13 May 2022 16:32:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351437AbiELI1o (ORCPT + 99 others); Thu, 12 May 2022 04:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237176AbiELI1l (ORCPT ); Thu, 12 May 2022 04:27:41 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E3BAA8CCFD for ; Thu, 12 May 2022 01:27:39 -0700 (PDT) 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "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