arch/x86: Replace some __SMM__ guards
commit21d6a27ac07d5233a7dd473d84c4c0b541059146
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Tue, 5 Nov 2019 16:50:38 +0000 (5 18:50 +0200)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Sat, 9 Nov 2019 11:03:03 +0000 (9 11:03 +0000)
treed926aa165ad61e40a4ebdc770a8cbc96fd23d24a
parentbe5317f6d0084b1997ff7342fbf5a5af3eecd950
arch/x86: Replace some __SMM__ guards

We generally do not guard source in attempts to reduce
the final object sizes, but rely on garbage collection.

Most of the __unused attributes inserted here will be
removed when remaining __SIMPLE_DEVICE__ guards can
be removed.

Change-Id: I2440931fab4f41d7e8249c082e6c9b5a9cd0ef13
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36641
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
14 files changed:
src/mainboard/google/stout/ec.c
src/soc/intel/baytrail/pmutil.c
src/soc/intel/braswell/pmutil.c
src/soc/intel/broadwell/xhci.c
src/southbridge/intel/bd82x6x/me.c
src/southbridge/intel/bd82x6x/me_8.x.c
src/southbridge/intel/bd82x6x/pch.c
src/southbridge/intel/common/gpio.c
src/southbridge/intel/common/pmbase.c
src/southbridge/intel/ibexpeak/me.c
src/southbridge/intel/lynxpoint/me_9.x.c
src/southbridge/intel/lynxpoint/pch.c
src/southbridge/intel/lynxpoint/usb_ehci.c
src/southbridge/intel/lynxpoint/usb_xhci.c