Skip to content

Commit 15538a2

Browse files
Valentin Schneiderrafaeljw
authored andcommitted
notifier: Remove atomic_notifier_call_chain_robust()
This now has no more users, remove it. Suggested-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Valentin Schneider <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b2f6662 commit 15538a2

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

include/linux/notifier.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ extern int raw_notifier_call_chain(struct raw_notifier_head *nh,
168168
extern int srcu_notifier_call_chain(struct srcu_notifier_head *nh,
169169
unsigned long val, void *v);
170170

171-
extern int atomic_notifier_call_chain_robust(struct atomic_notifier_head *nh,
172-
unsigned long val_up, unsigned long val_down, void *v);
173171
extern int blocking_notifier_call_chain_robust(struct blocking_notifier_head *nh,
174172
unsigned long val_up, unsigned long val_down, void *v);
175173
extern int raw_notifier_call_chain_robust(struct raw_notifier_head *nh,

kernel/notifier.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -172,25 +172,6 @@ int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh,
172172
}
173173
EXPORT_SYMBOL_GPL(atomic_notifier_chain_unregister);
174174

175-
int atomic_notifier_call_chain_robust(struct atomic_notifier_head *nh,
176-
unsigned long val_up, unsigned long val_down, void *v)
177-
{
178-
unsigned long flags;
179-
int ret;
180-
181-
/*
182-
* Musn't use RCU; because then the notifier list can
183-
* change between the up and down traversal.
184-
*/
185-
spin_lock_irqsave(&nh->lock, flags);
186-
ret = notifier_call_chain_robust(&nh->head, val_up, val_down, v);
187-
spin_unlock_irqrestore(&nh->lock, flags);
188-
189-
return ret;
190-
}
191-
EXPORT_SYMBOL_GPL(atomic_notifier_call_chain_robust);
192-
NOKPROBE_SYMBOL(atomic_notifier_call_chain_robust);
193-
194175
/**
195176
* atomic_notifier_call_chain - Call functions in an atomic notifier chain
196177
* @nh: Pointer to head of the atomic notifier chain

0 commit comments

Comments
 (0)