From: Florian Tobias Schandinat Date: Wed, 10 Mar 2010 23:21:26 +0000 (-0800) Subject: viafb: deprecate private ioctls X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cc8b82f8c80e8b9e212e0102ee7af9972829e45c;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git viafb: deprecate private ioctls Print a warning when viafb ioctls are called. Those should not be used as their exact meaning is sometimes unknown and they in parts duplicate functionality present in the framebuffer interface. There is no known user of these ioctls. Signed-off-by: Florian Tobias Schandinat Cc: Joseph Chan Cc: Scott Fang Cc: Krzysztof Helt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index 3028e7ddc3b5..156a900aa884 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c @@ -476,6 +476,7 @@ static int viafb_ioctl(struct fb_info *info, u_int cmd, u_long arg) u32 gpu32; DEBUG_MSG(KERN_INFO "viafb_ioctl: 0x%X !!\n", cmd); + printk(KERN_WARNING "viafb_ioctl: Please avoid this interface as it is unstable and might change or vanish at any time!\n"); memset(&u, 0, sizeof(u)); switch (cmd) {