Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp161632lqh; Wed, 27 Mar 2024 19:24:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6kxgkb7cbQ/p42Gv+XXlPj12ZaqBwZRPjidruQjmV2bm8PxaYka9wbZsQmwW864d8BbN38/mGEhUxrLIckacTUXa/+mXmZ+Rbrnt6oQ== X-Google-Smtp-Source: AGHT+IEUdFtCh0Ite8J5MGUc4TEkfuFlTzNLoE5U5dwBHOMHJDAYU/hAGck3/vjEIlrm4k3Ix3px X-Received: by 2002:a05:6358:7e13:b0:17e:c5b9:5f6d with SMTP id o19-20020a0563587e1300b0017ec5b95f6dmr1351990rwm.14.1711592692032; Wed, 27 Mar 2024 19:24:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711592691; cv=pass; d=google.com; s=arc-20160816; b=cETHgsd9bgyScYtDjkdJiTPGTfGNvrTCa3K2oBSfBygpOrrSAGsdUVvyY5GT+I6ITF FsN+X9MSireNSBTy0wYrky/ERGRQESI2uZOs+YZYC9/0wxxadT471ZLJbB6kgHJi7U2w UUXW6unUt8pNaamPNMKQGS+ntHTeLihnCH7Cx3Q/9rnjjMYGXzmDG/E+tyzmQ8odDQw0 OdmzGMaLFTPDCkqbWhlbgSWwm8MAnPJX+qwx07+21aQUrJ7q6fJ681FMI3gof8bmBO1I nZkwt6jIoTEMCncZvl8pk8fw1+kiT1sy+C2TWET+zAF4xsoHDsxqry2NXaCM8DrobwAP HQpg== 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=BPeX+Hl7QxuesHJ3WXDWWRziotoRu2s0MYI3HBPg72Q=; fh=oGi/tFtKmnuGFL62VEtBiK2r8KOBvRxob4xQNgQzqx8=; b=tda9N2GBIoUC/aMWXg1/4gwfDdzsZs095V0Uxe+I87JEZPWyNbl8kgDMD50hOWCPR1 BTPVzaE8+CbwNhGUhLyNrxPvoFr88Yu3QldKgHZ7MN/zhFgvBe3IfreS6MLkJhjU27rO quoTmw1W7/EYGPGZbxcMonb12lP83Apbqsg9/3ClciLPN7r7iHnhwNnkKLoOiLGXQSEs Ju9i2CITXye7M1DiOrvBHZT97AKFWHeEh37T68YC3c3qnMQ2j2j7S3m5+Qk8Fi5Lncdb MPj7t+5o4nnpHt1UR6Yvsh9hY9D7OpUKmT7IGo1XM4iS/A+Gt8ySJdF2+1PEG5vfPhsN mIwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=vJHub0yp; 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-122333-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122333-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c15-20020a63da0f000000b005e4837345a3si416085pgh.400.2024.03.27.19.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 19:24:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122333-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=vJHub0yp; 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-122333-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122333-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AE2AE296183 for ; Thu, 28 Mar 2024 02:24:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24B1F28DB3; Thu, 28 Mar 2024 02:23:43 +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="vJHub0yp" Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) (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 BDA372561F; Thu, 28 Mar 2024 02:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711592622; cv=none; b=BHTHCndWmF29YrsAooNSe8Va5Wv4PElym9nCa8nnnXFHo981rzzIv7u17EYy6GnG3HYWZbVMvMldbbKfKlKoX4Pk5AAU3KhxNPsSvKA0+y5vn7btZRpAArF+HhqsRg6F9rtTI8nrZEanDxBS74MuAWiZCtDCTEviLCQntkWLspA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711592622; c=relaxed/simple; bh=fE7UPGjpW4ybjCuZPI6M+/ZGKQlUOPJ/ZkNBj3Ns0rk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=C3F4F4+vDI47/1jLdPod83CrIDn62Hsfc+2MeHP9lnjF8S2ojj0vRJ7FW1A8hI4wTJQb0KWbrz1GQv1lFAb5x+BxleAD3Z2G37+8Lq+WXfhNunXZWUH416AR6mwT7xoZPcUQWEgqkpkYGTblx93QJY3W0Al1Ot7wpEjDs/XxrJs= 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=vJHub0yp; arc=none smtp.client-ip=115.124.30.99 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=1711592616; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=BPeX+Hl7QxuesHJ3WXDWWRziotoRu2s0MYI3HBPg72Q=; b=vJHub0ypFcgKeyHwF9fU0hmfJuEcxHtXJ/HvURIxjiD5wyvhAS6LBlFmja4sZwqbWVrISGb00G2//Y7dstNUEDe8EjOs8rDmo9SqOrvd0NNayQT1VvmvQnjh45FXnfCYAl0SVaDRMbOUYdPGdzDB6lIYbsE1qmb4xP4o456/oF4= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R691e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0W3QPvpR_1711592606; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W3QPvpR_1711592606) by smtp.aliyun-inc.com; Thu, 28 Mar 2024 10:23:36 +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: Remove unused function Date: Thu, 28 Mar 2024 10:23:24 +0800 Message-Id: <20240328022324.78029-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 The function are defined in the io_uring.c file, but not called elsewhere, so delete the unused function. io_uring/io_uring.c:646:20: warning: unused function '__io_cq_unlock'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8660 Signed-off-by: Jiapeng Chong --- io_uring/io_uring.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 585fbc363eaf..8a9584c5c8ce 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -643,12 +643,6 @@ static inline void __io_cq_lock(struct io_ring_ctx *ctx) spin_lock(&ctx->completion_lock); } -static inline void __io_cq_unlock(struct io_ring_ctx *ctx) -{ - if (!ctx->lockless_cq) - spin_unlock(&ctx->completion_lock); -} - static inline void io_cq_lock(struct io_ring_ctx *ctx) __acquires(ctx->completion_lock) { -- 2.20.1.7.g153144c