OSDN Git Service

platform/x86: dell-rbtn: Add missing #include
authorValdis Kl ē tnieks <valdis.kletnieks@vt.edu>
Tue, 12 Mar 2019 11:26:06 +0000 (07:26 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 8 Apr 2019 17:12:13 +0000 (20:12 +0300)
commite28f296ea155da36f710eb1f1173d8780fbac49d
treec1f9d58b47918724f3219e17939b6bbe8b185e13
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
platform/x86: dell-rbtn: Add missing #include

Building with W=1 complains:
  CC [M]  drivers/platform/x86/dell-rbtn.o
drivers/platform/x86/dell-rbtn.c:345:5: warning: no previous prototype for 'dell_rbtn_notifier_register' [-Wmissing-prototypes]
  345 | int dell_rbtn_notifier_register(struct notifier_block *nb)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/dell-rbtn.c:371:5: warning: no previous prototype for 'dell_rbtn_notifier_unregister' [-Wmissing-prototypes]
  371 | int dell_rbtn_notifier_unregister(struct notifier_block *nb)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The real problem is a missing include. Add it to keep dell-rbtn.c and .h in sync.

Fixes: b05ffc95f9ed ("dell-rbtn: Export notifier for other kernel modules")
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
[andy: massaged commit message, added Fixes tag]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/dell-rbtn.c