Skip to content

Commit

Permalink
[media] kernel:kfifo: export __kfifo_max_r symbol
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Acked-by: Stefani Seibold <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Srinivas-Kandagatla authored and Mauro Carvalho Chehab committed Apr 11, 2012
1 parent 961e668 commit 30059d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/kfifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand Down

0 comments on commit 30059d9

Please sign in to comment.