浏览代码

[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>
Srinivas Kandagatla 13 年之前
父节点
当前提交
30059d93b0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/kfifo.c

+ 1 - 0
kernel/kfifo.c

@@ -402,6 +402,7 @@ unsigned int __kfifo_max_r(unsigned int len, size_t recsize)
 		return max;
 		return max;
 	return len;
 	return len;
 }
 }
+EXPORT_SYMBOL(__kfifo_max_r);
 
 
 #define	__KFIFO_PEEK(data, out, mask) \
 #define	__KFIFO_PEEK(data, out, mask) \
 	((data)[(out) & (mask)])
 	((data)[(out) & (mask)])