Skip to content

Commit 62c6dae

Browse files
rashikarafaeljw
authored andcommitted
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 <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 75365d0 commit 62c6dae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/pnp/resource.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int pnp_reserve_mem[16] = {[0 ... 15] = -1 }; /* reserve (don't use) some
3131
* option registration
3232
*/
3333

34-
struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type,
34+
static struct pnp_option *pnp_build_option(struct pnp_dev *dev, unsigned long type,
3535
unsigned int option_flags)
3636
{
3737
struct pnp_option *option;

0 commit comments

Comments
 (0)