Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2986534rwb; Mon, 5 Sep 2022 04:55:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR63kl0DUkkuGUYUrQRUK6nHoZpzFFNd/sHfLVyt36l4m7J0jql8ct13ChcNQDAFJrnyeQ1W X-Received: by 2002:a17:902:dac1:b0:172:eae4:950c with SMTP id q1-20020a170902dac100b00172eae4950cmr48112320plx.70.1662378950924; Mon, 05 Sep 2022 04:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662378950; cv=none; d=google.com; s=arc-20160816; b=rPoV5JQAudidas0SSPGXSKWIUIqZW+WKo627DIgFmtk6mqCMehUDMk4Xg9DJVDJy34 njQo6+ISGstTLEJrUReiBBtPfETeuvfCsnujZ2SU+m0IbeOItjP5TDXWdbjBRuw7fAtF kQNcQMGYV7yjEDXXGQwzYHgEcvufTjTZfT5FHGQgvBeRUdugkZxA0JECZUKMQZZNnbDX oeB4epazsLRDtDM7lKx5njQnAbS9SaQqtnY4Mnpug7E3HC56r5vEpbvbLoWzeW/0lTKt RwhEpOxshtKq1X9sCXIGEliYK1Ol6U2qadfjcyTA69BF8kdsApfKXcgto1LRUKvrwqBg Be2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Vllfxcnhs9OfIM3TW4UNvTfKmafbGxf3KdCROHXKN8A=; b=v8iA7Sj512fBXvomphgnITOpNsXz5kF/pYpvKR1IpF5S5Lyo66/MQrznfYpURQ6clT qFsqxbaWBrPsCGIbFFaQcFUE4Y0uM1nKnqMWFot7J7fSK2UIx8XsNViksF1omXPKMSne AY81IlmJQQ57CLYynV5HYCP8kvT6b5oVyE0UTToFqQJn7wmEFsg2pI2ffekMCywEVwbB i9q6vj54hVx6h22z3WYOb5eBRrRr+qtoQ0C+JM1nDDSwACQR7f2pM6svtNm5G+CWkQqY BNm5M+Mo4tAuQuinxTX64SJFxa1OvHvVBbJqqelRNeUB2VSLuCGdZq1z/2TxEnSeS96b ixZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZmvWAAJ7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a639401000000b003ab358a4d44si9948646pge.199.2022.09.05.04.55.38; Mon, 05 Sep 2022 04:55:50 -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=@gmail.com header.s=20210112 header.b=ZmvWAAJ7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238176AbiIELmm (ORCPT + 99 others); Mon, 5 Sep 2022 07:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238141AbiIELml (ORCPT ); Mon, 5 Sep 2022 07:42:41 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5115D5C34C; Mon, 5 Sep 2022 04:42:39 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id u9so16546366ejy.5; Mon, 05 Sep 2022 04:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=Vllfxcnhs9OfIM3TW4UNvTfKmafbGxf3KdCROHXKN8A=; b=ZmvWAAJ7c4+BHEsjiaprB7htjTLDbMlry2Z/c+ExPQyAIiLlgIVRrI0MvElSRbVtqg nQpcHsWOTiWfyit/prQK21kqFBahi4hmrPY7sD1a1ATX1uDrqifs5DhLWUrSdWJr5815 RS736w0rTdZJO5soxkdOqRqMJpPBEBUhnRWL3A9pHKqYDLWn3nZNFiD7LH6SqyLNTqE8 sl+guaEVd8LMTl0w3jqjNQfsD9/pvelEBJ5W5u0iKULu3+uZw9uYqh3gv2SqIrjTbfF5 z/0SQgkmLOiCj8kRv3FIfiiaaOXFudSkyU+rtO1lXoBKbRV6njNAY4gLXqzuYLV7ZEgm v5ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=Vllfxcnhs9OfIM3TW4UNvTfKmafbGxf3KdCROHXKN8A=; b=uOGE4L1wgh7V7JIzLPo/2PX/vyaVG99rrOCf2ogBq+GuO7TNVwVlJjDWkcfmegTCEV OQnWGv+1JnIlrGz3VPlk/fxKnWy7htB3o63ADfXmBd8a7IGkIDYUWKxmIRaw8qowV4dW wNjxScIpOP81Rk9oGl0WtpyTqUqvWel4N6ZQPsOefVbOphLpLwTkSIObZpXJqUTMCvwl VIYsrxM/ZcDnPCZGRz9hYiSTj4Ivu9CwVpjGvyjPonVne5P/kTFRMYs6GESji9IjSMPB ktwYPhs7VZzuurJtCepiNqKrB+Pu0oeI4DZCV4JmetdhES4gHpiAdbXCWircdh2lf6yh LovA== X-Gm-Message-State: ACgBeo2/bzuqGCorp456DUzLI3EaPALKaknAtamBmBRNW85GF4LNqRjF OkZ67nriS5gRGlaUIqp9wsISIxxh9RU= X-Received: by 2002:a17:907:72cd:b0:741:905e:9150 with SMTP id du13-20020a17090772cd00b00741905e9150mr25290026ejc.88.1662378157758; Mon, 05 Sep 2022 04:42:37 -0700 (PDT) Received: from ?IPV6:2620:10d:c096:310::2eef? ([2620:10d:c092:600::2:a118]) by smtp.gmail.com with ESMTPSA id i19-20020a50fc13000000b00446639c01easm6323449edr.44.2022.09.05.04.42.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Sep 2022 04:42:37 -0700 (PDT) Message-ID: Date: Mon, 5 Sep 2022 12:41:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] io_uring/notif: Remove the unused function io_notif_complete() Content-Language: en-US To: Jiapeng Chong , axboe@kernel.dk Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220905020436.51894-1-jiapeng.chong@linux.alibaba.com> From: Pavel Begunkov In-Reply-To: <20220905020436.51894-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 On 9/5/22 03:04, Jiapeng Chong wrote: > The function io_notif_complete() is defined in the notif.c file, but not > called elsewhere, so delete this unused function. Yep, forgot to kill it, LGTM Reviewed-by: Pavel Begunkov > io_uring/notif.c:24:20: warning: unused function 'io_notif_complete' [-Wunused-function]. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2047 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > io_uring/notif.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/io_uring/notif.c b/io_uring/notif.c > index 96f076b175e0..1a7abd7e5ca5 100644 > --- a/io_uring/notif.c > +++ b/io_uring/notif.c > @@ -21,14 +21,6 @@ static void __io_notif_complete_tw(struct io_kiocb *notif, bool *locked) > io_req_task_complete(notif, locked); > } > > -static inline void io_notif_complete(struct io_kiocb *notif) > - __must_hold(¬if->ctx->uring_lock) > -{ > - bool locked = true; > - > - __io_notif_complete_tw(notif, &locked); > -} > - > static void io_uring_tx_zerocopy_callback(struct sk_buff *skb, > struct ubuf_info *uarg, > bool success) -- Pavel Begunkov