From 374b937a2550dd2480e1cb416714b16a877c86d8 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 10 Oct 2018 14:00:21 -0700 Subject: [PATCH] ec/google/chromeec: Get rid of __SMM__ guard for chromeec functions There doesn't seem to be a reason why we would want to protect certain chromeec functions with __SMM__ guard. So, this change gets rid of it. If the functions remain unused, then they would be removed during linking. Change-Id: I8196406074b01fe8ea15173c55d45bb86384be1b Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/29006 Reviewed-by: Aaron Durbin Reviewed-by: Enrico Granata Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/ec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 90fcc3d96c..75d9da16e2 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -636,7 +636,6 @@ int google_chromeec_cbi_get_dram_part_num(char *buf, size_t bufsize) return 0; } -#ifndef __SMM__ int google_chromeec_get_board_version(uint32_t *version) { struct chromeec_command cmd; @@ -713,8 +712,6 @@ retry: return cec_cmd.cmd_code; } -#endif /* ! __SMM__ */ - #ifndef __PRE_RAM__ int google_chromeec_i2c_xfer(uint8_t chip, uint8_t addr, int alen, @@ -920,8 +917,6 @@ int google_chromeec_set_usb_pd_role(u8 port, enum usb_pd_control_role role) return google_chromeec_command(&cmd); } -#ifndef __SMM__ - static int google_chromeec_hello(void) { struct chromeec_command cec_cmd; @@ -1106,7 +1101,6 @@ int google_ec_running_ro(void) { return (ec_image_type == EC_IMAGE_RO); } -#endif /* ! __SMM__ */ #endif /* ! __PRE_RAM__ */