Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
87b582ef
Commit
87b582ef
authored
5 years ago
by
Manish Pandey
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "Enable -Wlogical-op always" into integration
parents
f67a2977
d7b4cd41
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+5
-6
Makefile
drivers/mentor/i2c/mi2cv.c
+2
-2
drivers/mentor/i2c/mi2cv.c
plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c
+1
-1
plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c
with
8 additions
and
9 deletions
+8
-9
Makefile
View file @
87b582ef
...
...
@@ -246,7 +246,6 @@ WARNING1 += -Wunused-const-variable
WARNING2
:=
-Waggregate-return
WARNING2
+=
-Wcast-align
WARNING2
+=
-Wnested-externs
WARNING2
+=
-Wlogical-op
WARNING3
:=
-Wbad-function-cast
WARNING3
+=
-Wcast-qual
...
...
@@ -268,13 +267,13 @@ endif
# Compiler specific warnings
ifeq
($(findstring clang,$(notdir $(CC))),)
# not using clang
WARNINGS
+=
-Wunused-but-set-variable
\
-Wmaybe-uninitialized
\
-Wpacked-bitfield-compat
\
-Wshift-overflow
=
2
WARNINGS
+=
-Wunused-but-set-variable
-Wmaybe-uninitialized
\
-Wpacked-bitfield-compat
-Wshift-overflow
=
2
\
-Wlogical-op
else
# using clang
WARNINGS
+=
-Wshift-overflow
-Wshift-sign-overflow
WARNINGS
+=
-Wshift-overflow
-Wshift-sign-overflow
\
-Wlogical-op-parentheses
endif
ifneq
(${E},0)
...
...
This diff is collapsed.
Click to expand it.
drivers/mentor/i2c/mi2cv.c
View file @
87b582ef
...
...
@@ -81,14 +81,14 @@ static void mentor_i2c_interrupt_clear(void)
udelay
(
1
);
}
static
int
mentor_i2c_interrupt_get
(
void
)
static
bool
mentor_i2c_interrupt_get
(
void
)
{
uint32_t
reg
;
/* get the interrupt flag bit */
reg
=
mmio_read_32
((
uintptr_t
)
&
base
->
control
);
reg
&=
I2C_CONTROL_IFLG
;
return
reg
&&
I2C_CONTROL_IFLG
;
return
(
reg
!=
0U
)
;
}
static
int
mentor_i2c_wait_interrupt
(
void
)
...
...
This diff is collapsed.
Click to expand it.
plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c
View file @
87b582ef
...
...
@@ -58,7 +58,7 @@ static enum pm_ret_status pm_ioctl_set_rpu_oper_mode(unsigned int mode)
{
unsigned
int
val
;
if
(
mmio_read_32
(
CRL_APB_RST_LPD_TOP
)
&
&
CRL_APB_RPU_AMBA_RESET
)
if
(
mmio_read_32
(
CRL_APB_RST_LPD_TOP
)
&
CRL_APB_RPU_AMBA_RESET
)
return
PM_RET_ERROR_ACCESS
;
val
=
mmio_read_32
(
ZYNQMP_RPU_GLBL_CNTL
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help