Skip to contentSkip to conversation

firmware: fix the compiller warning

PATCH In review Ding Tianhong 2 participants 2 messages Jun 20, 2014 EFI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: fix the compiller warning

When I compile the kernel, found this warning:

In file included from arch/arm64/kernel/efi-stub.c:44:0:
arch/arm64/kernel/../../../drivers/firmware/efi/fdt.c: In function update_fdt:
arch/arm64/kernel/../../../drivers/firmware/efi/fdt.c:66:22: warning: unused variable name [-Wunused-variable]
const char *type, *name;

so remove the unused variable and clean this warning.

---
 drivers/firmware/efi/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/efi/fdt.c +1 -1
index 5c6a8e8..82d7741 100644
@@ -63,7 +63,7 @@ static efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt,
 	 */
 	prev = 0;
 	for (;;) {
-		const char *type, *name;
+		const char *type;
 		int len;
 
 		node = fdt_next_node(fdt, prev, NULL);
Signature · 1 line
1.8.0
#1 lore raw
Quoted 7 lines · Ding Tianhong

When I compile the kernel, found this warning:

In file included from arch/arm64/kernel/efi-stub.c:44:0:
arch/arm64/kernel/../../../drivers/firmware/efi/fdt.c: In function update_fdt:
arch/arm64/kernel/../../../drivers/firmware/efi/fdt.c:66:22: warning: unused variable name [-Wunused-variable]
const char *type, *name;

Quoted 6 lines

so remove the unused variable and clean this warning.

---
 drivers/firmware/efi/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, for the report, but I've already queued up a fix from Catalin and sent a pull request to the tip folks,

http://marc.info/?l=linux-kernel&m=140325482303647

Signature · 1 line
Matt Fleming, Intel Open Source Technology Center