summaryrefslogtreecommitdiff
path: root/chip/mchp/lfw/ec_lfw.ld
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-05-09 09:40:32 -0600
committerJett Rink <jettrink@chromium.org>2019-06-07 17:05:28 +0000
commitebbc22c3b73e52cad0fb52a76dc9d4a2ba74d187 (patch)
tree8294eb7d065b7ed22c2ac40e18d783d0a067ef9f /chip/mchp/lfw/ec_lfw.ld
parentd1a9035163f19b9130d417c58d646879f243617b (diff)
downloadchrome-ec-ebbc22c3b73e52cad0fb52a76dc9d4a2ba74d187.tar.gz
common: add __maybe_unused attribute
Functions which might go unused under a particular set of CONFIG_ options have historically been wrapped in an ifdef to clear up compiler warnings about unused functions. Since we are trying to reduce conditional compilation in favor of macros like IS_ENABLED, the Linux kernel style guide suggests using __maybe_unused for these functions. This adds the __maybe_unused macro. BUG=none BRANCH=none TEST=make buildall -j Change-Id: Ia8239ad566b5aa518c258eaab0e4dceada790da4 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1602489 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> (cherry picked from commit f1a16a6688f52e3de9809402564b26af67f265a6) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1648611 Commit-Queue: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/mchp/lfw/ec_lfw.ld')
0 files changed, 0 insertions, 0 deletions