Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2072122imu; Tue, 6 Nov 2018 08:39:56 -0800 (PST) X-Google-Smtp-Source: AJdET5dK4sDaESnCF79zg+xDLxsNJ9+p1XV7QzILXMB+8Xnd1NLmY3GVU36lLXp96OmHSbd+E2Ea X-Received: by 2002:a62:d084:: with SMTP id p126-v6mr28079216pfg.147.1541522396696; Tue, 06 Nov 2018 08:39:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541522396; cv=none; d=google.com; s=arc-20160816; b=rCHSmiZ3yXMxofmD/mD6MvsGGX8eEUY2eTEfjAgj9K5qf18O0LVY2Oecevtas1s/xy y51poJDq2MoKAABaOA503yfNIdwO+9JmChLx5XuwciPjzkuCOBgJ0tkaD05z+tjteig5 mrXyrbelGiJtacbRFuZs9a0IyXUhnC1q/tT1EqethvpxW08xsI30rYimS6YkkMU4iu5w o1/dxY582wSWTTVwe09Q7NAIQejTpT4fKyv+ldpCmjP1ZS4JIq3RaOt8PlxemW+a+dLb KG8AnRt+/ePSGA/2fTO8DVIav7DHqjDdy6yAdR/007QvmFSSp+3VpmJhC+yhE6plQwTY t9tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3/n3ubq0OvqMAj8fIqoN7l0a9gNkaEd6ejwTFUoCEwo=; b=n6rJbOGVl2/zGWYI6fDzWmuMu++qC/nEBrBMHTL1FSHiYA9WbfDWgofBo/Fsl8GfSj a1yZMykRM085dm/tHo8pA5xvYHrUu1a14aN9GlLSuzuOJY3XBOmxi/Mz90+9MUiz6otO g+df6lVA2RbSppQdOYC72Pj3SB73x9iIiW730KWdylwzPfuMZSwGgD4gfG6AIGBTKmPJ APO9LVOfSugzEpiVYwiCwZmDT+NAJdObPC6kj2iVCRmm5JXeKL0rNCZlt0f+GZo8yckj 8zXy2F0r+GmtPK6Hb9NI/SLt+G0QDKXVrg5/AzL7mdCuzXGlTqyWceHusmLA4sJh1XoJ uhow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=k4AJzh6P; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68-v6si14072612pfl.56.2018.11.06.08.39.39; Tue, 06 Nov 2018 08:39:56 -0800 (PST) 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; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=k4AJzh6P; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389252AbeKGCDf (ORCPT + 99 others); Tue, 6 Nov 2018 21:03:35 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:54678 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388927AbeKGCDe (ORCPT ); Tue, 6 Nov 2018 21:03:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3/n3ubq0OvqMAj8fIqoN7l0a9gNkaEd6ejwTFUoCEwo=; b=k4AJzh6P3aAHCP59h8iiRAiyD WS99oJ2TRO4taPrZWWTnr+zkZlCvNPnZxzCj467WAaydRbdMtKNW761y+kZ3vYip5V3NTg9gDBGmL dG8xpPIj4Qvcx0947PAZ0Qrw2KLcYm1O3fcB4Vi/cTa0Af1q3MALCsdAluGdjoIabzvik=; Received: from n2100.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:4f86]:44450) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gK4M4-0001K1-My; Tue, 06 Nov 2018 16:37:28 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1gK4M2-0006HC-18; Tue, 06 Nov 2018 16:37:26 +0000 Date: Tue, 6 Nov 2018 16:37:24 +0000 From: Russell King - ARM Linux To: David Binderman Cc: Julien Thierry , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: linux-4.20-rc1/arch/arm/vfp/vfpmodule.c:576: possible cut'n'paste error Message-ID: <20181106163724.GK30658@n2100.armlinux.org.uk> References: <20181106162014.GH30658@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 06, 2018 at 04:33:26PM +0000, David Binderman wrote: > hello there Russell, > > > linux-4.20-rc1/arch/arm/vfp/vfpmodule.c:576]: (warning) Redundant assignment of >'ufp_exc->fpinst2' to itself. > > >Thanks for the report - it most certainly is a bug introduced by > >Julien's patches, but I don't get your warning here.? Which compiler > >produces that warning? > > Not a compiler, cppcheck, a static analyser for C and C++ code. > > Interestingly, more of the same in file linux-4.20-rc1/arch/arm/mach-pxa/pxa3xx.c > > [linux-4.20-rc1/arch/arm/mach-pxa/pxa3xx.c:84]: (warning) Redundant assignment of 'ASCR' to itself. > [linux-4.20-rc1/arch/arm/mach-pxa/pxa3xx.c:85]: (warning) Redundant assignment of 'ARSR' to itself. > [linux-4.20-rc1/arch/arm/mach-pxa/pxa3xx.c:120]: (warning) Redundant assignment of 'ASCR' to itself. > [linux-4.20-rc1/arch/arm/mach-pxa/pxa3xx.c:121]: (warning) Redundant assignment of 'ARSR' to itself. > > I don't know if these four are also worth fixing. There are cases where this can be false positives. In the case of a status register with write-1-to-clear bits for example. These ones look very much like that. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up