Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2565983rwb; Sun, 4 Sep 2022 19:34:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR76UVfRIUs+SVuptrDAV6+3STp6u7SyqRNZocsi13I61ukZ4750fh+uJzXVNgoYPjXgm36d X-Received: by 2002:a17:906:eecb:b0:73c:5bcb:8eb3 with SMTP id wu11-20020a170906eecb00b0073c5bcb8eb3mr34455154ejb.284.1662345282337; Sun, 04 Sep 2022 19:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662345282; cv=none; d=google.com; s=arc-20160816; b=zzg8RaUpbaLTvbIieSctKcMqbDzybt/RqXuCdjDymaUNA5YG0aDwz6fhfjWCGraq08 rZ8wVhEZNNWKTpDTiWXwmWCH1mLSjUQGLowobLBJGf78/CzX53ZYZjmw2Twu/xtTrmpo u7wYT5L71DTwqGD5ntbYfWVrGonhQA6fgm7Efe3g/lL4GLDq4wdKHPfbXy9xxQKkM1yR yXoVtqk3Benhs6EjIZkDKJgZCaoo/pbZwJ1osvVQoLsZy15bLZoqTD5Ze/oaLggNq3Ot cZKvZKySf2yqBws6QdkJKe70pSXmeyAJXnh4I0QJCrZMK0NslJZLtwgWx0ySM22T5TpZ yYAQ== 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=kvG/7KpPm0dN5Rad8ixq/YP9pAvCCC+fHwWBRdqi8pE=; b=lJqnhKlYw+SGnAWSwJx0kGPThorK1f/mXfzTJJ/xZKq3hskK+ab782B/J+OwFQob44 Qg+RR7PzIH0yC+zuMf5RK4nX/sy4a08CWALftjKjqQxncCpDHa5ShffPNNmLlCuAFPSx tr8UJpv7nJ6NHtR8aKPUBEYHuS4C2+RbW9RCbdyRtcuDeSRiBMIgcGGyMnAyIbT7dgka zgmw3+vCJgbGv0hjycszi70A5Fmjp02XimI/XrMj21YMu0Uzr/k4Tzc7YRy4Lz/8kDg6 BZirNy5+cEeK0ySwrab/e0lsmYjEymqzkaYRYyzNyxciBmN50qBv1cAs7XP92Iz0Hie5 5Yag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a05640234c600b0044632026ee1si7760195edc.53.2022.09.04.19.34.18; Sun, 04 Sep 2022 19:34:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235850AbiIECFN (ORCPT + 99 others); Sun, 4 Sep 2022 22:05:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235658AbiIECEu (ORCPT ); Sun, 4 Sep 2022 22:04:50 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 152EA11469; Sun, 4 Sep 2022 19:04:46 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VOJMWGV_1662343477; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VOJMWGV_1662343477) by smtp.aliyun-inc.com; Mon, 05 Sep 2022 10:04:44 +0800 From: Jiapeng Chong To: axboe@kernel.dk Cc: asml.silence@gmail.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] io_uring/notif: Remove the unused function io_notif_complete() Date: Mon, 5 Sep 2022 10:04:36 +0800 Message-Id: <20220905020436.51894-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 The function io_notif_complete() is defined in the notif.c file, but not called elsewhere, so delete this unused function. 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) -- 2.20.1.7.g153144c