Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1889843lql; Wed, 13 Mar 2024 10:57:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0+kZxJgvJSj1m8QMx8WBpRmnGonn+dyXm9/LHyFJ9Z2Tl9/2AbQWBWdgeGazPfBgNM0ZGQqnpU1r4TUM+ksWpiCxbdDwcmFZmstLNEg== X-Google-Smtp-Source: AGHT+IEX86YSWY8OWkNL47wcWRP5USV1YKzuNlQoLLvmR+0kaOQ+XMtqKcsi1wOxFd/Z3Q+fp+gQ X-Received: by 2002:a05:620a:40c5:b0:787:ad37:4a0 with SMTP id g5-20020a05620a40c500b00787ad3704a0mr964890qko.22.1710352663510; Wed, 13 Mar 2024 10:57:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710352663; cv=pass; d=google.com; s=arc-20160816; b=Djq88oamTWEoSYmP/HJkv/IYSBuIjHIS4kYOCPBd3JxzKgbeAsEH0dVzVbINTbNbKJ bmHwcRE4YLaf6DgeCZuU/8Nm7GUJ2xXxKPb1LheezLyqTQ7LtwlSWteI8p+nWyLLHMtF bKV2xmmdDULHMy2yXwp0SoLOxFX+DUx7N92VPgeM6U/Wn4Nxd9YiSSU1AEYfiFP75Bjf s/5ra9ETsy+18Bjo1eKwtjl7raVImKQtC13kGlMceFArAmvy/30Z1HqqWmtv8UexisCo i84vBX8NsDv/Sp5BEPrBb/hGUPpXaTpqu1Vw/d0lUqj6sRiLyq4Ah/EgLNQUIxcmtEy3 AOtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=7BtBOzTnblpeDzj/b0IIEPIFGWtiOw5RZYCbtc0G10o=; fh=zP9lnsFbqOciE0xWnb7C6QT0rsqd3vnHgjeCwXkY4c0=; b=bn8qZlrC+Gqe9kMpE9sq9GEK9ZAeGFp5R44klK7+9elwypyiFkSEO1kcKp6uTvSZCK xLgTSC+k9rARapDyESSF74LmOE4kdKPSy20ajB+2MyGAvG/Rzrv54GXt0hxwRtbTgFob mIC+AkDxmpvuAeGaooYHNhMkqYI7lqkoFw19rkkGid6Bupd3tHW091+5JbPBMO7L8E1c rC+LbC1TDwunmhEG5ul9qrTpnQPQPVQj3qtjh4WPt7MOLcHq4FuuiircJzcvfu92IOoo JO66EBadmc3FeZ/QsYy2MWH6OSVE6l1wp/Nwz/IsPLJ3zy/LKRUwPIRv+cKeVfa+VZkl +prQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sr4aViDB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v16-20020a05622a145000b0042f211ebda7si10171167qtx.558.2024.03.13.10.57.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sr4aViDB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2FFFB1C22E4B for ; Wed, 13 Mar 2024 17:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4943C18F371; Wed, 13 Mar 2024 16:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Sr4aViDB" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 24D9E18F36B for ; Wed, 13 Mar 2024 16:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348534; cv=none; b=ReCKjnFFYpzfYUiW5eyI9ouJ131xia3Jl4xno/2CTHzb+ruvcpnSL1Zefd8fnzBkZiPm48TxO1XJ4wpBEvtpP7XiuEamFgjW++UhWk93Cd3I5tWF3cxw9/QXoVEGL4V/18FYFo2De6WcOa8/1Bvfis7n/lLi6IDgPI33bbi7dBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348534; c=relaxed/simple; bh=oESQXRrfUQn5iwHR7vuIGyuXA0ZCNnj5Jo5AGFJyb3s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=J5xl2LfUpanowbXiBKsxWhbE4Th6jcsgzmhDkQuf2DImRZ6OxX4f9P+qfwiYZUE/E6G8owBox55/dDxJ5i4/lZHcz6f8b9BAUz94GN6sN7PibsNkvSRg1xYmtYamVOH8NMB9pH8uLLnTDSabhcK3Ou/OktGGRzOlTJOCcMkk9lw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Sr4aViDB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF39CC433C7; Wed, 13 Mar 2024 16:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348534; bh=oESQXRrfUQn5iwHR7vuIGyuXA0ZCNnj5Jo5AGFJyb3s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Sr4aViDB3YIcBQARBhQq/BMG133CKzR2ns5C4wmLKZpIVoLbqBKjw9ubxMQdWwZXR p658VANWNsn0RwQs2ZC3NJoNSkY0hEOdJpSPOPy3mSgpeQFi6cM5ScyxQo+ZTn0hor 38FOlBlSG0ThjilOZHp82FWPRC5OhpGLAhMELIeFudn8MZg061C6DLMAuoxBRJw1Sc UfPmgiQAidYx+y8MiA8vl5+xvaCC9oMJ9oY83MbFSpMdIv55oZHbruvhvZsRSQkmJc SPlFi/PkI4Tt8d/KS6p22QEhHQivU9HU9XVBfTw27eFceP8Sc1FJX5bnhukDRkLpR+ +VS0pBG4GDjCw== From: Kalle Valo To: Jeff Johnson Cc: Rameshkumar Sundaram , , , Karthikeyan Periyasamy Subject: Re: [PATCH v4 01/12] wifi: ath12k: add multiple radio support in a single MAC HW un/register References: <20240312135557.1778379-1-quic_ramess@quicinc.com> <20240312135557.1778379-2-quic_ramess@quicinc.com> <4a527729-2bf8-47ce-8275-d36b76bde95c@quicinc.com> <3178cf8c-d328-4fe2-b3be-f5c4c908f20f@quicinc.com> <605a673e-3686-47d0-b71b-1e314fde65db@quicinc.com> Date: Wed, 13 Mar 2024 18:48:50 +0200 In-Reply-To: <605a673e-3686-47d0-b71b-1e314fde65db@quicinc.com> (Jeff Johnson's message of "Wed, 13 Mar 2024 08:06:02 -0700") Message-ID: <87il1qf571.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jeff Johnson writes: > On 3/13/2024 5:57 AM, Rameshkumar Sundaram wrote: >> On 3/13/2024 3:23 AM, Jeff Johnson wrote: >>> and guess we have to figure out how to suppress the ath12k-check issues with >>> this macro >> ath12k-check complains about the reuse of ah and index arguments which >> may get evaluated multiple times if its an arithmetic expression, But >> areas where we use the macro in our code aren't doing so. >> Do you have any suggestions here ? or shall we go back and use this >> for-loop inline. > > The macro makes sense -- we'll need to update the overrides in ath12k-check. IIRC it is possible to avoid variable reuse in macros with typeof() operator (or something like that). I can't remember the details right now but I think there are examples in the kernel code. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches