Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp592340lqo; Thu, 16 May 2024 15:52:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBWnBgtRA4x+YO2yQknctsuRCgnr7q5hmtDBN3aBpQWMPYUzeAlRD/4muu1UE269YWGKo7U8H6+Gl6zUBTCCJWJmLrEaXLpTSPhAqPHw== X-Google-Smtp-Source: AGHT+IF+fk8MJlXgG3feM2VXfedGOWXXfVNMibuXBGS8GbvuT4qWWfxvk8p8srhrkZY293KdsIfy X-Received: by 2002:a17:90a:aa94:b0:2a2:b097:dabc with SMTP id 98e67ed59e1d1-2b6ccd8df1amr22398016a91.31.1715899920344; Thu, 16 May 2024 15:52:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715899920; cv=pass; d=google.com; s=arc-20160816; b=iIkQ9PtOFW0gjfaGk3nb+D/3OYojpmHqSpfP8Jp5v11G05iguHXdksZtzIsUytaWuK d2mzZ/EZAgPxgxPcmN/gB1M15CT6dXW2WxGZV/wfzkOHjg4ilzocYBFFel7q+o8PN/IA gEGhIwnztK5zqC5Km1gvQdYj+l00Gh8R4pcoE68FF38f4mgKh3plAXIRTgPz3G37TDXf Sd/gFfaTyBStHVUDduNevraCzjs2AKpBiK5ziFncvJgdzH3IGfqIqwxL/Mjw4d2WqCbM eJGsGswws+EPqH9Gbon/E3vKULo9A5wa/sO8dXRYR5vYYvo7tIzPFiIJUOa0VxbUs3Bq wTnA== 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=ervmNo5biR+yzACnIdOD1iqbJR0q4reGPzHLBT50d6U=; fh=9DkduqItoPb3X9JldrkJq+jBgJ7q8HmWisacD5BQYjk=; b=PGmupTIt/qpH9mYF2RcUJr8jD97hzWanylmDpxUe/7aJSDRj2S2jd6K5D/vh+6nczt zwanf06LO+A04eE28xk3+SOVSWqbcF8LhlWyjYlQZUPCzUn5fCGnmu5mWvbmMuN9NalE eRQGhkpHvmErdrEIrw+1lZbG4MUyoblEoQGCpPBkzs9Cqxjv+7Vq0Ox58QhrvcSloi1U fI1YS0gFXG1XWcUqMNZhCCLOSkmSTMQVVyjH3X4s/OKxcsvl8tQ1EED37NAgyKFQ7J2j yApHNLuqJI7+F7HD+Aggo0L5ZQi2T/pOIxY0Ec/pe80UUdPa7eyFR1r5Z8qZQJDW10k7 jLvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BZeedQll; 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-181614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181614-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67158898esi16276284a91.127.2024.05.16.15.52.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 15:52:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BZeedQll; 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-181614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181614-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EE28A281E36 for ; Thu, 16 May 2024 22:51:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66C38219E8; Thu, 16 May 2024 22:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="BZeedQll" 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 495A24A11; Thu, 16 May 2024 22:51:50 +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=1715899912; cv=none; b=D1fFLih+yyvax4G98o+6MiwKsdT1qyME8I1xUFk0ojl6hFMQIYRRJzmO5t++FlbPP7UwzK6xbxx9RxAymfQtJxEgyOuFHLLZmGfA6zFjXxPmNCOjZFoKKSn3yeQnRRnuyQFG/g3sQUciSeXjdNV5a2S/6+oeMNQxEIgGF4b3AjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715899912; c=relaxed/simple; bh=L7KhBLLyRFGTOe2L8CfKk/G01adXlvkwHXxoKyKvHqA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kNO70RETm/lUjuN/DzPDkZ/H0RL/NMuc6BFaeeE102nB9n9A7GOx3cKYlmi7iGnXi6ZTf61d+0oPZx0tb4DuACAnUdYnyoMwIf+7lVAWAVnyby/tKFVliMp9KQ0Uan5P8lVfTaEPnRk0lJ2MbMTDdK+1p49P1+u8mLHBKhja+Ns= 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=BZeedQll; 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=ervmNo5biR+yzACnIdOD1iqbJR0q4reGPzHLBT50d6U=; b=BZeedQllwqeJtWefMp2XLpr1ZV AYRIKZofAv8GgFgu0x9TAqjmSWWvWcJivA839poaN03gAEhGFWgYWsEZprq1l6VVsIrOR7qT/njIm nr3stVho4FU+3xJHlBex8TUt3k5snuQuxjpFfAs2fTcNOJahtLqRe20Ga1TApIujH0Xc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s7jwg-00FXIE-G6; Fri, 17 May 2024 00:51:30 +0200 Date: Fri, 17 May 2024 00:51:30 +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 v3] net: smc91x: Fix pointer types Message-ID: References: <0efd687d-3df5-49dd-b01c-d5bd977ae12e@lunn.ch> <20240516223004.350368-2-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: <20240516223004.350368-2-thorsten.blum@toblux.com> On Fri, May 17, 2024 at 12:30:05AM +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() 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 > --- > Changes in v2: > - Use lp->base instead of __ioaddr as suggested by Andrew Lunn. They are > essentially the same, but using lp->base results in a smaller diff > - Remove whitespace only changes as suggested by Andrew Lunn > - Preserve Acked-by: Nicolas Pitre tag (please let me know if you > somehow disagree with the changes in v2 or v3) > > Changes in v3: > - Revert changing the macros as this is unnecessary. Neither the types > nor the __iomem attributes get lost across macro boundaries > - Preserve Reviewed-by: Andrew Lunn tag (please let me know if you > somehow disagree with the changes in v3) This fixes the warning, but we still have the macro accessing things not passed to them. If you are going to brother to fix the warnings, it would also be good to fix the bad practice. Please make a patchset to do this. It would also be good if you read: https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html Andrew