Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp437714lqo; Thu, 16 May 2024 10:17:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdWJyiCOpKlsl0yK4N9q2Do50gO9wZXL+Pyk9zi+PkiZT8+u/KBvjT166WSVuUa20LQi7u5WjkpQQwrqrAk3R3wSNod3znJ6IeFRUdTQ== X-Google-Smtp-Source: AGHT+IH7NujSPHaViAJw1++6BrxXTTkr8YIXJ2nwWKUpb3xljpWStzT6/ue2q/NaeFmcsA0LJ/4O X-Received: by 2002:a17:902:8648:b0:1e4:b16e:7f10 with SMTP id d9443c01a7336-1ef43e292e4mr189909075ad.33.1715879831692; Thu, 16 May 2024 10:17:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715879831; cv=pass; d=google.com; s=arc-20160816; b=KOAZb1Put55HNFCNZ2wKZ/U8yeSZPppd5vu5t/pd/Pkf083UGkCcjtjDcm6gHAIe9J +CRhSV+AU6a+WS5rR2YKo3iq6bBIPeMMPVszC/tOln850FjK+Mze4GIST8Z0FGHNz/lc sKY8dfRVMa9HaHkTUmZakh6YUFu6LYTju4+2RvHtKCD1FOU/o/lCqYNqtW65y0mW1+k5 2hhWub66qwxVH46GYaaFTYzJZSOq01ZGTed5PDOVGXbax6IcAwkLNQ0K+IJ+EHMpmA6X 519Ne6mTf6cG4qdJNBOtLsjWjaLUMG+RkOsW5TNdlyGlRaowNg+YZlg3f96PsdMb3C2v L8OA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L3wGeenFMy7/WOW4QFAgkiw9kjyavP6D58uibLg+zeQ=; fh=9DkduqItoPb3X9JldrkJq+jBgJ7q8HmWisacD5BQYjk=; b=xr9RUZs6tZc9pJ6ljRZBa8rdZiDlXs2ZD7v1i8SxVlpgSWDF/HPfcYbUL2BwSX74Sr xj13dJeY11mrnByoIo4bwwIDrtLn9PnBoukuq8Ba97L2HwXXnVowri9YoRSnJUIyb7Ah 0Uh7efY3Q5guAPTiXEMA0P+Gz9qQNZdh5SOqZaDMr9z0JPUUdV0FDLPyd88YGy9V+tAJ b3LyTOA/uDwkn7lIetfLxFhT3YNMuRDtiEjELvkVnPHXHVsnozVgtPqPoe6ZaosdbeEu nG99fFRovRQWLNfPBb75/7GO9ycJNvaRbKr3UsXX6K6r1IrnG/sCVOYQGv4kNHCvtGZF ixQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xzDhDO0z; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-181359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf32b6esi169068055ad.205.2024.05.16.10.17.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 10:17:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xzDhDO0z; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-181359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9B6F5B21A0B for ; Thu, 16 May 2024 17:17:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EA7D156250; Thu, 16 May 2024 17:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="xzDhDO0z" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DB0A1429E; Thu, 16 May 2024 17:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715879818; cv=none; b=aoGNOkhJgX5WCr4DTh90XET9VAHLtscP/GsQrnUXg7y2N0CZKOmbIgasoAJZdrwf03dnA3dN5nPdXgmCOIG/0AkZXRP+jA9Mxrca9VV380hvP+vs4k1z/znd79tbXgTHHkiAaHPuJr2biC5EQ8MwVck+Cf5HRVnsCYAonmPt02I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715879818; c=relaxed/simple; bh=ggWmeHnyrvQuqQvGyWMWOlym1DXS5hCVdvJpfdraodk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kBXxbNyaJr86tRhq/ZXLkKyJrR51fvJcbpVGq8Js7IZCFVoRiXiPGbs1zjTJJcqsZXOHxuZBII3bpZQMmz8SUl4wtZ1cs8Q/zK9adE4IlMYZzAcnG9QfNieGmReXF3IbdShiAcKhz7JYVBI9d/8w1wel5B/zs+RkyI0wYcutBL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=xzDhDO0z; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=L3wGeenFMy7/WOW4QFAgkiw9kjyavP6D58uibLg+zeQ=; b=xzDhDO0zy8jM8TbZ/zEH94TD45 O2iu36ZSzdCma/wwtnxy6P0+0gktQUwCUkhd67e4NcERMUg1dxU96geVKOcCl4cEfgiyxrG5JHUFx ZA9TKMI/wlxXqd2FXq9ebpRVkMs+6mXiT4qtuf2T0LuqhDh8zMcWTExPzW66f/0s2HyE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s7eiR-00FWcm-Rw; Thu, 16 May 2024 19:16:27 +0200 Date: Thu, 16 May 2024 19:16:27 +0200 From: Andrew Lunn To: Thorsten Blum Cc: arnd@arndb.de, davem@davemloft.net, edumazet@google.com, glaubitz@physik.fu-berlin.de, kuba@kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com, netdev@vger.kernel.org, nico@fluxnic.net, pabeni@redhat.com Subject: Re: [PATCH v2] net: smc91x: Fix pointer types Message-ID: <0efd687d-3df5-49dd-b01c-d5bd977ae12e@lunn.ch> References: <20240516155610.191612-3-thorsten.blum@toblux.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240516155610.191612-3-thorsten.blum@toblux.com> On Thu, May 16, 2024 at 05:56:12PM +0200, Thorsten Blum wrote: > Use void __iomem pointers as parameters for mcf_insw() and mcf_outsw() > to align with the parameter types of readw() and writew(). > > Use lp->base instead of ioaddr when calling SMC_outsw(), SMC_outsb(), > SMC_insw(), and SMC_insb() to retain its type across macro boundaries > and to fix the following warnings reported by kernel test robot: > > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: warning: incorrect type in argument 1 (different address spaces) > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: expected void *a > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: got void [noderef] __iomem * > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: warning: incorrect type in argument 1 (different address spaces) > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: expected void *a > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: got void [noderef] __iomem * > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: warning: incorrect type in argument 1 (different address spaces) > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: expected void *a > drivers/net/ethernet/smsc/smc91x.c:590:9: sparse: got void [noderef] __iomem * > drivers/net/ethernet/smsc/smc91x.c:483:17: sparse: warning: incorrect type in argument 1 (different address spaces) > drivers/net/ethernet/smsc/smc91x.c:483:17: sparse: expected void *a > drivers/net/ethernet/smsc/smc91x.c:483:17: sparse: got void [noderef] __iomem * > > Signed-off-by: Thorsten Blum > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202405160853.3qyaSj8w-lkp@intel.com/ > Acked-by: Nicolas Pitre Reviewed-by: Andrew Lunn You could add a follow up patch which removes the void __iomem *__ioaddr = ioaddr; lines and uses lp->base. The code will then be more uniform. Andrew