Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp885451pxj; Fri, 28 May 2021 19:32:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMfBcE+oFXEldjVebG+JBEDigSm/lPoBkyHdd3dF22tfJ5t7p439CfSuxxyyFPFgklrxlU X-Received: by 2002:a6b:b4d8:: with SMTP id d207mr8967438iof.152.1622255567128; Fri, 28 May 2021 19:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622255567; cv=none; d=google.com; s=arc-20160816; b=CEp0KF362ysy/BjiotGHe9nO6mEFHKeOyHzaRxd2sdwgg9GQpdkLOdZzV4om37FEGv TsMyp2VJ00zJsJYYcURabVrGSlg7V3WKpnCWIrGg7f9jCd4l1Z75wPJ8gEJkdYYGpWIM JuhYodAT1/IqqZ6MF0huPnrlWwgS7O23JVDYamHqrS6nPH4IAcEbGirGHf6mrEkR+xdx EERK82sYzQwSZfUp6HFx38ffUyqvU4iBAurnQpyFYvJHIGJrwKqMvwGf7h5zzRDulKpI bR54dEAgKi1Tio6XpNDu5kM6U/Tu3U+4N7IZGFDGcjcENqaFm+AYMGPJ0KiOt+ZRV/6A /6Ew== 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=gW05Wbr4DexFYsEM4c8rKpKDJBQUaLS3VCNGnh6Em6Q=; b=u5Ecv6slMi2JlNnOpXp/MNC5m/K75sQbspgeznovCxzVrj/lK772kTfhOGBRSSOmmL 7XUfr32BN8JjCbVl2ihhc/FEtBI3AJcRxEzHbeHGkuCKDSS2vDk4gTGxnmh+Shh1QoPF AnQRpDey2jBpYKl3JAKM1oqBLHXCogNHP96yVy6T1FosYly2trmAAjsmaHzvHDD0MMcX PU6oH85oSMEpZpwIWV3sM5GGImqaFpwEhTD/Gu3Ay8bqKOPjy0rdQ4BMsIqnl2misaUY yA62rPJTv3cAZ32nzZTKEcbumtmRqHWd13i9JK7LVd8v6bf9MVe5OJUAbQWW8W5VDyS9 pwzg== 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 z1si7283457ilo.98.2021.05.28.19.32.33; Fri, 28 May 2021 19:32:47 -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 S229575AbhE2Ccd (ORCPT + 99 others); Fri, 28 May 2021 22:32:33 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2455 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbhE2Ccc (ORCPT ); Fri, 28 May 2021 22:32:32 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FsQSx0cj7z67WX; Sat, 29 May 2021 10:28:01 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 10:30:54 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 10:30:53 +0800 From: Bixuan Cui To: , , , CC: , , , , , , Bixuan Cui Subject: [PATCH -next] sched: make sched_set_stop_task() static Date: Sat, 29 May 2021 10:29:56 +0800 Message-ID: <20210529022956.43858-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="y" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org make W=1 generates the following warning for kernel/sched/core.c: warning: no previous prototype for ‘sched_set_stop_task’ [-Wmissing-prototypes] Signed-off-by: Bixuan Cui --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index adea0b1e8036..1c1e9612018b 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3209,7 +3209,7 @@ int select_task_rq(struct task_struct *p, int cpu, int wake_flags) return cpu; } -void sched_set_stop_task(int cpu, struct task_struct *stop) +static void sched_set_stop_task(int cpu, struct task_struct *stop) { static struct lock_class_key stop_pi_lock; struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; -- 2.17.1