• Randy Dunlap's avatar
    media: pms.c needs linux/slab.h · 0e3534c0
    Randy Dunlap authored
    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: default avatarRandy Dunlap <rdunlap@xenotime.net>
    Cc: Hans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    0e3534c0
pms.c 25.6 KB