提交 6e9430ac 编写于 作者: G Greg Kroah-Hartman

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: Nkbuild test robot <fengguang.wu@intel.com>
Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9f3b795a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册