Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp977209iob; Fri, 13 May 2022 18:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqCz64ODWHCYArN7hXjBRFNnRVLfruNO7ayvSaE95dJmqZBb9bJ05YvGWtWTkV/VIIp8y6 X-Received: by 2002:a5d:60d1:0:b0:20a:e22f:b31a with SMTP id x17-20020a5d60d1000000b0020ae22fb31amr5911546wrt.680.1652491199314; Fri, 13 May 2022 18:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652491199; cv=none; d=google.com; s=arc-20160816; b=JWEQEH0lwNL+c91SgZQI+maqIfO2PytVonjogoUeMN8oG93wCvdHPVuMkqLTsTSPG6 PLkWZM3GbrKsqkCE4ja6MY9qBfPo/O2how+Z17e03xSXarYYw6qFcZOUaO4A/aT30m2W /OMZeVp3HZUUJAaQAqj2jBCE6RePHZZ9DQZMw7Z71PNQkgHlWZVaf885dZ/zwy5mMMcu 1DtnHivEa2T81Axe4Wnz2yDLfce63oKZwnTWcE38+rGVk1YLsdYOsQONvV4eO1QQZ0fP C+VQeM2qKlZ12244qGpBefBM8h+3k1sJ3/6eCHkiU8bJwwyjpNORMDhkUyy2NrrEV6Qs 4O0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=EN7KF+Uuvu5g92B4o6+27LN+NqhJedIIV9xdCkmD+dQ=; b=VOwV+rWMJLQeBSlBivvft/MyfoKG93gxtdDDTCvc1dHeYtYXsYYz/lsFKKRCZhEsoJ g/3R0mSYXwLw3SqoUJHFeP7/FcZtIX+3+zw4rMI8YMgpQavsU98WbD1Po/2cuhraAKtE hokZc3WD2wBYnl72t7K21DJ7yetcX16fVYnuLdYRWBe1mrwvh0qkdyoAUqO9T8ALiZmG mho0yHQMr/s85mxAYd9SNfE4kq4n+ygIYUNLD5O5i/nY48MKwnt9tjJE3EJpdn7Ujy56 LXkGrnZjlXIzySVDcAdMYeeBA2MWtWekdwu43qf19NBMm+nAVuwbEJXSWsEh5LQOopxp hlEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z22-20020a05600c0a1600b00393f70be9e2si7468925wmp.88.2022.05.13.18.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 96A6F3C3817; Fri, 13 May 2022 16:50:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237704AbiELOt0 (ORCPT + 99 others); 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> 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 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); 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