Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11653012rwd; Thu, 22 Jun 2023 16:56:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ62VBfP9/djV71nS992ZtEGbAL/0XO/jV99ebW32094lRV+fig20nt1NEkwWSonXkqi7pQm X-Received: by 2002:a05:6a20:158d:b0:125:83d6:aafa with SMTP id h13-20020a056a20158d00b0012583d6aafamr1566795pzj.50.1687478219157; Thu, 22 Jun 2023 16:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687478219; cv=none; d=google.com; s=arc-20160816; b=wpanTz2mduy2RYvumQhAk38ICetFu4Vr5h7TGRH5TqsbAIVWRMevd9qq8EBpGrLwK7 ejZh/22DypOT+eE0c2TWhsjS5y41ha20Yz98p7hxYBetwlh2aJQEpTj/KGqu+dWGxCQy BoHfM0lSGO+sC+T6ihtHIb8tt+gKdgL1ibc7WgbtNqjOtWHHbkjY2gC3yX48sXZ1LIDO Mi32rld/AXDeRbcgHX8IRJA48r+S7t81dU53z4vDi1/3/8+sLh5L5QTY5ncS7l826XiD P9lTMgVWndTEu1CtxSO2oIU+Tp68FeocWaCFju9+muQJMLqs/b0ehoRqVixabdECTGFz KBxg== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=a/26CRpzdIC/ak08e5rLqRXuaCuD/a93/4b5pTYuKXM=; b=jz6K4933Ys6TLEazXHaAztlY8xF5gTcdaeFcgKvzjfbkx/MDLsOxZGzNlWZqoUL+HJ dfACtme+O7VNrB6czjmGZe48KtlwvgPzJq3iLmjDshN3z3PnYLoQ5tZyAwtrxtz/HFwz O+u7CmE5EbJxnPnH455o9YvjvgNKUpkRkrFC4SO+UziZYkueOx9i+kKiA7O5vApLpS+O 0QZo1H4EVGmJzN67qbGcK2KYAk3T0qCYgkmnhErt6QHd1swTsmcSQB4A/0F5hW9/UHsF 5H3aV7wRu+WHqn+lY0fiXOvZC/qWrwICI/9VBpxAePexmiCDDHhnR6NpWTsA2OzqrmZG E1EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ssH+p4Ba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a632c14000000b00534780446d9si7339983pgs.640.2023.06.22.16.56.46; Thu, 22 Jun 2023 16:56:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ssH+p4Ba; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231305AbjFVWdr (ORCPT + 99 others); Thu, 22 Jun 2023 18:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjFVWdp (ORCPT ); Thu, 22 Jun 2023 18:33:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F2819AF for ; Thu, 22 Jun 2023 15:33:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 086BA61923 for ; Thu, 22 Jun 2023 22:33:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB3D2C433C8; Thu, 22 Jun 2023 22:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687473220; bh=wP5iYCJHzA+hCBB51KqK3bEREmtRlXHKh26/82qwFDE=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=ssH+p4BaxnsIM0BKtv2UJNG2p5L0vhErzN1IOK6XILmij1WwGEh1ViosLCPKaFOzr dtW7Ca/Sdfb1PzLV0XPv4fb0bExLCFS64R2Wdi2VKHCGa6qyawvN+n88JW4oLRF7+i vP69ZO24fYXHexeWj2TNR8lGPL3703hktTrlMTJ9qdKPEGpEAkCN6vNCr3i6sQSBFu m+IZ5SHfp6qGeDpv89J0Sl54TS4Vuowue8HEKC7HrvuI5hSS5ezjXnvaLd/LX1xK5/ x0lYBLgIhwU+l1VA/NAr4GwvvImVaq0ArrV/GBxnPexv+t5RbCH+/kaBPpv6BkHu1v 0LkI2DbzYQKOA== From: Mark Brown To: Yingkun Meng , Arnd Bergmann Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org In-Reply-To: <20230622101235.3230941-1-arnd@kernel.org> References: <20230622101235.3230941-1-arnd@kernel.org> Subject: Re: [PATCH] ASoC: loongson: fix address space confusion Message-Id: <168747321729.318849.3547476102614344468.b4-ty@kernel.org> Date: Thu, 22 Jun 2023 23:33:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-c6835 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, 22 Jun 2023 12:12:22 +0200, Arnd Bergmann wrote: > The i2s driver uses the mapped __iomem address of the FIFO as the DMA > address for the device. This apparently works on loongarch because of > the way it handles __iomem pointers as aliases of physical addresses, > but this is not portable to other architectures and causes a compiler > warning when dma addresses are not the same size as pointers: > > sound/soc/loongson/loongson_i2s_pci.c: In function 'loongson_i2s_pci_probe': > sound/soc/loongson/loongson_i2s_pci.c:110:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 110 | tx_data->dev_addr = (dma_addr_t)i2s->reg_base + LS_I2S_TX_DATA; > | ^ > sound/soc/loongson/loongson_i2s_pci.c:113:29: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > 113 | rx_data->dev_addr = (dma_addr_t)i2s->reg_base + LS_I2S_RX_DATA; > | ^ > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: loongson: fix address space confusion commit: 012fa2622e30675f61413485785e708ba02be78b All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark