media: pms.c needs linux/slab.h
authorRandy Dunlap <rdunlap@xenotime.net>
Thu, 21 Jun 2012 01:30:30 +0000 (18:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jun 2012 05:10:08 +0000 (22:10 -0700)
commit0e3534c0417fef6e6535db8867a04798f2024e3f
treea78b82ec42f40a79a2c27dcc7c94776f13762826
parentbc259adc9b76f625fff0423df3ffb80a03802927
media: pms.c needs linux/slab.h

drivers/media/video/pms.c uses kzalloc() and kfree() so it should
include <linux/slab.h> to fix build errors and a warning.

  drivers/media/video/pms.c:1047:2: error: implicit declaration of function 'kzalloc'
  drivers/media/video/pms.c:1047:6: warning: assignment makes pointer from integer without a cast
  drivers/media/video/pms.c:1116:2: error: implicit declaration of function 'kfree'

Found in mmotm but applies to mainline.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/video/pms.c