Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp316926lqo; Thu, 16 May 2024 07:14:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXz+99lSa7Tyh05nj5DPwwPfj8PGMgpoJFSSKwKt9k1KIft+gB77yJJQOzZZKvmm+FsJXBdE/DFpGI3gW3kA8WlJbyS3EwQ3nj0cmfcAA== X-Google-Smtp-Source: AGHT+IFoWx9dPbq0Uuin3nwF7HEIBA4Eus1UsvR+rVknB3ha2eOX9qyE7DWblAejmtQLKTCdszu3 X-Received: by 2002:a50:cd47:0:b0:572:2efe:4d14 with SMTP id 4fb4d7f45d1cf-5734d5ee4a9mr15788017a12.10.1715868856553; Thu, 16 May 2024 07:14:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715868856; cv=pass; d=google.com; s=arc-20160816; b=S/NjZ2ARw1gKV+bJmFBIzHzBDED8UOkzhePrHY2Te2lsk7IFCAjeX56T1eidAEm8Aa A5Hg1D3QEwd2iBL4l3Vll4IFG27wSmVEH9a7NYvbxJPVos1MuF1Om3Efq+7PDLfZiESv mIZNecp1IChSfnnL+QtZ3flOpVFCZFM8by0tf7xKQx2CWyll95p1SWvBJt8Eo56TZTDZ hQLH8Ew/c3tfz7hZuCFZNnC5xQQiVwcIOiBbIEcJN+AOhgRpRQuIVf31/bGD8x92eWZV ZFk5Hium/0Bl176mOuMYjMk3Gb8OVlaBDjW+mKmP4zahyXJRCc1T8clp3xzTak/wH7aA 0T3g== 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=srq/5gaQL99coY1BQJnPkM6P8FfTUHHR+hVB7Lf6F+M=; fh=m/uM2ajokkFY8iYcz6zsyXzdhG7GCCUvcczRsafytmo=; b=jYhDXtJRtvs82s7gGPoIzOxcgllUJeeEAhDj+M3ZS33p1IQZZrAobhyM26X7AY/bl7 DEpINKtYS71EMYnkqYvEuu5UytIcCG5W79r8CARz6Gu52savs/2UgawBVFQRamjw/iK9 v63/pabMtA2mQGTUDXUv4o4eM4pBhV5BPdWzD3pX8YuLxcU0EFPpusUAtXLkZXgxQ53w AowqIi37X5gTsXN8TYIDHu8es035ulDa+bpJVfhxiVRlzHriYznZkJgJldUTOwP+RCwi K9EXV1o9FAjGoiNgpBg2akd4ObRSFEO3oVdRwPIirvWouVXkBl0rqQK8zERAI7EUgapH YCiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=iau85TuQ; 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-181159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c32c81bsi8767325a12.453.2024.05.16.07.14.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 07:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=iau85TuQ; 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-181159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181159-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1F4081F22C55 for ; Thu, 16 May 2024 14:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E74514A4D1; Thu, 16 May 2024 14:14:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="iau85TuQ" 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 43EFB147C6E; Thu, 16 May 2024 14:14:02 +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=1715868846; cv=none; b=YYs/V5fjMNNnUvBl+bLglSLkSLgo83Vo15ZVKNx9uIaW1LAKDvvDJlunM+G4uKTd4WuRr5Nn9xgCn4Pxp3UjAYB/ymaj0HD6EMxbyfSrIO+45lpsGjsri/Sj+3es1z/b78HxH1nv/3Oo8Lf3WLb1uEITKYmea6Ij0muqNY4luV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715868846; c=relaxed/simple; bh=DljRi1gAVLhNjMhkBNML4Mys92kIb7fRsmAUlbeVYeI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bm8WzyIP56aif0YLpV+A54K7lJtmiks5EhwV7gZ5GJxRTqxLMCBXpyzHBreW/SZKnZMalkFxjRsKerphenKTKrQyFTSSJzD6bCh8JREsx5EOX3A0ZJfsgf4crIQ5xAQlLCLEBRgeE9HXRdr8wgpuLcL6kI+ZhmDR1eclITlAdBY= 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=iau85TuQ; 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=srq/5gaQL99coY1BQJnPkM6P8FfTUHHR+hVB7Lf6F+M=; b=iau85TuQEkJez5Yl3zhXy2V6Cg yFX5SZvFaO+fP924k3+pywvz67iHXYoT2e+58jXEMk4aB5F2A+U3Dgat/crReZ53l4ZYfN1YXtFw4 YHVyw3r+SSli9XzIohJI9knG7Z/0cop7BaY34DHbb3pYNeVFmCtwaz415hcw3grKvryI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s7bra-00FW3d-Qz; Thu, 16 May 2024 16:13:42 +0200 Date: Thu, 16 May 2024 16:13:42 +0200 From: Andrew Lunn To: Thorsten Blum Cc: Nicolas Pitre , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , John Paul Adrian Glaubitz , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] net: smc91x: Fix pointer types Message-ID: References: <20240516121142.181934-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: <20240516121142.181934-3-thorsten.blum@toblux.com> > -#define SMC_PUSH_DATA(lp, p, l) \ > +#define SMC_PUSH_DATA(lp, p, l) \ > do { \ > - if (SMC_32BIT(lp)) { \ > + void __iomem *__ioaddr = ioaddr; \ ioaddr is not a parameter passed to this macro. > + if (SMC_32BIT(lp)) { \ > void *__ptr = (p); \ > int __len = (l); \ > - void __iomem *__ioaddr = ioaddr; \ > if (__len >= 2 && (unsigned long)__ptr & 2) { \ > __len -= 2; \ > - SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \ > + SMC_outsw(__ioaddr, DATA_REG(lp), __ptr, 1); \ You probably should use lp->base here, which is passed into this macro, and should have the correct type. > @@ -1072,7 +1072,7 @@ static const char * chip_ids[ 16 ] = { > */ \ > __ptr -= 2; \ > __len += 2; \ > - SMC_SET_PTR(lp, \ > + SMC_SET_PTR(lp, \ > 2|PTR_READ|PTR_RCV|PTR_AUTOINC); \ > } \ > if (SMC_CAN_USE_DATACS && lp->datacs) \ This is just a whitespace change. Please put that into a different patch. Andrew