From patchwork Mon May 22 19:50:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1686230vqo; Mon, 22 May 2023 13:02:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EXQrMYRuKVG5uutTCa1DaIxTr17+yGGqB/9EDPhA76XTUsxrHaZVhTRPlKwyGmbG8glV5 X-Received: by 2002:a05:6a00:134c:b0:648:64fe:b14b with SMTP id k12-20020a056a00134c00b0064864feb14bmr18413726pfu.32.1684785719740; Mon, 22 May 2023 13:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684785719; cv=none; d=google.com; s=arc-20160816; b=vrwOuWT5C6GTyee5Va1s7b83Lcb1l1jhG1b7RFvCclKXobKzF+YQvEfO1A11FodYa9 hYrSobo+WUy5oj/5VRvav0fpdxvv6gIgI55D06mSRV2X29Zb9VVsIP1D4RyZ4qk6ySfH 5tiv0uwP8FKvczFyX3Sgjba/umCJxDJZM0xv4KSSqILfvSKJ+8NGG+jZehFzoxSHkrrs LiRrlbFOwziS6spWrUIzPHsz+Ha6MLw4InR0m2InAVCE2eDuMTL6wXnyMsfkgnHcR/zL flajf+Yt3nM+GktnX4JNVDczhCni4tYqIbRhyLSi0tEr4QXApWuMDF4ydMHF2t7Wp6oV s6/A== 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:dkim-signature; bh=B3MenIIMLZPpf1gt7L0IOgmeMqqwGoOVOUysxpe+bgI=; b=x5ToHxfF37R2qEGYFneH/RnKSzX0MAJvo02XXln9iwz9aGYJaxd1VtLRtOdcls0Q9X XV3Z/8TxBLGuF2zb0FBk/FXxAT9YGRf5gSi8Q1nJyhoxTE2E/1nQRysq98ggqh9yxNP4 22iNARGRxUIFRXsMXizETcWNDxk2Np+LLUzNTGDDOixbl7rqtJaQ4iWzF6nEYIZO3B9w ZTcqrbA++J7r2rJpLPcTdKAQkRTmSHqt+c9E65+CpMxrdAtVWXti0NoIXSB9iTmLmKwo TSjzOUVAv/54yRHatTpCxCYVrPZdmI8ebOe5htG5TmCW2MeMmluTpyPWlSV3BWz5aSio jzsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gtZXvwjz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020aa7998b000000b0064d47205f47si4823410pfh.21.2023.05.22.13.01.25; Mon, 22 May 2023 13:01:59 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gtZXvwjz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235405AbjEVTuh (ORCPT + 99 others); Mon, 22 May 2023 15:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235396AbjEVTue (ORCPT ); Mon, 22 May 2023 15:50:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 710A99C for ; Mon, 22 May 2023 12:50:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05D9A62AF6 for ; Mon, 22 May 2023 19:50:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC23BC433D2; Mon, 22 May 2023 19:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684785032; bh=BDOTvHvS+lyHmEJFK68MiymZkfGA/R+O1zt/D4SvVIw=; h=From:To:Cc:Subject:Date:From; b=gtZXvwjzaPwV04snaN59Q/TNOMzoN7uNsTWCTUUPYXLcBtfi8sgZwgcvUBEa6JtFl gODmoFuXpl4y6EMMriOuA9LqTJOzltXqagKPFHAAQm4l4VvPv+VJgArMfwcG7WLRbT Yuh+Gb0Kx0JwFkWlF9U0/foYvpTiluVLcHcmOGgddRa8N3Jhr2ejNVGiHs8qUHm875 6YPEUXXJvvWOQS17QbzQMlwYuLSYZFswgvzybMI0sypwpLn28n9IEr4G8SjfGkHmDJ aUC+vDzGsAQZS8ZAM+CQizK2+En8E00FoN6QI2+NGH0W4tVMTVJJHSAPZw+NU41sE/ 8NV2qcO3VdM0g== From: Arnd Bergmann To: Ingo Molnar , Peter Zijlstra Cc: Arnd Bergmann , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org Subject: [PATCH 0/5] sched: address missing-prototype warnings Date: Mon, 22 May 2023 21:50:16 +0200 Message-Id: <20230522195021.3456768-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766625870581865349?= X-GMAIL-MSGID: =?utf-8?q?1766625870581865349?= From: Arnd Bergmann I sent out a lot of -Wmissing-prototype warnings already, but noticed that I missed some of the patches I did for the scheduler. Addressing this is mainly useful in order to allow turning the warning on by default in the future, but I also tried to improe the code where possible. Arnd Bergmann (5): sched: hide unused sched_update_scaling() sched: add schedule_user() declaration sched: fair: hide unused init_cfs_bandwidth() stub sched: make task_vruntime_update() prototype visible sched: fair: move unused stub functions to header kernel/sched/core.c | 2 -- kernel/sched/fair.c | 19 +++---------------- kernel/sched/sched.h | 13 +++++++++++++ 3 files changed, 16 insertions(+), 18 deletions(-) Reviewed-by: Vincent Guittot