kdbus: Revert "fs: unexport poll_schedule_timeout" 31/256231/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 21 Dec 2020 11:40:27 +0000 (12:40 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 31 Mar 2021 06:05:09 +0000 (08:05 +0200)
This reverts commit 8f546ae1fc5ce8396827d4868c7eee1f1cc6947a.

Change-Id: I5429471eeb092c55a50e37c0b642d50d69daebc7
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
fs/select.c
include/linux/poll.h

index 4a6b6e4..e0f8ae9 100644 (file)
@@ -233,7 +233,7 @@ static void __pollwait(struct file *filp, wait_queue_head_t *wait_address,
        add_wait_queue(wait_address, &entry->wait);
 }
 
-static int poll_schedule_timeout(struct poll_wqueues *pwq, int state,
+int poll_schedule_timeout(struct poll_wqueues *pwq, int state,
                          ktime_t *expires, unsigned long slack)
 {
        int rc = -EINTR;
@@ -258,6 +258,7 @@ static int poll_schedule_timeout(struct poll_wqueues *pwq, int state,
 
        return rc;
 }
+EXPORT_SYMBOL(poll_schedule_timeout);
 
 /**
  * poll_select_set_timeout - helper function to setup the timeout value
index 7e0fdcf..5cfb321 100644 (file)
@@ -108,6 +108,8 @@ struct poll_wqueues {
 
 extern void poll_initwait(struct poll_wqueues *pwq);
 extern void poll_freewait(struct poll_wqueues *pwq);
+extern int poll_schedule_timeout(struct poll_wqueues *pwq, int state,
+                                ktime_t *expires, unsigned long slack);
 extern u64 select_estimate_accuracy(struct timespec64 *tv);
 
 #define MAX_INT64_SECONDS (((s64)(~((u64)0)>>1)/HZ)-1)