Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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>
  • Loading branch information...
commit 30059d93b07a034555defbf14d689a279fd7368d 1 parent 961e668
Srinivas Kandagatla authored Mauro Carvalho Chehab committed

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  kernel/kfifo.c
1  kernel/kfifo.c
@@ -402,6 +402,7 @@ unsigned int __kfifo_max_r(unsigned int len, size_t recsize)
402 402 return max;
403 403 return len;
404 404 }
  405 +EXPORT_SYMBOL(__kfifo_max_r);
405 406
406 407 #define __KFIFO_PEEK(data, out, mask) \
407 408 ((data)[(out) & (mask)])

0 comments on commit 30059d9

Please sign in to comment.
Something went wrong with that request. Please try again.