[media] kernel:kfifo: export __kfifo_max_r symbol
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Wed, 11 Apr 2012 08:01:56 +0000 (05:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 11 Apr 2012 21:24:37 +0000 (18:24 -0300)
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>
kernel/kfifo.c

index c744b88c44e2d8ad0d4c4c3f395cfca0b4757a69..59dcf5b81d24eae5580638547fbbe026a18566f2 100644 (file)
@@ -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)])