Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp258366pxj; Fri, 14 May 2021 02:43:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmYxQ18dMK+S7DbfybhjRHco1DPO9yo/BDms6pA/nywEaAIllWiXrIlOT97w26YPRqez6J X-Received: by 2002:a05:6638:358c:: with SMTP id v12mr10152884jal.88.1620985401339; Fri, 14 May 2021 02:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620985401; cv=none; d=google.com; s=arc-20160816; b=XWL5mb1rIwcLKHPrEvKSC2YpjWuIyiHvdamOeGpJet5HyAKOL759tPVKCYiTO33f12 4LgcNv/j5eh2uYkfQJ30eRj39HRmJ11ypcIavZ4YrUhM2E8mScuvOdqagE67rrmrHLg4 FMq9pQnjZvaJgKQ7w3CM8vFqqIieC5nz7rdVZIT6c6tLcoJ9rh5x52skHPviba+dIjd/ RX2T1SOx81HiOptEbtphylmBJ1aJaymScdAfp+GvUgagJPLZgC3B0WpavykkozDa4RB8 uDcBaOc74Kp+ft0dAYi5CSAlN7yw48j0uxK9YnMW5bEia2oISCBe1qraIytOEgKl4dpk kMTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KiFEVgSZWMnVSuwea0JriSz58LJrvhEwcVMe6HKLbUs=; b=Q1H5L3ULUG1jPHjpXEJXl9pp1b5KyoomkGBAOrH4dZEBmZI2AS2rplXh7H+04RDoYX CgioABQR4X4Yu4SN0uH6LRxXk8halM09FRVxI9aKCQalw3V2nI6Dr5ykM+5TbWJ9P1RP NzpYdxFy1F43raTlFALzmrlZB14BGZxEm+FnofWqbOxbJCRDV+RGNoUCQVLPyuNBIFVl s5qB7ZskvRJoQdDY/6wZcun1GOKPRlHLSc4DODk2ixn3FqMjAM4P0JKz80qlztF5G4z3 VFWOSBK6bwHrrfllTTnBCS+WUTFJvD99j3V430F7bhzk2LF/Fzoesm67UG14mX++/Y7S HTqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si7498009ilg.125.2021.05.14.02.43.08; Fri, 14 May 2021 02:43:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232412AbhENGby (ORCPT + 99 others); Fri, 14 May 2021 02:31:54 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2917 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232349AbhENGbx (ORCPT ); Fri, 14 May 2021 02:31:53 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FhJVk5hCczBvLb; Fri, 14 May 2021 14:27:58 +0800 (CST) Received: from localhost.localdomain (10.175.102.38) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Fri, 14 May 2021 14:30:30 +0800 From: Wei Yongjun To: , Dennis Zhou , Tejun Heo , Christoph Lameter , Andrew Morton CC: , , , Hulk Robot Subject: [PATCH -next] percpu: make symbol 'pcpu_free_slot' static Date: Fri, 14 May 2021 06:39:52 +0000 Message-ID: <20210514063952.3240527-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: mm/percpu.c:138:5: warning: symbol 'pcpu_free_slot' was not declared. Should it be static? This symbol is not used outside of percpu.c, so marks it static. Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- mm/percpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c index a257c3efdf18..73c249f3b6a3 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -135,7 +135,7 @@ static int pcpu_unit_size __ro_after_init; static int pcpu_nr_units __ro_after_init; static int pcpu_atom_size __ro_after_init; int pcpu_nr_slots __ro_after_init; -int pcpu_free_slot __ro_after_init; +static int pcpu_free_slot __ro_after_init; int pcpu_sidelined_slot __ro_after_init; int pcpu_to_depopulate_slot __ro_after_init; static size_t pcpu_chunk_struct_size __ro_after_init;