From: Srinivas Kandagatla Date: Wed, 11 Apr 2012 08:01:56 +0000 (-0300) Subject: [media] kernel:kfifo: export __kfifo_max_r symbol X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=30059d93b07a034555defbf14d689a279fd7368d;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Srinivas Kandagatla Acked-by: Stefani Seibold Signed-off-by: Mauro Carvalho Chehab --- 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) return max; return len; } +EXPORT_SYMBOL(__kfifo_max_r); #define __KFIFO_PEEK(data, out, mask) \ ((data)[(out) & (mask)])