Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2214562imu; Sat, 10 Nov 2018 09:55:27 -0800 (PST) X-Google-Smtp-Source: AJdET5eDIEnvJsV3ADrNMc1DHnEE2eUZkCpusZMSbAobTBt/nteLpszfYai2VLiUM0OpHbB9BlVB X-Received: by 2002:a62:5793:: with SMTP id i19-v6mr14137256pfj.158.1541872527286; Sat, 10 Nov 2018 09:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541872527; cv=none; d=google.com; s=arc-20160816; b=O3cZ9oEld5pT/WcXUmv1MHGxt7ciziQtTAPlFYG8FKsmxPwCJUtoIzgJC8l+Fm4fcf Yjw+nKEz1xQ7SO5q6U4+er/PjHZCvWG4QymzJRWfL4Rsn05Xpk0BbzrEmeIl09agVuA7 l2kLNpk9qEPe54WjE2mBvXPaxqUopEkw1l+JVvf1MTcK4onKWJDXXlfy0E2ez0DHgumY WDXesYneIPTfX11bbvrmswRkQlpXUGCTVwwmb130NKzazUnQPbuGXmHz95BqyfmOPdbD 6I+aqYh7g3ea63b7rFYOw/TENPsnuyIpD33HZKUwoU3zI4pr1R1v/mX/YrkG7MWMdWYl tDJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=KGQU7GIp2wZwRndCnmykRbBltibItnhlpFUF82HWpOY=; b=mw6wrTnzT0orG3tKZAitPVe3EvJDqtO7cIVcEomdXNnzfuHYAtRbUnwSrPbrwWPf3q /oVec216FEmVBAehpVJCHUK/1jdXDVJNnoHlQLqJ327c8SwBm55Sp1Xuj7TZ38OYir+V GG4JE9eE1j9ti5h5q9Xtq2asB90mTpE/y1ZxLz4AGVCvHSG6wcemeOqs5DUHdszxeuyF qrGTERuWHp8Zkcevw25PFj1Qfg+wVPKj0dOsDDT4LhBE+W9cO7nsTTHpjFzmFiVe+Y2G gui4roxgzbf1PVKwbOOb8OqtAQMP1DcocXPnhgBJ+9FAj3zLbz0yhJkkSInyt2yH1K8R 7wUg== 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 a16-v6si9651964pgw.187.2018.11.10.09.55.11; Sat, 10 Nov 2018 09:55:27 -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; 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 S1726718AbeKKDki (ORCPT + 99 others); Sat, 10 Nov 2018 22:40:38 -0500 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:33531 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbeKKDkh (ORCPT ); Sat, 10 Nov 2018 22:40:37 -0500 Received: from belgarion ([90.89.234.36]) by mwinf5d10 with ME id yHui1y0020nnJME03Huia9; Sat, 10 Nov 2018 18:54:45 +0100 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sat, 10 Nov 2018 18:54:45 +0100 X-ME-IP: 90.89.234.36 From: Robert Jarzmik To: Russell King - ARM Linux , David Binderman Cc: "linux-kernel\@vger.kernel.org" , "linux-arm-kernel\@lists.infradead.org" , Julien Thierry Subject: Re: linux-4.20-rc1/arch/arm/vfp/vfpmodule.c:576: possible cut'n'paste error References: <20181106162014.GH30658@n2100.armlinux.org.uk> <20181106163724.GK30658@n2100.armlinux.org.uk> X-URL: http://belgarath.falguerolles.org/ Date: Sat, 10 Nov 2018 18:54:42 +0100 In-Reply-To: <20181106163724.GK30658@n2100.armlinux.org.uk> (Russell King's message of "Tue, 6 Nov 2018 16:37:24 +0000") Message-ID: <87r2fslswt.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Russell King - ARM Linux writes: >> 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. And indeed they are, for bits 2,1,0 for ASCR and 3,2,1,0 for ARSR, and you guessed correctly they are partly status registers. If only your checker could filter out __iomem tagged pointers, you could have far less of these false positives ... Cheers. -- Robert