Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1009083pxb; Wed, 6 Apr 2022 06:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9P0f1W1F9fQLiuLKJd1iA5bkBOEaH1VQSaPTwQSL8nZKjJKIrt4yk6vaDeUlGK2dtBVDH X-Received: by 2002:a17:903:11c7:b0:151:9769:3505 with SMTP id q7-20020a17090311c700b0015197693505mr8546432plh.72.1649252226756; Wed, 06 Apr 2022 06:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649252226; cv=none; d=google.com; s=arc-20160816; b=IaQT6MPrxkOFbocwifHBff2xKPscxaOncsR+6spUdtquEAvCc9WSgA95MGINoaS6Hx 1/Tz/to8dIRIPg8gzeVUKsvDzxe4R9+QriBeOGkwaLMgJnjV0ayWUtThs/RbUjC9+yF+ zWE09mKxseq8y6RmW5sCcI2E+zasjIcJQ5kXXyFHjsiz1/5HZyh6x0ZhLnrf8vRzq8oU f8IlwIuRILAuDXnfsj9zBnyPkYNQiNMNlL/hzivpoxRDiqg+fwp8SPpUasy1+bC8D/xP iepjQ+ai6NMlZZbfC8fqTlwmYPB9GLXPGybqfrGDKM4gWf/25GBCbFWI+7AsLIwYAnsk tPvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oIKSOG05oV+I3wBLNZDm7zvGWVJvwEa7/mp1tgRbPm4=; b=hiI88Wt2aWGpLLcrREfQXePYf8lrzrJApflD92j+osC9GSJePJxFo+UompUF0ibAfn RpAETHPsYgc1KdYebs3ChewZaSUAhLQ32qKfRa2g6AOnfMH+5h7RUQiKhmOB1uwubJP1 vzgQW6IArfSEzR/L8+I0zOYQ0dLneHjvFIVMrbGhjfvoSN0iBymmMSXSNl7oXMuQLWc+ gwVIRDsxIm64MDDEoZtcVmtBP8vTHEhSPrKnWfMqJi2ej77opw9U2efSnv5vMsci71Wy sUSIxZ92KGL9mpHJ5Vuwn2YNa5G7wzWL9SGvTqqZxFbZ6T3/upS+LEW0KX4u1u4dtOJE SVjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=An+cltzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v7-20020a63b647000000b003816043ef60si15588151pgt.341.2022.04.06.06.37.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=An+cltzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0BF8A4808E0; Wed, 6 Apr 2022 04:21:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390609AbiDEWEH (ORCPT + 99 others); Tue, 5 Apr 2022 18:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348829AbiDEJsk (ORCPT ); Tue, 5 Apr 2022 05:48:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25CFFB3DCE; Tue, 5 Apr 2022 02:36:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C837DB81B93; Tue, 5 Apr 2022 09:36:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3138FC385A0; Tue, 5 Apr 2022 09:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151388; bh=jh9CllG9PsAXX5BVlSm7J62a8oQ3Hy7djmNXGAhkUiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=An+cltzTsqXahPWZFFa8s8E9Qm9kainBAXkVQylCcpvwis2xeXzNLVq0+c9C8r3XA ufjuzQ6LDZQ9VTgRzYa8GVGR54QqMhZjAtsUta8WMyj8Ul+MKaR67c7Lb8uOck+7hI MXZWWGD93oOV1wrraOCp/0zWpHFWm5eiWBVF6xVQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shannon Nelson , "David S. Miller" , Sasha Levin Subject: [PATCH 5.15 397/913] ionic: fix type complaint in ionic_dev_cmd_clean() Date: Tue, 5 Apr 2022 09:24:19 +0200 Message-Id: <20220405070351.748311758@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shannon Nelson [ Upstream commit bc0bf9de6f48268f4ee59e57fb42ac751be3ecda ] Sparse seems to have gotten a little more picky lately and we need to revisit this bit of code to make sparse happy. warning: incorrect type in initializer (different address spaces) expected union ionic_dev_cmd_regs *regs got union ionic_dev_cmd_regs [noderef] __iomem *dev_cmd_regs warning: incorrect type in argument 2 (different address spaces) expected void [noderef] __iomem * got unsigned int * warning: incorrect type in argument 1 (different address spaces) expected void volatile [noderef] __iomem * got union ionic_dev_cmd * Fixes: d701ec326a31 ("ionic: clean up sparse complaints") Signed-off-by: Shannon Nelson Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/pensando/ionic/ionic_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_main.c b/drivers/net/ethernet/pensando/ionic/ionic_main.c index 6f07bf509efe..f4af760cfa73 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_main.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_main.c @@ -328,10 +328,10 @@ int ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx) static void ionic_dev_cmd_clean(struct ionic *ionic) { - union __iomem ionic_dev_cmd_regs *regs = ionic->idev.dev_cmd_regs; + struct ionic_dev *idev = &ionic->idev; - iowrite32(0, ®s->doorbell); - memset_io(®s->cmd, 0, sizeof(regs->cmd)); + iowrite32(0, &idev->dev_cmd_regs->doorbell); + memset_io(&idev->dev_cmd_regs->cmd, 0, sizeof(idev->dev_cmd_regs->cmd)); } int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_seconds) -- 2.34.1