Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp880455pxb; Thu, 15 Apr 2021 08:39:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWOmcMBsdX2NqeX9azZ6QK0q3ax/4s8bzcIPpC3KbYjg0ux5iWooJcNUy6H/EZtpp48m2I X-Received: by 2002:a05:6402:104c:: with SMTP id e12mr4873814edu.108.1618501152506; Thu, 15 Apr 2021 08:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618501152; cv=none; d=google.com; s=arc-20160816; b=kFnxYLTQHG7V/FPmwlurAnb69pYIYyntWIUmK/KB2Yr4Vc6O8QmaK19Eh4miNfo2mm VIHhGiwTZ1nilE7ErFF1dUh9RIUtRzdHyybjWriM4ZquY/1GtkVvaWwIrZgW746hnVRD Vsxp83sI68cHn9p8HjD0234BiHI7eiNkG0oke9wrofxgu+uR0itkTFqHAKwuumCfrXeH MpbXq3IyqeZkiRvcTGbzH1HkaxsnNy3yBUl6+4PyYnzZsWXgvWIdOIZ669PdFhEdnRgn R6mrAihSOXWlBgeiG1gKc+5YxEH2KKzw8m8JutKNyaFsTmH5KLBvN6I6+jatczkHzQdM KxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=a8rtqGj6DddCpHF5nNlZPwGIng9Wf32Y0rfcCg7Hsvw=; b=ishAeQkIqSmhn5KhiOH9Rif+VTCiHLHS1NgdtDEm7tlIqyp6XVO1UtZmNBmQN0lBeG jT4Ap2Ed6lrPsPf2tU7qu073lXICa8zyksZXiaQnAzq56rT+LJoTuui8wQVeDcngHWNT tQNLCeBt9Eritx7K0XT3kMXEM+WiWhZYWsiRTN9UnwnvGKnm/xr/b9e5trONouWcd41B mAtnNTjAsmPHLQOX/1/k0PBoPrYsbGY0a+oAnmCrhBLAXkVmXDo2almhTN0DCrZAqMi/ 63QjaHKjjjPAi7rce6YvYdndkF4BWtiTxEI9rrjN0NYVCWjUF6rQJNanOlGG+xVjq89F +8yg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc43si2938046ejc.21.2021.04.15.08.38.48; Thu, 15 Apr 2021 08:39:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232799AbhDOPh5 (ORCPT + 99 others); Thu, 15 Apr 2021 11:37:57 -0400 Received: from mail-pl1-f169.google.com ([209.85.214.169]:42497 "EHLO mail-pl1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbhDOPhi (ORCPT ); Thu, 15 Apr 2021 11:37:38 -0400 Received: by mail-pl1-f169.google.com with SMTP id w8so9940748plg.9; Thu, 15 Apr 2021 08:37:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a8rtqGj6DddCpHF5nNlZPwGIng9Wf32Y0rfcCg7Hsvw=; b=OfyRoSsnjFd2kc4B1xxW+SFDqX+7v3H6EDKmHlKPLM1D2OR+xsQ6H4HifEJwLib4be tUKbIluL3dPPB3I1wDC4H4WsibdAJqJmjQP/wyV/5dZDYEedVq7HzTqP6I6HR7oExsTv vYQaH5sqLi3ksmmsF811/nAk9Fvak4Qv/ip1beZQ6XIug2S3qwgASZ56WPmKTWuq2sFQ wqJO9mzZ48cCR929AeBIK5ats+yRzNmLiwspSNFxvSfy4CQRxwNWjdybPsRR8afLyf7q KT7x27VIA9JqBIG96JsN0TApdyXAF36EEXoucpQGaPm/JJuB5xhB3D3PLJ7GOSFrhuuR bO7A== X-Gm-Message-State: AOAM5328jjBrZYmPW44ezgFEkuiMlfqefn314Z2Cpccnlq16bZRC4Zdf 7gzsZUiXDf2+8vEvXNpGL/g7EJ6UTj0= X-Received: by 2002:a17:90b:88f:: with SMTP id bj15mr4616984pjb.147.1618501033095; Thu, 15 Apr 2021 08:37:13 -0700 (PDT) Received: from ?IPv6:2601:647:4000:d7:f031:1d3a:7e95:2876? ([2601:647:4000:d7:f031:1d3a:7e95:2876]) by smtp.gmail.com with ESMTPSA id f2sm2565595pfe.177.2021.04.15.08.37.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 08:37:12 -0700 (PDT) Subject: Re: [PATCH] block: remove unused function To: Jiapeng Chong , axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <1618475975-106537-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Bart Van Assche Message-ID: Date: Thu, 15 Apr 2021 08:37:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <1618475975-106537-1-git-send-email-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/15/21 1:39 AM, Jiapeng Chong wrote: > Fix the following clang warning: > > block/blk-zoned.c:55:24: warning: unused function 'blk_zone_start' > [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > block/blk-zoned.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/block/blk-zoned.c b/block/blk-zoned.c > index c0276b42..250cb76 100644 > --- a/block/blk-zoned.c > +++ b/block/blk-zoned.c > @@ -52,14 +52,6 @@ const char *blk_zone_cond_str(enum blk_zone_cond zone_cond) > } > EXPORT_SYMBOL_GPL(blk_zone_cond_str); > > -static inline sector_t blk_zone_start(struct request_queue *q, > - sector_t sector) > -{ > - sector_t zone_mask = blk_queue_zone_sectors(q) - 1; > - > - return sector & ~zone_mask; > -} A similar patch is already in Jens' for-5.13/block branch. See also commit 540ad3f3da25 ("blk-zoned: Remove the definition of blk_zone_start()"). Bart.