From: Rashika Kheria Date: Sat, 14 Dec 2013 13:20:56 +0000 (+0530) Subject: PNP: Mark the function pnp_build_option() as static in resource.c X-Git-Tag: v3.14-rc1~107^2~7^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62c6dae02d4fe2bfa6bc699ae456ff1c50d10bd0;p=thirdparty%2Fkernel%2Flinux.git PNP: Mark the function pnp_build_option() as static in resource.c 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 Reviewed-by: Josh Triplett Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index d95e101ffb439..bacddd102ae95 100644 --- a/drivers/pnp/resource.c +++ b/drivers/pnp/resource.c @@ -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;