From patchwork Fri Jul 21 12:07:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 123837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp176997vqg; Fri, 21 Jul 2023 05:44:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHOznPP8XQELbXoNp/qrerAsusTR36fv6QMdk6I12aDE6UwcTgHeZUiBPc6f0Ys5HA9quNb X-Received: by 2002:a05:6402:60c:b0:51e:1bf3:f4ac with SMTP id n12-20020a056402060c00b0051e1bf3f4acmr1498063edv.27.1689943493675; Fri, 21 Jul 2023 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689943493; cv=none; d=google.com; s=arc-20160816; b=oe1kCeEfMO8rqOaZEvk2FNMKfjCbGLqwEsBlvztSUuRiJcYhcXZQEeMVznRUKT1aA1 x/lJA1GHhn+FddK2vx7L1h7GlU2t2/uat59wwPR23aZa5x8qHXGRrXn15NoKHn1FUkPU ApIFoHKEP3USckLvvmPJycU9E9QxVFCTxKrccygqb9J/+wfl2CLZGh/k2wwfRiYEM4Pi 36IwGX4E6/vuyXYSZjQCuQ/6G3WL3Day2Ksrg2HtDgGHkdrEJzNw/VpHxGqw/ZSgArc4 rL2N/bItvDfg9QwizEp3/kWQSOHQIb9NirEf8oD2a7LA5ywItDxw7ZAw2bij8q3mZ9RM 7MHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=vc8uuSD5K4DDSuxnwmAHxd2p9TtMyx6EPC42Dzm2BvA=; fh=WvVuDJ7HxjkH4teAIiYQzutwdb3muOl0FqwatI7QqhI=; b=mfzMqPFCKZfttw0vxW7I2z3duTHrXf2bEunm8bGVECane/xwYK6ftuZBqChk9r0mdf OWgCShLuTKE3Ub5U4IY8MNsz6t/VNdLRqh9DicbdmEacQPz8hUjZkftjSsnuiQmPtthq 3KQ85JMmJE+eByIbt8yX92XJehEVmUuZgL9JWNTt7/uP7jUjU1CGFhACrZzouSRW+AYE SWLDwbJ84rAobppPVh4TCE1h4kSYgAyutxGB2WLxNgBAmwYg7XaTmJ1lrhS+cZ2oDsc9 IRSfOQ3k4i9cUD9k7RQJrdlApfijIj2aAiva6arJ3vRxNfcng9oQo+odgqnRzZTRQFRr w1Vw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020aa7ce03000000b00521d1c34b1bsi2118759edv.189.2023.07.21.05.44.29; Fri, 21 Jul 2023 05:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231330AbjGUMHy (ORCPT + 99 others); Fri, 21 Jul 2023 08:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjGUMHv (ORCPT ); Fri, 21 Jul 2023 08:07:51 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9440319A1 for ; Fri, 21 Jul 2023 05:07:22 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R6pBy6FxyzHnV3; Fri, 21 Jul 2023 20:04:42 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 21 Jul 2023 20:07:12 +0800 From: YueHaibing To: , CC: , YueHaibing Subject: [PATCH -next] sched: Remove unsued extern declarations Date: Fri, 21 Jul 2023 20:07:05 +0800 Message-ID: <20230721120705.32372-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772034188786601514 X-GMAIL-MSGID: 1772034188786601514 commit f64f61145a38 ("sched: remove sched_exit()") removed sched_exit(), commit ad46c2c4ebce ("sched: clean up fastcall uses of sched_fork()/sched_exit()") mistakenly change sched_exit() to sched_dead() extern declarations. And since commit 7c9414385ebf ("sched: Remove USER_SCHED") uids_sysfs_init() is not used anymore. Signed-off-by: YueHaibing --- include/linux/sched/task.h | 1 - include/linux/sched/user.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index a23af225c898..d4ec49d36ca4 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h @@ -63,7 +63,6 @@ extern void init_idle(struct task_struct *idle, int cpu); extern int sched_fork(unsigned long clone_flags, struct task_struct *p); extern void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs); extern void sched_post_fork(struct task_struct *p); -extern void sched_dead(struct task_struct *p); void __noreturn do_task_dead(void); void __noreturn make_task_dead(int signr); diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h index 4cc52698e214..ffa639dd3821 100644 --- a/include/linux/sched/user.h +++ b/include/linux/sched/user.h @@ -36,8 +36,6 @@ struct user_struct { struct ratelimit_state ratelimit; }; -extern int uids_sysfs_init(void); - extern struct user_struct *find_user(kuid_t); extern struct user_struct root_user;