From patchwork Fri Jun 20 04:19:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ding Tianhong X-Patchwork-Id: 32255 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 05782206A0 for ; Fri, 20 Jun 2014 04:20:09 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id db11sf10848928veb.9 for ; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:subject:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=tiQqGgvi//bp8ukI7syPvbACDSCsI62p+pR2KZaQTdg=; b=hJ9wNvkMW/0SaZThnP3VMb1CeKHyj0geCDM8IW7PKLX9OnXwf3K0S8LgehcyiCZDcq W7DpyHRqLFU4GqexWUHlyHTZRtSvQHJP5Sbwx0xn4c+hNf9hI3bZ1d6H2/L7VH+FIgwK jMOc5y4nA9TJS4nwU2aU8ap/sBtXkaFmwjCdAJRbNXP5qN9Cgy72bn5D1VIkkooWJb9K ctp41OgzQctOnIDnlsjsY+1VxrpPZWzaHYDHnkhLtvbyODUVJ9ZvPVEsT+G/fG6CiiGD krPRSN4HZeOtYEWFgOqrGAM63OhnpRcjv11Z0YjaO2+6Foizx3eZPc6xuI1LbJxhMIyA 4tlg== X-Gm-Message-State: ALoCoQlOI+2VpGb9rrkDqzke27w1KUFeg2eA2lnvAN1nJ3xJFmBZ1oZtHeZjKo3x/mQzIJPDh+li X-Received: by 10.58.178.39 with SMTP id cv7mr434611vec.9.1403238009778; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.100 with SMTP id f91ls811009qge.65.gmail; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) X-Received: by 10.52.243.225 with SMTP id xb1mr655073vdc.36.1403238009638; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id dc6si3386093vcb.70.2014.06.19.21.20.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 21:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.175 as permitted sender) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id jx11so3142143veb.6 for ; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) X-Received: by 10.52.184.164 with SMTP id ev4mr642986vdc.15.1403238009433; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp411812vcb; Thu, 19 Jun 2014 21:20:09 -0700 (PDT) X-Received: by 10.68.78.66 with SMTP id z2mr1233375pbw.71.1403238008701; Thu, 19 Jun 2014 21:20:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ks7si3387124pab.173.2014.06.19.21.20.07; Thu, 19 Jun 2014 21:20:08 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753326AbaFTEUE (ORCPT + 7 others); Fri, 20 Jun 2014 00:20:04 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:39793 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbaFTEUD (ORCPT ); Fri, 20 Jun 2014 00:20:03 -0400 Received: from 172.24.2.119 (EHLO szxeml206-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BXE60841; Fri, 20 Jun 2014 12:19:56 +0800 (CST) Received: from SZXEML422-HUB.china.huawei.com (10.82.67.161) by szxeml206-edg.china.huawei.com (172.24.2.59) with Microsoft SMTP Server (TLS) id 14.3.158.1; Fri, 20 Jun 2014 12:19:51 +0800 Received: from [127.0.0.1] (10.177.22.246) by szxeml422-hub.china.huawei.com (10.82.67.161) with Microsoft SMTP Server id 14.3.158.1; Fri, 20 Jun 2014 12:19:50 +0800 Message-ID: <53A3B665.3080308@huawei.com> Date: Fri, 20 Jun 2014 12:19:49 +0800 From: Ding Tianhong User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Matt Fleming , , "linux-kernel@vger.kernel.org" Subject: [PATCH] firmware: fix the compiller warning X-Originating-IP: [10.177.22.246] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: dingtianhong@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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. Signed-off-by: Ding Tianhong --- drivers/firmware/efi/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/fdt.c b/drivers/firmware/efi/fdt.c index 5c6a8e8..82d7741 100644 --- a/drivers/firmware/efi/fdt.c +++ b/drivers/firmware/efi/fdt.c @@ -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);