On 10 November 2016 at 13:52, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > The first argument of WARN() is the condition, followed by the message. > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx> Kind regards Uffe > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > index 661737c..7b4d41f 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -1297,7 +1297,7 @@ static int genpd_add_subdomain(struct generic_pm_domain *genpd, > * powered on/off in that context. > */ > if (!genpd_is_irq_safe(genpd) && genpd_is_irq_safe(subdomain)) { > - WARN("Parent %s of subdomain %s must be IRQ safe\n", > + WARN(1, "Parent %s of subdomain %s must be IRQ safe\n", > genpd->name, subdomain->name); > return -EINVAL; > } -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html