Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2449543pxk; Mon, 14 Sep 2020 13:45:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIxcRBib/3uhlRflP35llxtmU6Wb09z1H/XMCtEuZ5B+yhGbBbk9KN1UyNk8SssvmSCh9n X-Received: by 2002:a17:906:580a:: with SMTP id m10mr16556281ejq.200.1600116331754; Mon, 14 Sep 2020 13:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600116331; cv=none; d=google.com; s=arc-20160816; b=jKfB8exkWuPgvgBEsCwU4ltQTIpdLWyhJKY1Z2fig2/EUqHcGGHgaUxNOj6mdMTP5w Y/hdaWIcAoUm7gFvt/VLPWPCTIsWxMznJwAuArji884/BOs1H5NNSWCvnhOQHxN0vK5m pz7fUlFhISknmoSGRsHKj+nx8t5lDg4IyozFRq5ac8GGqogslzyxhgKS6PihwEzZfhU/ +5QsEUc5d/LumKNrryrYia4NsgfdrRQd50H3lP8y7nW61kGciIg4X/ixRCSVdRLoUQtr OpcudYybuzY+rb2e1C2sWOjET5HwxDgzSOZMmP9UsbgRHIxDTvWGWhB+bcRqDxw9xOO7 KF9g== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=JjFFCGKXyh4FF7aQuv/DmIw3BuStC9PGx5Dh+J5Fcs4=; b=OHw80/dzIP7sZyzFpUwQ9bYdaLZDoV8UtoZYRzKFEupYdypESI1ftJxnuP72PlITGs FmH8BFD0X1Xut6KJkBXqx3iNMnG8Q/DWwAQx6GQkVqmNLLWEQr+yZB5h6FTeSrZPN4K3 YPK4NrIL4qzfhmk6XTHGUlVBjfRvR3moT/73hy+0sVbpJLZVkE++vSy+p66BZk2i8ejd 2dTznbnjKUOdOvukQtB2+iPYYzKMXAwtcKCgB3rhvqB1Aq8pkGq2+mkEW3BzGcMohsXY rWWHUzP+7CW6sphpiHnyE9xjXZs2Czp+vvmahcnOh6j+yZQvZtfUpBa747yT0cv459GJ aw2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si8241532edv.513.2020.09.14.13.45.08; Mon, 14 Sep 2020 13:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbgINUnQ (ORCPT + 99 others); Mon, 14 Sep 2020 16:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgINUnM (ORCPT ); Mon, 14 Sep 2020 16:43:12 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59AB9C06174A; Mon, 14 Sep 2020 13:43:11 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B835C12793BF4; Mon, 14 Sep 2020 13:26:23 -0700 (PDT) Date: Mon, 14 Sep 2020 13:43:10 -0700 (PDT) Message-Id: <20200914.134310.87977518984554778.davem@davemloft.net> To: zhangchangzhong@huawei.com Cc: fugang.duan@nxp.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: fec: ptp: remove unused variable 'ns' in fec_time_keep() From: David Miller In-Reply-To: <1600089264-21910-1-git-send-email-zhangchangzhong@huawei.com> References: <1600089264-21910-1-git-send-email-zhangchangzhong@huawei.com> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Mon, 14 Sep 2020 13:26:23 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Changzhong Date: Mon, 14 Sep 2020 21:14:24 +0800 > Fixes the following W=1 kernel build warning(s): > > drivers/net/ethernet/freescale/fec_ptp.c:523:6: warning: > variable 'ns' set but not used [-Wunused-but-set-variable] > 523 | u64 ns; > | ^~ > > After commit 6605b730c061 ("FEC: Add time stamping code and a PTP > hardware clock"), variable 'ns' is never used in fec_time_keep(), > so removing it to avoid build warning. > > Reported-by: Hulk Robot > Signed-off-by: Zhang Changzhong Applied.