Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp172267pxb; Thu, 12 Nov 2020 00:10:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYvfdazf38znnPObEpoxEpguv1vCelEw7GtAzNuVKeLqFZvIxJjemWRY6YGR+ddeMhynlc X-Received: by 2002:a05:6402:143:: with SMTP id s3mr3730603edu.267.1605168625756; Thu, 12 Nov 2020 00:10:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605168625; cv=none; d=google.com; s=arc-20160816; b=qROAQdtL1Uy01IRAuHo0UHBQb5Xb9F6u6aoaSwImXQ4DiTkhwitzXajsI7InOoTmpb grrC2RHi5IWbR1rOmB3GfenOcA38c5+BgtVNH0gKV5fJ3TPOaufGoLzTwwLuJsv/GwVf rH2uk1wjbrza7tGv3IJEOIi5qEhmujdc9kEruAugr3kOj5hraoZB3lB/s93umYD63kWk AWkiVRdFK/PKuHxRFbe2MtEJvHeqNucRLOjdAu+YCpTZtum6362OPkSqo0WhmJuol3N/ kUjLPU0y3SJFIcvYXxDQQISuVhUJvc2hgH7TxSa6/DXVdJVGBClz/XrPdJpdyi8ZVi8g nxeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=L3GAlpP3MqZdVWpEINAQqSkaGdeHDzDLqhCOTrgS1mQ=; b=hltr50yG4JtQpt9TdrogQYM54O0weG0NvSFK7NpEPEkEVZuxyKQZF7WlK1vH1FKCiS gNzZEQAHYUZBqZkljoCxTNJEZinjqgx1GMZcqwZMnAJGocbPJgPnlN/6KWc3hTwSzvhE AMJfPsK0CPxXY7lEOXq4s+6csw4CiIgyy5+JcCKEWDiNKazaNQX59FgTNFat5k8hnRRM 1ecVBOr+vTLa89CM+tqCHY5EpHbxgeUN+cThYGec3m41lMIQPtcUoHlKJ86bcV0g0Wei Cmn8NfrlJSiqRRrWV4A0Uy1ka3hzgyQxawuFp80om/6sqDqZ77nZwNYI977dltcGitSV NFXA== 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 z34si3762171ede.351.2020.11.12.00.10.00; Thu, 12 Nov 2020 00:10:25 -0800 (PST) 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 S1726202AbgKLIIH (ORCPT + 99 others); Thu, 12 Nov 2020 03:08:07 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:35450 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbgKLIIG (ORCPT ); Thu, 12 Nov 2020 03:08:06 -0500 Received: from relay12.mail.gandi.net (unknown [217.70.178.232]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 602863B747B for ; Thu, 12 Nov 2020 08:02:27 +0000 (UTC) Received: from windsurf (lfbn-tou-1-236-25.w86-201.abo.wanadoo.fr [86.201.80.25]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 25618200004; Thu, 12 Nov 2020 08:02:03 +0000 (UTC) Date: Thu, 12 Nov 2020 09:02:02 +0100 From: Thomas Petazzoni To: Chris Packham Cc: akpm@linux-foundation.org, rppt@kernel.org, thomas.petazzoni@free-electrons.com, arnd@arndb.de, jason@lakedaemon.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bus: mvebu-mbus: make iounmap() symmetric with ioremap() Message-ID: <20201112090202.638c0c13@windsurf> In-Reply-To: <20201112032149.21906-1-chris.packham@alliedtelesis.co.nz> References: <20201112032149.21906-1-chris.packham@alliedtelesis.co.nz> Organization: Bootlin X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Nov 2020 16:21:49 +1300 Chris Packham wrote: > make coccicheck complains: > > ./drivers/bus/mvebu-mbus.c:1113:2-8: ERROR: missing iounmap; ioremap on line 1106 and execution via conditional on line 1111 > > It took some staring but I don't think there is a problem because the > file global `mbus_state` is passed mvebu_mbus_common_init() as the > `mbus` parameter so `mbus_state.mbuswins_base` and `mbus->mbuswins_base` > are the same thing. But this is confusing for anyone reading the code > and one less complaint from coccicheck would be nice so lets fix it. > > Signed-off-by: Chris Packham Acked-by: Thomas Petazzoni Thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com