Message ID | 078ce0be8945b9e2530f2e0ce84c8dcbb154edb6.1525526664.git.mchehab+samsung@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Sat, May 5, 2018 at 4:24 PM, Mauro Carvalho Chehab <mchehab+samsung@kernel.org> wrote: > As pointed by ktest: > >>> drivers/media//pci/pt1/pt1.c:1433:5: warning: "CONFIG_PM_SLEEP" is not defined, evaluates to 0 [-Wundef] > #if CONFIG_PM_SLEEP > ^~~~~~~~~~~~~~~ > Why not to go further and drop this ugly #if(def) in favour of __maybe_unused? > Reported-by: kbuild test robot <lkp@intel.com> > Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> > --- > drivers/media/pci/pt1/pt1.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c > index 3b7e08a4639a..55a89ea13f2a 100644 > --- a/drivers/media/pci/pt1/pt1.c > +++ b/drivers/media/pci/pt1/pt1.c > @@ -1443,7 +1443,7 @@ static struct pci_driver pt1_driver = { > .probe = pt1_probe, > .remove = pt1_remove, > .id_table = pt1_id_table, > -#if CONFIG_PM_SLEEP > +#ifdef CONFIG_PM_SLEEP > .driver.pm = &pt1_pm_ops, > #endif > }; > -- > 2.17.0 >
diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 3b7e08a4639a..55a89ea13f2a 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -1443,7 +1443,7 @@ static struct pci_driver pt1_driver = { .probe = pt1_probe, .remove = pt1_remove, .id_table = pt1_id_table, -#if CONFIG_PM_SLEEP +#ifdef CONFIG_PM_SLEEP .driver.pm = &pt1_pm_ops, #endif };