Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp93870imm; Wed, 30 May 2018 18:34:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJOerFz+NDv5dfiq5gvA5K9gMSRf86UMrC23F/scFcUav9YeYFm6SYybPkjeKwq7lSJE9bG X-Received: by 2002:a62:3745:: with SMTP id e66-v6mr4905886pfa.43.1527730494442; Wed, 30 May 2018 18:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527730494; cv=none; d=google.com; s=arc-20160816; b=rd21gqECVfgQC/9c4475U1Ll15bk5ZK11MSPGleuODdAXS8yqhihGs3PqC3+1v7lJ1 DV29NFS2GZ6wiRGBtrpEIchDvFuXp2GWcrAqCrPrqDXfuoHtUwTZKxrWwEL0Chw73xnR +8l5iBHAnbyIYf6nstBWAK3yktSdFwTEBu43+0HULdyBs+zKnFPWJVBG53Y90T+JJvBu Xs3Mt+mEiTe7E7ZeID/HlnEfO9V1cn4O46pCsMGJzLxGVSFSygJ47OlK4V4iYc6vL0TP H9/2p/Fw7vMi5FqHGo3YPRrrwiHCSpfj5EMmVyAdc/DRpY/Yfjtnvu1FNNVU1P8UsvEy AVpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=rIp9OrIiSS0XDBQ0z0GualXAXU7bzqHkFLKsLXs/T7A=; b=xEo22v551Qld5y9Ju8tfMD9G7qWi6fL6g1bVIVYAgwBK7GQCSptLzMVBJFulklHYO8 vaNdakR3GvbDCO/Gx87Uwnf98IZlwQo7XYtoAIccmIFeNAm4OC1aFGfFxpTneo8rGqcI J7vYdkOhsGPPGV44cjoZs96Pp0ua+wwgigNNzZ4xza7e+v4GQ1EhK28jEfjiwwHdVmFX MIO8MJL6vCPaNhs+ZjvOqSg5EemtKiRs90pBgLODCoQ1lx6HsG3dASyjA7AZI+kqicPc 8RAmiHU7RwvYN6iRAEVK+VI9xir5W0tBDaFZXf8DmfK7uPKFenPh4BQ+IuSp9QXTzBJA 2NQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62-v6si5366483pgc.78.2018.05.30.18.34.40; Wed, 30 May 2018 18:34:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932710AbeEaBeO (ORCPT + 99 others); Wed, 30 May 2018 21:34:14 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38916 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932587AbeEaBeN (ORCPT ); Wed, 30 May 2018 21:34:13 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7121E8B9C072E; Thu, 31 May 2018 09:34:09 +0800 (CST) Received: from [127.0.0.1] (10.177.31.96) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.382.0; Thu, 31 May 2018 09:34:07 +0800 Subject: Re: [PATCH net-next] net: qcom/emac: fix unused variable To: Timur Tabi , References: <20180529104343.19448-1-yuehaibing@huawei.com> <0db547d4-27c1-a9f7-f443-86bebd831cb2@codeaurora.org> CC: , From: YueHaibing Message-ID: <9b86b28a-0ec9-132c-6678-69f2ce382907@huawei.com> Date: Thu, 31 May 2018 09:34:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <0db547d4-27c1-a9f7-f443-86bebd831cb2@codeaurora.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/5/30 20:10, Timur Tabi wrote: > On 5/29/18 5:43 AM, YueHaibing wrote: >> When CONFIG_ACPI isn't set, variable qdf2400_ops/qdf2432_ops isn't used. >> drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:284:25: warning: ‘qdf2400_ops’ defined but not used [-Wunused-variable] >> static struct sgmii_ops qdf2400_ops = { >> ^~~~~~~~~~~ >> drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:276:25: warning: ‘qdf2432_ops’ defined but not used [-Wunused-variable] >> static struct sgmii_ops qdf2432_ops = { >> ^~~~~~~~~~~ >> >> Move the declaration and functions inside the CONFIG_ACPI ifdef >> to fix the warning. >> Signed-off-by: YueHaibing > > I already fixed this with: > > https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=d377df784178bf5b0a39e75dc8b1ee86e1abb3f6 > Oh,I should notice this, thanks.