Skip to content

Odroidc2 v2015.01 - enable compiling with GCC 6 #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: odroidc2-v2015.01
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arch/arm/cpu/armv8/gxb/bl31_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int32_t meson_trustzone_efuse(struct efuse_hal_api_arg *arg)
if (arg->cmd == EFUSE_HAL_API_WRITE)
memcpy((void *)sharemem_input_base,
(const void *)arg->buffer_phy, size);
asm __volatile__("" : : : "memory");
asm __volatile__("" : : : "memory");

register uint64_t x0 asm("x0") = cmd;
register uint64_t x1 asm("x1") = offset;
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/aml_sd_emmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static int sd_inand_staff_init(struct mmc *mmc)
}
if (!sdio->inited_flag)
sdio->inited_flag = 1;
return SD_NO_ERROR;
return SD_NO_ERROR;
}


Expand Down
1 change: 0 additions & 1 deletion drivers/usb/gadget/s3c_udc_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ static char *state_names[] = {
struct s3c_udc *the_controller;

static const char driver_name[] = "s3c-udc";
static const char driver_desc[] = DRIVER_DESC;
static const char ep0name[] = "ep0-control";

/* Max packet size*/
Expand Down
4 changes: 4 additions & 0 deletions include/linux/compiler-gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@

#define __gcc_header(x) #x
#define _gcc_header(x) __gcc_header(linux/compiler-gcc##x.h)
#if __GNUC__ > 5
#define gcc_header(x) _gcc_header(5)
#else
#define gcc_header(x) _gcc_header(x)
#endif
#include gcc_header(__GNUC__)

#if !defined(__noclone)
Expand Down