Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp375670lqt; Thu, 18 Apr 2024 19:56:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkq6jqOt8czmLFstq3vokWsYr2sOJZUG73XKefScT3I4Qs1bW2gP81WHSnvsP2d5IzVbQzNFoVJfQyqbYnUZDN1XdS/hGhWKl5XC5+XQ== X-Google-Smtp-Source: AGHT+IFo71iAyKkoYfH1UlWER7AHKZYkVid1Ql1miDIr+fRAlpM7ZAdyujzOnec3U/qHtU2ZrfxZ X-Received: by 2002:a17:906:abd0:b0:a51:9304:19fa with SMTP id kq16-20020a170906abd000b00a51930419famr490388ejb.70.1713495411712; Thu, 18 Apr 2024 19:56:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713495411; cv=pass; d=google.com; s=arc-20160816; b=z6QULK1ZNd7HuT+bHKAv263y2l+kcPYrsD1jiyZYcX6NtUC36imjhZqt4G5yXWsl8+ C2ovW77gbanrT4ddhKkWImRzx/orOD6OAXEKHJLmV7OdpR0y+2F0w6ru3QGg3S8Rguzg VOghtb4MM/2Ai5t+4km39mPhuJV+kwuzC/1EUGjq9IaC6YzhtmGlvL4L7EWigtQIqSZQ X4CJqX8/yrZgPh7N7amBH0mdJ9aaDgFurtSkRmgTk+Th6FWfc1pwGoFAh46nnq1qMfJs qg0teNBU2VKt11hEIf+1YN5r3BZEFmA8YNJxSsqZeivPC3SyvVNIP55HiEPA99pQSlOZ Wojw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=uD3xIs6JXd7EI+1vS/WMHeLOp0GK3fl5H0/8s4XMiKo=; fh=ycysUjKhWvqFX+iLhAVffoZTyrtNp+1H0z+FmYP8DvE=; b=pmDezdGqqj0qv6YfUyJZQQDcL+nqbXgfmJL95TVZ56dyPBySOCnzisVomLsidJfo3J dKZZAr7Jkwd6uUDxirt3q5ai/c61G/aZR4EsoiXiTUJ3QVGLR6qEguSc30oY47Gt1RGv CVSPtWTptFXtQeNHccskYOFynO1zafxN26+bdAHMVZ2hVzz5NADt9E2IA6pIe85U8gFS PG2IOpLJGrAOVjzKgD/KeN/G+dv0gBsazc7fI4FvcT7qZYcvtnw+kPqsXy8Ki680WrGC pmlkvHzlpth9meDKhY53DQUnvBzZzmcE+olQ7/sZHSi5B8zrtqsOoYhzqK9RDYXBH5Gi TW2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=cHU4kgZf; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-150949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l26-20020a1709060e1a00b00a556530cc04si1621755eji.194.2024.04.18.19.56.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 19:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=cHU4kgZf; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-150949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BA2B41F22A14 for ; Fri, 19 Apr 2024 02:56:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66FAE79F6; Fri, 19 Apr 2024 02:56:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="cHU4kgZf" Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89892137E; Fri, 19 Apr 2024 02:56:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713495398; cv=none; b=RqaMNZy8zH3mm/oWmvzxB/j6To83D4x2JcllvVchkUSAdbjwLSx1ThR0SDjthxKS0aFs766gEOK/BJUIoaW/dpvLbO52fcZHerfy37ua9zqVzaGZ1Qw7dbXbtL9ljMSSKTVMO3Cxqas/maBdHjOVSWul1LCxX352q1jT2mytczw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713495398; c=relaxed/simple; bh=ZaTNtrj/QjepYAH6dUYRXFmkTXp4LQWQe6YFN8eGG0Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tQdPlGiCn3y4+toZWqCvwD0gNWfMtGwuYjznPk/jbv9NpjMkNTTHYiycBf36HU5DquddnspFtVvRJb3WyXbo4KO7lw96r2VPis/BIYWKUejC8nJToqWJKIsf+tYtzVGydTBiRU5NoM0F44qhB8ORQwfGeEEnrrMxeA2BLeym7Ho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=cHU4kgZf; arc=none smtp.client-ip=115.124.30.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1713495387; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=uD3xIs6JXd7EI+1vS/WMHeLOp0GK3fl5H0/8s4XMiKo=; b=cHU4kgZf3drYSdGFHDWFfRde593eneuAfOQiwjAPq0q3Mz06YRZz6xfjJxM9K3IkKx2sm8YLLY2ZO8tN+womRydDPmkF5KnFJhRD4cdvG7c9tThv8qvD3/zfL0UFUb6HkOVWnzahbnNhnAMNejEe3OvQPXVzqliIIsshQXwQfp8= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0W4qTuPv_1713495371; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W4qTuPv_1713495371) by smtp.aliyun-inc.com; Fri, 19 Apr 2024 10:56:26 +0800 From: Jiapeng Chong To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] block/mq-deadline: Remove some unused functions Date: Fri, 19 Apr 2024 10:56:10 +0800 Message-Id: <20240419025610.34298-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These functions are defined in the mq-deadline.c file, but not called elsewhere, so delete these unused functions. block/mq-deadline.c:134:1: warning: unused function 'deadline_earlier_request'. block/mq-deadline.c:148:1: warning: unused function 'deadline_latter_request'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8803 Signed-off-by: Jiapeng Chong --- block/mq-deadline.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/block/mq-deadline.c b/block/mq-deadline.c index dce8d746b5bd..94eede4fb9eb 100644 --- a/block/mq-deadline.c +++ b/block/mq-deadline.c @@ -127,34 +127,6 @@ static u8 dd_rq_ioclass(struct request *rq) return IOPRIO_PRIO_CLASS(req_get_ioprio(rq)); } -/* - * get the request before `rq' in sector-sorted order - */ -static inline struct request * -deadline_earlier_request(struct request *rq) -{ - struct rb_node *node = rb_prev(&rq->rb_node); - - if (node) - return rb_entry_rq(node); - - return NULL; -} - -/* - * get the request after `rq' in sector-sorted order - */ -static inline struct request * -deadline_latter_request(struct request *rq) -{ - struct rb_node *node = rb_next(&rq->rb_node); - - if (node) - return rb_entry_rq(node); - - return NULL; -} - /* * Return the first request for which blk_rq_pos() >= @pos. */ -- 2.20.1.7.g153144c