lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 26 Feb 2013 19:36:15 -0600
From:	Kim Phillips <kim.phillips@...escale.com>
To:	Grant Likely <grant.likely@...retlab.ca>,
	Rob Herring <rob.herring@...xeda.com>,
	Russell King <linux@....linux.org.uk>
CC:	Nicolas Pitre <nico@...aro.org>,
	<devicetree-discuss@...ts.ozlabs.org>,
	<linux-arm-kernel@...ts.infradead.org>,
	<linux-kernel@...r.kernel.org>
Subject: [PATCH 3/3] ARM: zImage: sparse fixes

arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32
arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32
arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32
arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32
arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32
arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32
arch/arm/boot/compressed/atags_to_fdt.c:140:54: warning: incorrect type in assignment (different base types)
arch/arm/boot/compressed/atags_to_fdt.c:140:54:    expected unsigned int [unsigned] <noident>
arch/arm/boot/compressed/atags_to_fdt.c:140:54:    got restricted __be32 [usertype] <noident>
arch/arm/boot/compressed/atags_to_fdt.c:141:54: warning: incorrect type in assignment (different base types)
arch/arm/boot/compressed/atags_to_fdt.c:141:54:    expected unsigned int [unsigned] <noident>
arch/arm/boot/compressed/atags_to_fdt.c:141:54:    got restricted __be32 [usertype] <noident>

Signed-off-by: Kim Phillips <kim.phillips@...escale.com>
---
 arch/arm/boot/compressed/atags_to_fdt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c
index aabc02a..b7c4846 100644
--- a/arch/arm/boot/compressed/atags_to_fdt.c
+++ b/arch/arm/boot/compressed/atags_to_fdt.c
@@ -16,7 +16,7 @@ static int node_offset(void *fdt, const char *node_path)
 }
 
 static int setprop(void *fdt, const char *node_path, const char *property,
-		   uint32_t *val_array, int size)
+		   fdt32_t *val_array, int size)
 {
 	int offset = node_offset(fdt, node_path);
 	if (offset < 0)
@@ -95,7 +95,7 @@ static void merge_fdt_bootargs(void *fdt, const char *fdt_cmdline)
 int atags_to_fdt(void *atag_list, void *fdt, int total_space)
 {
 	struct tag *atag = atag_list;
-	uint32_t mem_reg_property[2 * NR_BANKS];
+	fdt32_t mem_reg_property[2 * NR_BANKS];
 	int memcount = 0;
 	int ret;
 
@@ -104,7 +104,7 @@ int atags_to_fdt(void *atag_list, void *fdt, int total_space)
 		return 1;
 
 	/* if we get a DTB here we're done already */
-	if (*(u32 *)atag_list == fdt32_to_cpu(FDT_MAGIC))
+	if (*(fdt32_t *)atag_list == cpu_to_fdt32(FDT_MAGIC))
 	       return 0;
 
 	/* validate the ATAG */
-- 
1.8.1.4


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ