diff options
author | Manoj Gupta <manojgupta@google.com> | 2022-04-28 09:36:29 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-28 18:03:32 +0000 |
commit | fb6d5c2071f44ee46216ea84490d7355f10bb0f2 (patch) | |
tree | f9be9bab457b83b5f530c0eca83b7c65a67e6a72 | |
parent | b89fa1ef8e6fa09f782c7a31dab87de5668c024a (diff) | |
download | chrome-ec-fb6d5c2071f44ee46216ea84490d7355f10bb0f2.tar.gz |
chip/host: Fix -Wstrict-prototypes warning
ToT clang is complaining about missing 'void' in
function prototype.
chip/host/system.c:136:45:
error: function declaration without a prototype is deprecated
in all versions of C [-Werror,-Wstrict-prototypes]
test_mockable uintptr_t get_panic_data_start()
^
void
BUG=b:230345382
TEST=CQ, llvm tot test
BRANCH=none
Signed-off-by: Manoj Gupta <manojgupta@google.com>
Change-Id: I5c9faab7c0d5ca743d001afb6fe359378974bf8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615029
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
Auto-Submit: Manoj Gupta <manojgupta@chromium.org>
-rw-r--r-- | chip/host/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/host/system.c b/chip/host/system.c index 60d765deab..bf63af8bf0 100644 --- a/chip/host/system.c +++ b/chip/host/system.c @@ -133,7 +133,7 @@ test_mockable struct panic_data *panic_get_data(void) (__ram_data + RAM_DATA_SIZE - sizeof(struct panic_data)); } -test_mockable uintptr_t get_panic_data_start() +test_mockable uintptr_t get_panic_data_start(void) { return (uintptr_t) (__ram_data + RAM_DATA_SIZE - sizeof(struct panic_data)); |