Commit 62d10271 authored by Mika Kukkonen's avatar Mika Kukkonen Committed by Linus Torvalds

[PATCH] sparse: fix sparse in drivers/pnp/pnpbios/*

  CHECK   drivers/pnp/pnpbios/core.c
include/linux/pnpbios.h:144:5: warning: undefined preprocessor identifier 'needed'
  CC      drivers/pnp/pnpbios/core.o
  CHECK   drivers/pnp/pnpbios/bioscalls.c
include/linux/pnpbios.h:144:5: warning: undefined preprocessor identifier 'needed'
drivers/pnp/pnpbios/bioscalls.c:346:5: warning: undefined preprocessor identifier 'needed'
drivers/pnp/pnpbios/bioscalls.c:361:5: warning: undefined preprocessor identifier 'needed'
drivers/pnp/pnpbios/bioscalls.c:388:5: warning: undefined preprocessor identifier 'needed'
drivers/pnp/pnpbios/bioscalls.c:427:5: warning: undefined preprocessor identifier 'needed'
drivers/pnp/pnpbios/bioscalls.c:509:5: warning: undefined preprocessor identifier 'needed'
  CC      drivers/pnp/pnpbios/bioscalls.o
  CHECK   drivers/pnp/pnpbios/rsparser.c
include/linux/pnpbios.h:144:5: warning: undefined preprocessor identifier 'needed'
  CC      drivers/pnp/pnpbios/rsparser.o
  CHECK   drivers/pnp/pnpbios/proc.c
include/linux/pnpbios.h:144:5: warning: undefined preprocessor identifier 'needed'

The fix is trivial, sparse wants the preprocessor symbol to be defined
before use.  There was a similar fix accepted by Linus couple weeks ago.
Patch attached.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 482ce192
......@@ -141,6 +141,7 @@ extern int pnp_bios_isapnp_config (struct pnp_isa_config_struc *data);
extern int pnp_bios_escd_info (struct escd_info_struc *data);
extern int pnp_bios_read_escd (char *data, u32 nvram_base);
extern int pnp_bios_dock_station_info(struct pnp_docking_station_info *data);
#define needed 0
#if needed
extern int pnp_bios_get_event (u16 *message);
extern int pnp_bios_send_message (u16 message);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment