X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=drivers%2Fvideo%2Ffbdev%2Fvia%2Fviafbdev.c;h=7bb7e90b8f006f28548da5ed6b4944ee0f9131e6;hb=b6566b47a67e07fdca44cf51abb14e2fbe17d3eb;hp=9b45125988fbcab1af7a77a7bcddb74e1b6fd725;hpb=ea125dedbc14b305307889c40d74d564c4419851;p=uclinux-h8%2Flinux.git diff --git a/drivers/video/fbdev/via/viafbdev.c b/drivers/video/fbdev/via/viafbdev.c index 9b45125988fb..7bb7e90b8f00 100644 --- a/drivers/video/fbdev/via/viafbdev.c +++ b/drivers/video/fbdev/via/viafbdev.c @@ -19,13 +19,13 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include #include #include #include #include #include #include -#include #define _MASTER_FILE #include "global.h" @@ -596,7 +596,8 @@ static int viafb_ioctl(struct fb_info *info, u_int cmd, u_long arg) break; case VIAFB_GET_GAMMA_LUT: - viafb_gamma_table = kmalloc(256 * sizeof(u32), GFP_KERNEL); + viafb_gamma_table = kmalloc_array(256, sizeof(u32), + GFP_KERNEL); if (!viafb_gamma_table) return -ENOMEM; viafb_get_gamma_table(viafb_gamma_table); @@ -1468,7 +1469,7 @@ static const struct file_operations viafb_vt1636_proc_fops = { #endif /* CONFIG_FB_VIA_DIRECT_PROCFS */ -static int viafb_sup_odev_proc_show(struct seq_file *m, void *v) +static int __maybe_unused viafb_sup_odev_proc_show(struct seq_file *m, void *v) { via_odev_to_seq(m, supported_odev_map[ viaparinfo->shared->chip_info.gfx_chip_name]);