From patchwork Thu Apr 6 17:30:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 13203780 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDA20C7618D for ; Thu, 6 Apr 2023 17:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uQV+tBLoG/olLnG+mTX9l4PHBGnAlSlwYvQ30Wp1STg=; b=4Igk0SzTFh7M/q YW+VTc/rKtY8i93e48Mv+xwo8Le/+c4xjsMit394F4jYxPP1cBR31EWoSIHRbq1XAxT4XZoWj01W9 Nbppl6CsNLlJswAecD61pNRyBSt4Jeuagl/JeX9jWVvip5A0zpklMVZgBlllV1lDlzqVIDg4xEVpO Pz6osiPwkmvmIypQZHmFR95waIth6gc6dEDFuDCR70asfRNC+772yBrI1e+S/PqdL0OPWV8fOE4k7 qZcEhWij9QiLejO9rszCMHdqpPD1xlViExIPt1+6fw5KBiNO14eDLEUBV+4625LPMwV27TlRyRu4k mJBW2ZPLN8UaX/hn8UFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkTRF-0088kg-0R; Thu, 06 Apr 2023 17:30:21 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkTRC-0088jl-0r for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2023 17:30:19 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5A87264A78; Thu, 6 Apr 2023 17:30:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C469FC433EF; Thu, 6 Apr 2023 17:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680802216; bh=hCCX2cA3QYGfj6QxeCyQVv6uXMkVZB5gXlYoQklEu+A=; h=From:Subject:Date:To:Cc:From; b=EOGTPMH6ZXuqE4xz3Nrf2FvN3yCGnO7fkPr8WQQwmh7WLzK32NhjVfgBSvAmWQTTg xGOTv5I13I/A9BiAqFu0ybxlZaT8IBC0W07XRecaEojLs/kxzUtnea6S+9RWAiaqws fm/p9xOq6wv/hZr87U90U6KNFNmpMjPXDM8JisV54uzsBBI6epBxpcslfqLGSPlJ9f 73kF69CVGl4JqtCtvHWf0dgkOmxGHoOUuFRuOJ2yGcNEqZnTgn3AGitl0A1pDGqlDi WbukwAZXs8N9sgw/YJM9sgjDIihr1EgjUYKUMO4uqgG81Q49IeJBKC43CwORFe8ZQX mbicwgJqxyeww== From: Simon Horman Subject: [PATCH net-next 0/2] net: stmmac: dwmac-anarion: address issues flagged by sparse Date: Thu, 06 Apr 2023 19:30:08 +0200 Message-Id: <20230406-dwmac-anarion-sparse-v1-0-b0c866c8be9d@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKABL2QC/x2NQQrCQAxFr1KyNjDtWKleRVxkZqIdqLEkVQuld ze4fI//+BsYa2WDS7OB8qdafYlDe2ggjyQPxlqcoQtdDMdwwvJ9UkYSUl+izaTG2PZDjGFIfeE zeJrIZVKSPHos72lyOSvf6/r/uoLwgsLrArd9/wEEpRZOhQAAAA== To: Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.12.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_103018_365920_2C2623CA X-CRM114-Status: UNSURE ( 6.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Two minor enhancements to dwmac-anarion to address issues flagged by sparse. 1. Always return struct anarion_gmac * from anarion_config_dt() 2. Add __iomem annotation to register base No functional change intended. Compile tested only. --- Simon Horman (2): net: stmmac: dwmac-anarion: Use annotation __iomem for register base net: stmmac: dwmac-anarion: Always return struct anarion_gmac * from anarion_config_dt() drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) base-commit: 0ebd4fd6b9064764a3af3d671463b1350abffb6c