Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp450947iog; Wed, 15 Jun 2022 05:47:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uayDRAX0cykLoD/oxNHNtd9GvQNhxc51jF6NHVxmuc/NQrtGW/oQnJ1HfvPZ9GJi2JfzEJ X-Received: by 2002:a17:903:2d0:b0:14d:8a8d:cb1 with SMTP id s16-20020a17090302d000b0014d8a8d0cb1mr9166213plk.50.1655297272645; Wed, 15 Jun 2022 05:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655297272; cv=none; d=google.com; s=arc-20160816; b=HhJS+7sq6oITGXJhEFfGDs0HsMAP9ZfhJN1xKLdJbNKaVMwcZdlhe4oWVIIzWwd0/j lIzcF1pdnhurxkgFmMyQXSaE/moMf0A+TGKg5EJA3ym4Z6vQKb0UVMmDtn39OxrcUBPg o8q1E9qEycUX2OCnDBO9EFy4r1qy2X6oBKvpGhzdwVKal+3iXjdGFVfMar7nHQcqnT02 yfShiLsrEkXUFM5gy+tpHRSYQxETIeYX+LZljbKEPweRZJe8jWfh2PRygpEHE81tQl2W mvKHPtg+oomT4mPwoz7atNXuRECp+yUVZQZ63e2HWuGD4jFTOTDcHZoccGgzXW9qbcl7 4/JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=izkMW7/nCGStLmJpRPGKVyWyEhaf2yWPv1nwAze4fKo=; b=OsJtPrXIvCye6gMbTjCmeawIsrtCWTHHkwqsVexatOAuxt/WrSRTpcVlkAQQDTT7Kh xw3orGNnzsiuRK7ru+j+EzuLXMiRUI05FnFnYtegu6OmEQ9dpnKHBUd4Bqftg4AcLSis amKtwch6SfquGc2nLzWO6iwoTctOZKP4a4dubhdny8AiJ4FbaCkhlFcw0Rp2FpJwnE5q kgElNn9LoeLXzZh2Ov7YPnDKkXlCIkFR06j/NplHtZ3HTBut0VEfieXnzD1RWIaVfFCx DrmG9JfJuuCruc8VnGbKerq/UJ1llL6A9sLUPuZfT6cvWttvR55WmThpVq+b3ab3KSMU GQYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=b4ZvYL9P; 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=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a63b50f000000b003ab7a1a2193si15675086pge.151.2022.06.15.05.47.38; Wed, 15 Jun 2022 05:47:52 -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=@cutebit.org header.s=mail header.b=b4ZvYL9P; 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=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348302AbiFOMHV (ORCPT + 99 others); Wed, 15 Jun 2022 08:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239284AbiFOMHU (ORCPT ); Wed, 15 Jun 2022 08:07:20 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87EFD37ABF; Wed, 15 Jun 2022 05:07:17 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1655294834; bh=izkMW7/nCGStLmJpRPGKVyWyEhaf2yWPv1nwAze4fKo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=b4ZvYL9PgIee/QHliIcDiomKj4KMu53BbVvWwW22fP6OB2/aYrhLL8bviphVK3OZ/ Tq8GyQLc2PzHnweYsbg5OKeiudyxLVLrCPGyMy4bYyLi6PG5tur3FFIBNrPwCEMafg kuHhGtSxG2DKv65jJcYlKa5BZSKI1sEnHVEAqpPs= Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: Re: [PATCH -next] dmaengine: apple-admac: Fix build on 32-bit/non-LPAE platforms From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: <20220614074915.1443629-1-geert@linux-m68k.org> Date: Wed, 15 Jun 2022 14:07:12 +0200 Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , Vinod Koul , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <4D5BB835-5DF0-4BBB-B073-A77F1A96EA19@cutebit.org> References: <20220614074915.1443629-1-geert@linux-m68k.org> To: Geert Uytterhoeven X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_FAIL,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 > On 14. 6. 2022, at 9:49, Geert Uytterhoeven = wrote: >=20 > If CONFIG_PHYS_ADDR_T_64BIT is not set: >=20 > drivers/dma/apple-admac.c: In function = =E2=80=98admac_cyclic_write_one_desc=E2=80=99: > drivers/dma/apple-admac.c:213:22: error: right shift count >=3D = width of type [-Werror=3Dshift-count-overflow] > 213 | writel_relaxed(addr >> 32, ad->base + = REG_DESC_WRITE(channo)); > | ^~ >=20 > Fix this by using the {low,upp}er_32_bits() helper macros to obtain = the > address parts. >=20 > Reported-by: noreply@ellerman.id.au > Fixes: b127315d9a78c011 ("dmaengine: apple-admac: Add Apple ADMAC = driver") > Signed-off-by: Geert Uytterhoeven Thanks! (TIL about the lower/upper_32_bits helpers) Acked-by: Martin Povi=C5=A1er