Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1058652lqb; Wed, 29 May 2024 21:21:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLNDRG1U4JUe8NwHRC/zvoN0q51dvAUVK6y3KG1Zrh5ou3fzOAOB4BbDI3BVevtsho1eEj7nZ6FtUtmr69YHXQxfoPTftUyKJBYUgNfA== X-Google-Smtp-Source: AGHT+IHcFRSuo+3vX75fUWlE2bHzvxde50L5ITgbuivW1Gi6z1bDLwm2B+eu1WAldV0yKnW38Ic3 X-Received: by 2002:a05:6a20:8420:b0:1af:7646:fc14 with SMTP id adf61e73a8af0-1b264422364mr1357531637.0.1717042908444; Wed, 29 May 2024 21:21:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717042908; cv=pass; d=google.com; s=arc-20160816; b=w95RVCtbh/3tauXsn7MspiKxBa7LT5WcH/IF+zEYfEsT8SxYfA/DglOGPhyMysylKY Anaw4anhcCwc4Sw8nylbNg3mSR8Spz7lK1wlHZHyYdznmzq342vVtXRqSuD5Twa+u8OK 5lvz3jM6aDBFSfEqdTU3wkICzBIjj/GfrS1z21VrorFdnth7vYBk8tBLrxcJkOARxpr/ WZSu+S+bhQ071IH2lrHWRgxfXnbSAYxVmBALbe7DucBMjo7t2FjjeadDmRO2Ex5nh92Q JGNHlB8oXfCiZfIjN76BXK4MRWjMQ4OlJsjUjLTr8N8famTPo6TIehmkdv2YbYg+pUJA SaNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=9BOfbVH8YA2QTNgwedZWI9JmpJBM9n4R4yer8Ay9b1k=; fh=ca0tsEZrf2VY6s0OfYoNeTZ6xPflGM1511gqn8cSOC4=; b=HfwJbMtlm7iq38P0NH3mvF2a8gtGZxlGYmZuaug1DvGEVK7U8Q0wS+LbsnVzASw5Hx KVGeZ8yGh/jPp5en8YJ13LChxSJ+p3ZUV9YmLIoXtUhId9fot+trc+zTAny+WyrTaGkj TsO8ao/atONPsRW/LoIe0p/R7NBAt5TGx7xXW3i5zm5/Ofz8/DzC9PgwszdIXsKtrkeC iLf0ll9MCSisoLwsUo0cYZC7yiGIogpbICi7p6z82sIL/I2XdvlX4iyrsjVjVgiAKLFg jv8aM8uHowMWs94NEoEtH6uDRKjGyW9phRvpeJUUvkuF/I4Zqo9jWp1csibxRMPNV9oY atAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=CR4n58z9; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-194860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194860-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fd4d17c6si11353387b3a.262.2024.05.29.21.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 21:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194860-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=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=CR4n58z9; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-194860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194860-linux.lists.archive=gmail.com@vger.kernel.org" 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 C372DB22E59 for ; Thu, 30 May 2024 01:53:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E51B18641; Thu, 30 May 2024 01:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b="CR4n58z9" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32FB71798F for ; Thu, 30 May 2024 01:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717033995; cv=none; b=DLZbhiuK6EPF3JDUTD5QT0qZdrTZ2CIwsDGKRvDtLs/1FX88G3fjSGA14Nn7gfoOewRfhpyRguS/2LKu2wkzjH1Ali6EtaywegmT7OBz/BCAxvAaqK9y3zqfUwgwolI063rXso6ywG7BqVpp5fEJB1ambfH78vX+TgmhJn3ANMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717033995; c=relaxed/simple; bh=9BOfbVH8YA2QTNgwedZWI9JmpJBM9n4R4yer8Ay9b1k=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=ncQXq1rgWWF9vz93aR+LCct5RDEzHWuUyS72MzhxpILiZmp/d0BtRjd/mZnImK/+e2UhTs4Ol1DfE+y5CEXWXUtEWfASI2i5NlsV3GBCYGqBEeeGZbXwxO8jUudY/eg9Tp3+GPTK5LcAihtq4p5u1E5dV+8DEQ/f58U9J813zM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com; spf=none smtp.mailfrom=toblux.com; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b=CR4n58z9; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=toblux.com Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-35b6467754cso260893f8f.3 for ; Wed, 29 May 2024 18:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1717033992; x=1717638792; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9BOfbVH8YA2QTNgwedZWI9JmpJBM9n4R4yer8Ay9b1k=; b=CR4n58z9nNcoh/v/nEYdkjCOjHcVvnFezAmpaQ5ILSa1/OWAiCnq1mrx5dYVfLpgYt 6SzlVrfBmmnSSxlC48EL08MqfA13eSuV9COK58Ej9Nk+ulLi0AgLlBRCOwuXqI6/pQAK yN4XF1+9urH48Te+oKerprAJhYwt8XwLzgBkDk7TD7kv3m5q691NxTOSjkJRk7kSyH9Q VG84ROawH7FtDdHI2GKPClwerTXTZv/bWcN32sY6/QPmpsKW9vb04AjzzVzXEmsOzGyv F0cz0HwLlfTNfwySVNyzbXABiP7Wbk+mRVXUYZ8loEyaSGsCX7UYrgtMxtjHiPteTHox V/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717033992; x=1717638792; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9BOfbVH8YA2QTNgwedZWI9JmpJBM9n4R4yer8Ay9b1k=; b=Xs+VVuVEZfhjIyJUqnukY8jpskHxgTd7SI+6Lka/X9XvuCgvKRPC54TQLn0EXNNjLQ zPigkHRyX6YJmB7SL0KoIFkMCpiK/5zDpJ+F3f4e8smPpnHFR/2EvGRjh00Mm4EiOZFI qAIZRXry0Wre7cmH7RupT5xfwb4/EDpmSJvKPZbPYYGMaWZO/KnLCucI04E+dzDO59bz c/3jSWOedJRLilnGQxATYM+Kq/ILteE0OLxXdmHLVhd9cdCARMqpmnsS+yvVwJTJhd6Q rfLL+V9zMohkSZ+6GPT/sND5tptheQTrvLj+RMFFhb7Qe5PwvQqJqqDex6bTg5zc/CBy IBBQ== X-Forwarded-Encrypted: i=1; AJvYcCWPc0iPhTgA4jrGUyg1xjeBYOKM/Y/ZIsYG+oO+2ebi/Lek4OucTjaR92L5mTQICSTjPGC9pPkKfQ0rO+jJlnKGFOmEUZx/80wBeZVj X-Gm-Message-State: AOJu0YwZ5ucVimC0AHLyFL7NyFzlOUsbdX3+ayMzuw117NJ71C0qawss tP5Gp+7YAVORiq1C/GWvbQ3ozZw7RvpJ7Tmgq3kWV/7sKVK+74xpRj9zB1J1Fd8= X-Received: by 2002:a05:600c:4ed3:b0:420:e4b:d9df with SMTP id 5b1f17b1804b1-42127819e09mr10547205e9.13.1717033992346; Wed, 29 May 2024 18:53:12 -0700 (PDT) Received: from smtpclient.apple ([2001:a61:1083:f101:dcff:2f3d:64d3:d269]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5786450bb13sm7415110a12.72.2024.05.29.18.53.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2024 18:53:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PATCH net-next] net: smc91x: Refactor SMC_* macros From: Thorsten Blum In-Reply-To: <20240529171740.0643a5a1@kernel.org> Date: Thu, 30 May 2024 03:53:00 +0200 Cc: Nicolas Pitre , "David S. Miller" , Eric Dumazet , Paolo Abeni , Breno Leitao , =?utf-8?Q?Uwe_Kleine-K=C3=B6nig?= , Andrew Lunn , John Paul Adrian Glaubitz , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240528104421.399885-3-thorsten.blum@toblux.com> <20240529171740.0643a5a1@kernel.org> To: Jakub Kicinski X-Mailer: Apple Mail (2.3774.600.62) On 30. May 2024, at 02:17, Jakub Kicinski wrote: > On Tue, 28 May 2024 12:44:23 +0200 Thorsten Blum wrote: >> Use the macro parameter lp directly instead of relying on ioaddr = being >> defined in the surrounding scope. >=20 > Have you tested this, or just compile tested (please mention what > testing has been done in the commit message in the future)? Just compile tested. > What's the motivation - cleanup or this helps remove some warnings? > (again, please mention in the commit message) It's a cleanup suggested by Andrew Lunn [1][2]. His suggestion might=20 have been for SMC_PUSH_DATA() and SMC_PULL_DATA() only; or to add=20 another macro param for ioaddr if lp->base and ioaddr are different (as=20= in smc_probe()). > AFAICT this will break smc_probe(). Yes, it does break smc_probe(). I'll fix it and submit a v2. Thanks, Thorsten [1] = https://lore.kernel.org/linux-kernel/0efd687d-3df5-49dd-b01c-d5bd977ae12e@= lunn.ch/ [2] = https://lore.kernel.org/linux-kernel/f192113c-9aee-47be-85f6-cd19fcb81a5e@= lunn.ch/=