Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp15716pxt; Wed, 11 Aug 2021 13:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXK2bQK9mTIXrEEqFRYfJra6hJRFWjMjYsMwjERSus6iQElRWFXU1UICU03PW7LHjQIcs9 X-Received: by 2002:a17:906:1cc1:: with SMTP id i1mr300308ejh.374.1628713171773; Wed, 11 Aug 2021 13:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628713171; cv=none; d=google.com; s=arc-20160816; b=ygIAjZts4SU83M4GVgOYOSCt3HYEwWhxL5cV1J1MVpxE8rJsH0Qt2IjXmf19qEEwDD Sl0scbJlTEeVhlSsgCG79eUW8FUgI/Oe6P/trtJh2Yf6gZVJWAfODfOomHl63//FrhfF T3H+oG+PWNW5yKVsx7lIbe0Dshlqrzcj6AXhlto9xGvMrVlF3uOY7HQ+wxhCbZp0Yy7n S+rZ5grs8kKI3XTpAtwv3zfXr2NDe0tdQkCgk3CUtwXU/ZembiNuErM4n6/Abzk5KfLI Qn//cV+tZkfMuZHMfelaaNlNevJquxyCxLs2Zz4AxH8/NduOHikgeSq2O0Y+OmFkDT/h AV/g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GDX1ZRrypxCFOE3n0dkaGmgG4wGTz30Cbg1DuuSZJjk=; b=sJlwDZXEn9CaXGSHmNUL+GKFNQCLolt66nrW++V5KjIiTjF8FDuH2CSDugsYYTxQ8S Q5VGJspdG/sUrLaBMEx7Dct8sPHXjVvRVOrsAM5O4BcuuQ+tp0GMYQqH0G+stsaodMYF H91PgRqjd0zaLMQVQqu1nl/CHcMDmdkXbZ1ssYoNoWfGhvO1tkc3So94Qa9GiE0E+VhP 8Jv+yfw6CA16/lmdRqwhwDh5cQbFL0KMZb+pjYaXAXKFLDPA0DMT0O31wbusEbqmMeTC XQN26rrbIrQp5t/qPCWQsCQ3dqpkHKVgBU5NBx2m9RJz/g4HavzM/qMXK99URIHC5Xna 8PAA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si179255ejj.387.2021.08.11.13.19.06; Wed, 11 Aug 2021 13:19:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232201AbhHKUPL (ORCPT + 99 others); Wed, 11 Aug 2021 16:15:11 -0400 Received: from foss.arm.com ([217.140.110.172]:57884 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbhHKUPJ (ORCPT ); Wed, 11 Aug 2021 16:15:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3FF461042; Wed, 11 Aug 2021 13:14:45 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E4A5E3F40C; Wed, 11 Aug 2021 13:14:43 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, linux-pm@vger.kernel.org Cc: Sebastian Andrzej Siewior , Thomas Gleixner , Peter Zijlstra , Daniel Bristot de Oliveira , Ingo Molnar , "Rafael J. Wysocki" Subject: [PATCH v3 2/2] notifier: Remove atomic_notifier_call_chain_robust() Date: Wed, 11 Aug 2021 21:14:32 +0100 Message-Id: <20210811201432.1976916-3-valentin.schneider@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210811201432.1976916-1-valentin.schneider@arm.com> References: <20210811201432.1976916-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This now has no more users, remove it. Suggested-by: Sebastian Andrzej Siewior Signed-off-by: Valentin Schneider --- include/linux/notifier.h | 2 -- kernel/notifier.c | 19 ------------------- 2 files changed, 21 deletions(-) diff --git a/include/linux/notifier.h b/include/linux/notifier.h index 2fb373a5c1ed..87069b8459af 100644 --- a/include/linux/notifier.h +++ b/include/linux/notifier.h @@ -168,8 +168,6 @@ extern int raw_notifier_call_chain(struct raw_notifier_head *nh, extern int srcu_notifier_call_chain(struct srcu_notifier_head *nh, unsigned long val, void *v); -extern int atomic_notifier_call_chain_robust(struct atomic_notifier_head *nh, - unsigned long val_up, unsigned long val_down, void *v); extern int blocking_notifier_call_chain_robust(struct blocking_notifier_head *nh, unsigned long val_up, unsigned long val_down, void *v); extern int raw_notifier_call_chain_robust(struct raw_notifier_head *nh, diff --git a/kernel/notifier.c b/kernel/notifier.c index 1b019cbca594..b8251dc0bc0f 100644 --- a/kernel/notifier.c +++ b/kernel/notifier.c @@ -172,25 +172,6 @@ int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, } EXPORT_SYMBOL_GPL(atomic_notifier_chain_unregister); -int atomic_notifier_call_chain_robust(struct atomic_notifier_head *nh, - unsigned long val_up, unsigned long val_down, void *v) -{ - unsigned long flags; - int ret; - - /* - * Musn't use RCU; because then the notifier list can - * change between the up and down traversal. - */ - spin_lock_irqsave(&nh->lock, flags); - ret = notifier_call_chain_robust(&nh->head, val_up, val_down, v); - spin_unlock_irqrestore(&nh->lock, flags); - - return ret; -} -EXPORT_SYMBOL_GPL(atomic_notifier_call_chain_robust); -NOKPROBE_SYMBOL(atomic_notifier_call_chain_robust); - /** * atomic_notifier_call_chain - Call functions in an atomic notifier chain * @nh: Pointer to head of the atomic notifier chain -- 2.25.1