mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
build: fix build err [1/1]
PD#SWPL-4150 Problem: When switch to the toolchain shipped with android P, multipile "-Werror=maybe-uninitialized" error occurs, and the code fail to be compiled Solution: Initialize variables if necessary Verify: Locally on Ampere Change-Id: I280de648914565656831e211539bf41a7dee2b4a Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
This commit is contained in:
@@ -375,7 +375,7 @@ canvas_pool_map_show(struct class *class,
|
||||
int ret;
|
||||
int i;
|
||||
ssize_t size = 0;
|
||||
struct canvas_info info;
|
||||
struct canvas_info info = {NULL, 0, NULL, 0};
|
||||
struct canvas_s canvas;
|
||||
|
||||
if (jiffies - pool->last_cat_map > 5 * HZ) {
|
||||
|
||||
@@ -1845,6 +1845,8 @@ static int atsc_j83b_detect_first(struct dvb_frontend *fe, enum fe_status *s)
|
||||
int cnt;
|
||||
int check_ok;
|
||||
|
||||
j83b_status = 0;
|
||||
|
||||
/*tuner:*/
|
||||
if (dvb_tuner_delay > 9)
|
||||
msleep(dvb_tuner_delay);
|
||||
@@ -1911,7 +1913,7 @@ static int atsc_j83b_polling(struct dvb_frontend *fe, enum fe_status *s)
|
||||
|
||||
PR_DBG("+7+");
|
||||
|
||||
|
||||
j83b_status = 0;
|
||||
strenth = tuner_get_ch_power(fe);
|
||||
if (strenth < THRD_TUNER_STRENTH_J83) {
|
||||
*s = FE_TIMEDOUT;
|
||||
|
||||
@@ -931,7 +931,7 @@ static void xc5000_config_tv(struct dvb_frontend *fe,
|
||||
static int xc5000_set_tv_freq(struct dvb_frontend *fe)
|
||||
{
|
||||
struct xc5000_priv *priv = fe->tuner_priv;
|
||||
u16 pll_lock_status;
|
||||
u16 pll_lock_status = 0;
|
||||
int ret;
|
||||
|
||||
tune_channel:
|
||||
|
||||
@@ -112,6 +112,11 @@ COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv,
|
||||
struct timespec new_ts;
|
||||
struct timezone new_tz;
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_MODIFY
|
||||
new_ts.tv_sec = 0;
|
||||
new_ts.tv_nsec = 0;
|
||||
#endif
|
||||
|
||||
if (tv) {
|
||||
if (compat_get_timeval(&user_tv, tv))
|
||||
return -EFAULT;
|
||||
|
||||
@@ -1222,6 +1222,10 @@ void set_process_cpu_timer(struct task_struct *tsk, unsigned int clock_idx,
|
||||
{
|
||||
unsigned long long now;
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_MODIFY
|
||||
now = 0;
|
||||
#endif
|
||||
|
||||
WARN_ON_ONCE(clock_idx == CPUCLOCK_SCHED);
|
||||
cpu_timer_sample_group(clock_idx, tsk, &now);
|
||||
|
||||
|
||||
@@ -198,6 +198,11 @@ SYSCALL_DEFINE2(settimeofday, struct timeval __user *, tv,
|
||||
struct timespec new_ts;
|
||||
struct timezone new_tz;
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_MODIFY
|
||||
new_ts.tv_sec = 0;
|
||||
new_ts.tv_nsec = 0;
|
||||
#endif
|
||||
|
||||
if (tv) {
|
||||
if (copy_from_user(&user_tv, tv, sizeof(*tv)))
|
||||
return -EFAULT;
|
||||
|
||||
@@ -997,6 +997,10 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
|
||||
struct hlist_head *list;
|
||||
struct path path = { NULL, NULL };
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_MODIFY
|
||||
hash = 0;
|
||||
#endif
|
||||
|
||||
err = -EINVAL;
|
||||
if (addr_len < offsetofend(struct sockaddr_un, sun_family) ||
|
||||
sunaddr->sun_family != AF_UNIX)
|
||||
|
||||
Reference in New Issue
Block a user