Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1710969rdb; Wed, 20 Sep 2023 18:16:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgnSFLGD15HAElqcaqPiQwm6hVvVFusnYbmz6o6dyuRLLyYyUYfwUuAuxJkiU4IDPNFHHh X-Received: by 2002:a62:d14f:0:b0:690:fe13:1d28 with SMTP id t15-20020a62d14f000000b00690fe131d28mr1641753pfl.33.1695259003387; Wed, 20 Sep 2023 18:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695259003; cv=none; d=google.com; s=arc-20160816; b=NC8n94ZfLmEIu+VMOinX7ms0hF3U0XILS67zQ6hfN5SSPIq2BTya3Rq3fn//9FVSkL ni2CT5X/afm4MJsk9yywoflUPccNMC3mvKCbvEoSJvgpFG38mavCsy23iZa0CQCKbvvJ 0z9wcjgCverWcyogMfPiMVYZgwIGn86PQJ7oFwUHe+dxuqTgM7mPuXRSglM/a8A37KQx mYnbpxARNBz9vuBXJkJnMRj1UdzkVlnADsYLkOU7H7koW/hlTaH5r/TenZ4NB5tTigwK ygzLCcN8Nu5bDDqMbjoDFqm+6x8e/x5nhzHvos6aJK57u19iHEEYx/n4MXawSu2djlbt N7rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G/eEH2queOwNg5/I2SCWhXDAO5cqtfOn/DksmwR4ju4=; fh=xXsXjEvuhKvtuzwjmXROSmYlJK+2Lcg0UA3uf8C4nBs=; b=A1tookLlY+n6uZOBit7d8V5SBTA5X6WjGelyAejMwtCmd1fWX1lMG9kJpwHUiK+W6Q GIGvsyzgIDjIJ6zNeZB+JVcCBA8U8+T/iYp8017fzNjXlCaXStojihbalSoybOkONOKU kV4WyezdWJpWCnMfeYhtUUTBw2O+qQ0NFvwoPzcHwju9i4jjPeiZmqDC6ettrRRbW1Zq DND9BCzU8yrtfoA2OFEvNmeyPd+knz3/VFUOzUmydYMXqmd0a9zAtGdEewl+CdzcwxNb 5zh5YEJ1QtlqcZ8VjOWtDyI90K+lZEWssfXWTOd7qDshhBaWT/wLg9eprZybxNYJbkQY 2Ztg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RxWOJXJY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i186-20020a6387c3000000b00577a7c39aacsi297300pge.275.2023.09.20.18.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 18:16:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RxWOJXJY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2BA0D8270439; Wed, 20 Sep 2023 16:35:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbjITXbr (ORCPT + 56 others); Wed, 20 Sep 2023 19:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjITXbq (ORCPT ); Wed, 20 Sep 2023 19:31:46 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7706C2 for ; Wed, 20 Sep 2023 16:31:40 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-69101022969so284845b3a.3 for ; Wed, 20 Sep 2023 16:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695252700; x=1695857500; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=G/eEH2queOwNg5/I2SCWhXDAO5cqtfOn/DksmwR4ju4=; b=RxWOJXJYBP+YGeOlw6nwDALK21LKSmxX4C0df9gaVfQa+IW5f2lvg4SuQ4R0s8rxI6 fgj0Y3xAEMbDAtXtxQS85kNZCbugeIXqOnEPLgV+CExXeYzlXBFwgGfFA7Tk8zTSgPyw C+8SwyJhCBWJFjcMPTWLWSpyx8nNqvEeCTa/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695252700; x=1695857500; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=G/eEH2queOwNg5/I2SCWhXDAO5cqtfOn/DksmwR4ju4=; b=pPapANn5s9WtUfSnWMiO6+G/3g/WUQhI29eMWUlgeoEEM5cBk7p49rNDS2SXC8VHn/ 7x6P4N8lLabqHWcUAXq+2e+JHfr2hFyO/Dl/pdFFaBDIr8xJcVVJ0PclTPcXtG2Ut1K6 WbPHo+pbtWQ7BFh31PsZHU23M4OrnKUPrk/FyDLTH6PjPHZTScMPX1SyBw9lnr6IMEGo jZZCdOxdGPX2RBsgqoR4b/vKtMD7BKHFuFW4bWSeJ2lSzVc+9bI2NOAvlkZM/OzmvSAe m3fTO6SuX3WppXMiruQ4zBLReE7Rai1YUpzbNfMflfJM7kvkynFWAB9tqj+eq0QKDhJR 7VSQ== X-Gm-Message-State: AOJu0YxHZvUdI9gUMv4t+lbefipYbTAFFtHGyl0UdGMAKWkKRLSO/vRG EosTTV/mDYcoMlSNdB0pV2tDmQ== X-Received: by 2002:a05:6a00:2d23:b0:68c:6a77:4845 with SMTP id fa35-20020a056a002d2300b0068c6a774845mr4497243pfb.12.1695252700319; Wed, 20 Sep 2023 16:31:40 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:23d5:c394:2c98:ffcf]) by smtp.gmail.com with UTF8SMTPSA id g23-20020aa78757000000b00690cd49cee2sm76997pfo.63.2023.09.20.16.31.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Sep 2023 16:31:39 -0700 (PDT) Date: Wed, 20 Sep 2023 16:31:38 -0700 From: Brian Norris To: Dmitry Antipov Cc: Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH 1/2] wifi: mwifiex: simplify PCIE write operations Message-ID: References: <20230919132804.73340-1-dmantipov@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919132804.73340-1-dmantipov@yandex.ru> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 16:35:26 -0700 (PDT) On Tue, Sep 19, 2023 at 04:27:59PM +0300, Dmitry Antipov wrote: > Since 'mwifiex_write_reg()' just issues void 'iowrite32()', > convert the former to 'void' and simplify all related users > (with the only exception of 'read_poll_timeout()' which > explicitly requires a non-void function argument). > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Dmitry Antipov > --- > drivers/net/wireless/marvell/mwifiex/pcie.c | 290 +++++--------------- > 1 file changed, 66 insertions(+), 224 deletions(-) Acked-by: Brian Norris > diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c > index 6697132ecc97..88f632b9dd93 100644 > --- a/drivers/net/wireless/marvell/mwifiex/pcie.c > +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c ... > +/* Non-void wrapper needed for read_poll_timeout(). */ > +static inline int > +mwifiex_write_reg_rpt(struct mwifiex_adapter *adapter, int reg, u32 data) This is kind of a weird name, but I don't have better suggestions. Maybe it helps dissuade people from using it outside its very specific context (where you have to read the comment to understand what "rpt" means).