From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751593AbdISVCx (ORCPT ); Tue, 19 Sep 2017 17:02:53 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:45038 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751074AbdISVCw (ORCPT ); Tue, 19 Sep 2017 17:02:52 -0400 Date: Tue, 19 Sep 2017 14:02:50 -0700 (PDT) Message-Id: <20170919.140250.1393293793761020505.davem@davemloft.net> To: arnd@arndb.de Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, edumazet@google.com, ncardwell@google.com, ycheng@google.com, soheil@google.com, fw@strlen.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tcp: avoid bogus warning in tcp_clean_rtx_queue From: David Miller In-Reply-To: <20170918204855.170920-1-arnd@arndb.de> References: <20170918204855.170920-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) 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 [149.20.54.216]); Tue, 19 Sep 2017 14:02:51 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Mon, 18 Sep 2017 22:48:47 +0200 > gcc-4.9 warns that it cannot trace the state of the 'last_ackt' > variable since the change to the TCP timestamping code, when > CONFIG_PROFILE_ANNOTATED_BRANCHES is set: > > net/ipv4/tcp_input.c: In function 'tcp_clean_rtx_queue': > include/net/tcp.h:757:23: error: 'last_ackt' may be used uninitialized in this function [-Werror=maybe-uninitialized] > > Other gcc versions, both older and newer do now show this > warning. Removing the 'likely' annotation makes it go away, > and has no effect on the object code without > CONFIG_PROFILE_ANNOTATED_BRANCHES, as tested with gcc-4.9 > and gcc-7.1.1, so this seems to be a safe workaround. > > Fixes: 9a568de4818d ("tcp: switch TCP TS option (RFC 7323) to 1ms clock") > Signed-off-by: Arnd Bergmann This reaches the limits at which I am willing to work around compiler stuff. What cpu did you test the object code generation upon and does that cpu have branch prediction hints in the target you are building for?