From: Greg Kroah-Hartman Date: Wed, 6 Feb 2013 23:59:18 +0000 (-0800) Subject: TTY: mark tty_get_device call with the proper const values X-Git-Tag: firefly_0821_release~3680^2~1081^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e9430ac57e8c1f41ab24ef7fbb3d452c7eb7246;p=firefly-linux-kernel-4.4.55.git TTY: mark tty_get_device call with the proper const values Michał's previous patch missed this tty check to fix up the class_find_device() arguments. Reported-by: kbuild test robot Cc: Michał Mirosław Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index da9fde850754..6b20fd66d4ad 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -2906,9 +2906,9 @@ void do_SAK(struct tty_struct *tty) EXPORT_SYMBOL(do_SAK); -static int dev_match_devt(struct device *dev, void *data) +static int dev_match_devt(struct device *dev, const void *data) { - dev_t *devt = data; + const dev_t *devt = data; return dev->devt == *devt; }