summaryrefslogtreecommitdiff
path: root/src/ec/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google')
-rw-r--r--src/ec/google/chromeec/crosec_proto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ec/google/chromeec/crosec_proto.c b/src/ec/google/chromeec/crosec_proto.c
index a63cfada5d..1a8ffb93c5 100644
--- a/src/ec/google/chromeec/crosec_proto.c
+++ b/src/ec/google/chromeec/crosec_proto.c
@@ -14,6 +14,7 @@
*/
#include <arch/io.h>
+#include <compiler.h>
#include <console/console.h>
#include <delay.h>
#include <stdint.h>
@@ -23,7 +24,7 @@
#include "ec_message.h"
/* Common utilities */
-void * __attribute__((weak)) crosec_get_buffer(size_t size, int req)
+void * __weak crosec_get_buffer(size_t size, int req)
{
printk(BIOS_DEBUG, "crosec_get_buffer() implementation required.\n");
return NULL;