Re: [Intel-gfx] [RFC 1/7] treewide: device: add condition support to dev_WARN

2020-01-08 Thread Jani Nikula
On Mon, 06 Jan 2020, Pankaj Bharadiya wrote: > dev_WARN does not support conditional warning unlike WARN. > > Add condition support to dev_WARN (file: include/linux/device.h) > to make it work like WARN and modify all existing callers to use it. > > This is quite useful where we want to replace e

[Intel-gfx] [RFC 1/7] treewide: device: add condition support to dev_WARN

2020-01-06 Thread Pankaj Bharadiya
dev_WARN does not support conditional warning unlike WARN. Add condition support to dev_WARN (file: include/linux/device.h) to make it work like WARN and modify all existing callers to use it. This is quite useful where we want to replace existing WARN with dev_WARN. Following cocci script is us