diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-04-11 04:01:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-04-11 17:24:37 -0400 |
commit | 30059d93b07a034555defbf14d689a279fd7368d (patch) | |
tree | f35b573ac017b2620ea5ae0c6dff39e3edf1cd3a | |
parent | 961e668b3447a73c040181def293cfa875c74738 (diff) |
[media] kernel:kfifo: export __kfifo_max_r symbol
kfifo_avail expands to __kfifo_max_r which is not an exported symbol.
Any kernel module using kfifo_avail will result in build failures
because of this.
This patch just exports __kfifo_max_r symbol to fix such problems in
future.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | kernel/kfifo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/kfifo.c b/kernel/kfifo.c index c744b88c44e2..59dcf5b81d24 100644 --- a/kernel/kfifo.c +++ b/kernel/kfifo.c | |||
@@ -402,6 +402,7 @@ unsigned int __kfifo_max_r(unsigned int len, size_t recsize) | |||
402 | return max; | 402 | return max; |
403 | return len; | 403 | return len; |
404 | } | 404 | } |
405 | EXPORT_SYMBOL(__kfifo_max_r); | ||
405 | 406 | ||
406 | #define __KFIFO_PEEK(data, out, mask) \ | 407 | #define __KFIFO_PEEK(data, out, mask) \ |
407 | ((data)[(out) & (mask)]) | 408 | ((data)[(out) & (mask)]) |