Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3057734pxf; Mon, 5 Apr 2021 01:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwytHKIYVxzLv858zUy8WB+Fel+RuBkwFOobp06PNDZJMpPKLRcIrFqFLICrpf0yKNSWGSU X-Received: by 2002:a6b:5905:: with SMTP id n5mr19234592iob.90.1617612967557; Mon, 05 Apr 2021 01:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617612967; cv=none; d=google.com; s=arc-20160816; b=pVTRv9yEiX29ObMsP+JCmrXmoS5avBbhBjZYvYMrXY6Zx5dljmcTNOkESTNz9LMte8 RMJi3Ud6QbLnDlUn4xkOYc4lUak8qp1086m0nD1k71U79HneZ8NCPi5WP9d/lHMwi0x2 Xb/GEslh7iu+LK/oGS6yl1MWN/TLgx6jQ0UUf3r83itd8c7cIcGpZUBlfG79tjn0dqsw lm7af23c40OijpDQzVBlJafYSczSsbI5Pw+Scu4tw6tzlY4Dhj2j4x/JXbuWIUTKzskX zDDqOmmBXD1y94sx5tMUKLGdmJPzPKCTJHTNd1cOzd89V51vmA43d0NrU0/Aj6xYSgIf X+rg== 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=OAwgHMBnvUsbyImEXmPLyV866UI5Dmubi0pVOeOl0lk=; b=kyoSi5ARhQVfb4Ei5rccejkPLPtY05eRVyTRaV4Gwv1h46jMvFl3pAGPYFvkf/z/ko fD11Ycjm+hoy6Dja6EIqZOlzLtHmh/AvNg5X6zd0U4Bauw7KUBc8gNs/rflR2jKknW9f c4fhPLB1RtGBapOdSxqqmlgZzccPMo0XMYHc9d1EvaW247GyPmV7TuWGMY4SAG8VnbS7 CfJlk09r9YEevUrVO1+52qqFF8dyGtPvDiaWu+18s0YwNZLWCrzx1vW38LWxz4QkBEeo doUNQTGCjcWDgTzTQfCDIkglioKVh+hbLetmm/zOsdmkSHrWZEb08WFLwK646HA/3NUh Rk/w== 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=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si6923142ilf.148.2021.04.05.01.55.55; Mon, 05 Apr 2021 01:56:07 -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=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232342AbhDEI0E (ORCPT + 99 others); Mon, 5 Apr 2021 04:26:04 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:9974 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232031AbhDEI0D (ORCPT ); Mon, 5 Apr 2021 04:26:03 -0400 Received: from wanjb-KLV-WX9.. (unknown [180.111.237.208]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id 01F6B9801F0; Mon, 5 Apr 2021 16:25:51 +0800 (CST) From: Wan Jiabing To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] kernel: sched: Remove unnecessary struct declaration" Date: Mon, 5 Apr 2021 16:25:41 +0800 Message-Id: <20210405082542.160279-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSkpNTh5OSB1KGBhDVkpNSkxNSkpKTk1PS0JVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Nxg6Eww6Mj8QCi9RThMiHSEp VgMKC1ZVSlVKTUpMTUpKSk5NTUxPVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlK Q0tVSkpKVUlITFVJS0NZV1kIAVlBSUtNSDcG X-HM-Tid: 0a78a1236b73d992kuws01f6b9801f0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct sg_lb_stats is defined at 8043rd line. The declaration and the definition are all independent on the MACRO. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- kernel/sched/fair.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 794c2cb945f8..94e035da90c8 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8609,9 +8609,6 @@ static inline enum fbq_type fbq_classify_rq(struct rq *rq) } #endif /* CONFIG_NUMA_BALANCING */ - -struct sg_lb_stats; - /* * task_running_on_cpu - return 1 if @p is running on @cpu. */ -- 2.30.2