]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PNP: Mark the function pnp_build_option() as static in resource.c
authorRashika Kheria <rashika.kheria@gmail.com>
Sat, 14 Dec 2013 13:20:56 +0000 (18:50 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Jan 2014 23:24:54 +0000 (00:24 +0100)
This patch marks the function pnp_build_option() as static in resource.c
because it is not used outside this file.

Thus, it also eliminates the following warning in resource.c:
drivers/pnp/resource.c:34:20: warning: no previous prototype for ‘pnp_build_option’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/resource.c

index d95e101ffb439ebec5cc11772305d99578db772d..bacddd102ae9558bee539cf70d1fe6f4e5503ee4 100644 (file)
@@ -31,7 +31,7 @@ static int pnp_reserve_mem[16] = {[0 ... 15] = -1 };  /* reserve (don't use) some
  * option registration
  */
 
-struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type,
+static struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type,
                                    unsigned int option_flags)
 {
        struct pnp_option *option;