Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp20898lqb; Thu, 14 Mar 2024 04:30:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6QhTJzm4qwT53AtxDmkUibeYfxo4yaRU7uXPb1Gkz+rg92XCxtKr/bqgSwpiay+j7bjsEySvy0bQUplPPFTjuxijCJL4h5KHeReLQ/A== X-Google-Smtp-Source: AGHT+IEBOQ9XuXgDs5ii4i1XngZc0r8SmswvTFnsfJ8VA6Lkbs1lQ9NbKWxT/YcXhiiTXGpipnjH X-Received: by 2002:a17:903:1209:b0:1dd:62c5:b6e2 with SMTP id l9-20020a170903120900b001dd62c5b6e2mr1737034plh.37.1710415823380; Thu, 14 Mar 2024 04:30:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710415823; cv=pass; d=google.com; s=arc-20160816; b=AhsY3CTSN9I/TNJUvnXENz1dX6MpMKaaT5SOAkDKqjNQ/4M2X97y+avnIoXUi0UBdz 0HpMBZHHIQ9b0+G4oIjYtfikmt2YVwDw9+6fVLcTlXNA4CCgEHxqr7IzGWdephqyjcol A56l9RVmwxfGOF04ehpXq1wwB53gipY76dRSLEv7JCwBk6Z+9wWg9/gumX20QLuOe0Jh UuZMazeipnNV/mrwQnCRm9QfCVWmajYJZPtmFlv6FVRH1Qd05tQ0bbqazDGNxi8ZVoeK G9Ib5LE9r+4keqXYSAsen2sE2pALzcVIvVc1DDSDhQcBsSD7MIN13XG+4mbDpgutfQOZ uAgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:mail-followup-to:message-id :subject:cc:to:from:date; bh=vBiWSF0GDfw13H1Jp9/Wg8MuUIZRW7mdJ2z7X5OCSvc=; fh=YCxZJvPZRUr1MehZ8lOnjFYg/UAjyrhhPYimYopEVxg=; b=cq3c2nMVZ13K/ST32RBT9zm3R1JFhduHz9WvQtBB8NsDM/DhK3nCdCh4WKGri/Kgdl nhUqIn3iZLhp0MPk7DwuGJ+47W9GinnRswAtMVr7upP1W7unI2FEmdXI463/XRxWZ9Dk e/kjNIxjvDWsBqaYFBLFv8BI5hxj0dIfkbarRtb6USThJa67DsoFw9Gws/NeFG/sMmDU bth+vxhLsyTQmznyOw6K0ZB4dGdo+oekC9CNZ7UnTkxLGaLwOJDaL1Q4yuykaSzH4aF/ 0/lSXe0wZOGViV0KoNVKDzah4AQ5OMKIWqOQspdJVQ9Sotq78A+Ur/pYI/4beNW2I0rH eGag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=didiglobal.com dmarc=pass fromdomain=didiglobal.com); spf=pass (google.com: domain of linux-kernel+bounces-103178-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103178-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=didiglobal.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jx1-20020a170903138100b001ddb73e983dsi1273296plb.226.2024.03.14.04.30.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 04:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103178-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; arc=pass (i=1 spf=pass spfdomain=didiglobal.com dmarc=pass fromdomain=didiglobal.com); spf=pass (google.com: domain of linux-kernel+bounces-103178-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103178-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=didiglobal.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 15E8628612D for ; Thu, 14 Mar 2024 11:30:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B22466EB64; Thu, 14 Mar 2024 11:30:17 +0000 (UTC) Received: from mx10.didiglobal.com (mx10.didiglobal.com [111.202.70.125]) by smtp.subspace.kernel.org (Postfix) with SMTP id 6E0D36E61E for ; Thu, 14 Mar 2024 11:30:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.202.70.125 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710415817; cv=none; b=Jzc91aniuXMRxl7pFEdH3k+e/ih+ReoXxoTifeP/U8/8N07AcGziPukHDWPtbiGuGUdkHQBjYT5YSvbQUye2ob9UcVQ3QQLpUQiYOTU3f/6hNqM8K+TZMmjD/v7qT1J4HRPBzAY6OSqNOgDM1NXxiQwUrUH/RIBc4htwVv4sO3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710415817; c=relaxed/simple; bh=BV17QkmH0U2ifAlcV0mMWZci/Qg+LWsIi8yRH+XAR2A=; h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=d43UMTjia5GyLZofulxrguMZnatnu8XirI6oEaePqfUp1rymmeW5DEb+TKKrp3BcbCNRANqVmAD6ET/krUEARQBnzHmE6h2wIDUaFZsr8L5J40H7uBqMxvQsQBeHi/Bapr06iEGIt1iLExNUfWo3pf23u1rb6KMFeWcik9bzSaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=didiglobal.com; spf=pass smtp.mailfrom=didiglobal.com; arc=none smtp.client-ip=111.202.70.125 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=didiglobal.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=didiglobal.com Received: from mail.didiglobal.com (unknown [10.79.65.12]) by mx10.didiglobal.com (MailData Gateway V2.8.8) with ESMTPS id 25E0818A2B6AAC; Thu, 14 Mar 2024 19:27:05 +0800 (CST) Received: from didi-ThinkCentre-M930t-N000 (10.79.64.101) by ZJY02-ACTMBX-02.didichuxing.com (10.79.65.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 14 Mar 2024 19:27:04 +0800 Date: Thu, 14 Mar 2024 19:26:53 +0800 X-MD-Sfrom: tiozhang@didiglobal.com X-MD-SrcIP: 10.79.65.12 From: Tio Zhang To: , , CC: , , , Subject: [PATCH] bottom_half: remove local_bh_enable_ip Message-ID: <20240314112653.GA8027@didi-ThinkCentre-M930t-N000> Mail-Followup-To: akpm@linux-foundation.org, peterz@infradead.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, zyhtheonly@gmail.com, zyhtheonly@yeah.net Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: ZJY01-PUBMBX-01.didichuxing.com (10.79.64.32) To ZJY02-ACTMBX-02.didichuxing.com (10.79.65.12) Remove local_bh_enable_ip since there is no caller. We can refactor this when there is a first use-case. Signed-off-by: Tio Zhang --- include/linux/bottom_half.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h index fc53e0ad56d9..48df8e669bb3 100644 --- a/include/linux/bottom_half.h +++ b/include/linux/bottom_half.h @@ -23,11 +23,6 @@ static inline void local_bh_disable(void) extern void _local_bh_enable(void); extern void __local_bh_enable_ip(unsigned long ip, unsigned int cnt); -static inline void local_bh_enable_ip(unsigned long ip) -{ - __local_bh_enable_ip(ip, SOFTIRQ_DISABLE_OFFSET); -} - static inline void local_bh_enable(void) { __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET); -- 2.17.1