ANDROID: random: add back removed callback functions
Commit 6da877d2d46b ("random: replace custom notifier chain with standard one") in 5.15.44 removed the add_random_ready_callback() and del_random_ready_callback() functions, which are part of the current Android ABI in this branch. To handle this properly, add them back in order for out-of-tree code to continue working. Bug: 161946584 Fixes: 6da877d2d46b ("random: replace custom notifier chain with standard one") Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I422f3af1a28c5cf2e7f7806d6fb37d66901e3a33
This commit is contained in:
@@ -138,4 +138,17 @@ int random_online_cpu(unsigned int cpu);
|
||||
extern const struct file_operations random_fops, urandom_fops;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Android KABI fixups
|
||||
* Added back the following structure and calls to preserve the ABI for
|
||||
* out-of-tree drivers that were using them.
|
||||
*/
|
||||
struct random_ready_callback {
|
||||
struct list_head list;
|
||||
void (*func)(struct random_ready_callback *rdy);
|
||||
struct module *owner;
|
||||
};
|
||||
extern int add_random_ready_callback(struct random_ready_callback *rdy);
|
||||
extern void del_random_ready_callback(struct random_ready_callback *rdy);
|
||||
|
||||
#endif /* _LINUX_RANDOM_H */
|
||||
|
Reference in New Issue
Block a user