kernel: Fix build errors with LLVM

This patch intends to fix some trivial errors reported
while building kernel with LLVM toolchain.

Change-Id: Icc15085abe52498c90ee5345beb65120fc2636ee
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
This commit is contained in:
Shiraz Hashim 2020-02-04 13:34:29 +05:30 • committed by Swetha Chikkaboraiah
commit 4e297f45a4
4 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2016, 2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2016, 2018, 2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -1062,7 +1062,7 @@ static struct rcg_clk pclk0_clk_src = {
.c = {
.dbg_name = "pclk0_clk_src",
.ops = &clk_ops_pixel,
VDD_DIG_FMAX_MAP1(LOWER, 83333333.33),
VDD_DIG_FMAX_MAP1(LOWER, 83333333),
CLK_INIT(pclk0_clk_src.c),
},
};

View file

@ -1,6 +1,6 @@
/*
* Copyright (C) 2007 Google, Inc.
* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2017, 2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -3052,7 +3052,7 @@ static int msm_nand_scan(struct mtd_info *mtd)
for (i = 0; !flashman && nand_manuf_ids[i].id; ++i)
if (nand_manuf_ids[i].id == manid)
flashman = &nand_manuf_ids[i];
for (i = 0; !flashdev && nand_flash_ids[i].id; ++i) {
for (i = 0; !flashdev && (nand_flash_ids[i].id != NULL); ++i) {
/*
* If id_len is specified for an entry in the nand ids
* array, then at least 4 bytes of the nand id is

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, 2020, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -27,18 +27,18 @@ enum bg_tz_commands {
};
/* tzapp bg request.*/
__packed struct tzapp_bg_req {
struct tzapp_bg_req {
uint8_t tzapp_bg_cmd;
phys_addr_t address_fw;
size_t size_fw;
};
} __attribute__ ((__packed__));
/* tzapp bg response.*/
__packed struct tzapp_bg_rsp {
struct tzapp_bg_rsp {
uint32_t tzapp_bg_cmd;
uint32_t bg_info_len;
int32_t status;
uint32_t bg_info[100];
};
} __attribute__ ((__packed__));
#endif

View file

@ -107,7 +107,7 @@ static struct file_perms change_profile_perms(struct aa_profile *profile,
return perms;
} else if (!profile->file.dfa) {
return nullperms;
} else if ((ns == profile->ns)) {
} else if (ns == profile->ns) {
/* try matching against rules with out namespace prepended */
aa_str_perms(profile->file.dfa, start, name, &cond, &perms);
if (COMBINED_PERM_MASK(perms) & request)