Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1855018pxa; Sat, 29 Aug 2020 05:48:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXYDDzUKvsu+mnuQ57hJ2+5zk8wzIYvOMYs6ZILbCrn+LKVV+Y5VLJLsqzeB5nlO6Cfq3k X-Received: by 2002:a05:6402:44e:: with SMTP id p14mr3349964edw.1.1598705291480; Sat, 29 Aug 2020 05:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598705291; cv=none; d=google.com; s=arc-20160816; b=OK/ya6WqtLwvxUDrdjpGW7PByDHGwyq4ZF/y0dTjSkxgS1mmJTpFqclfkdgFW76usZ D+KSBEV1pETTzTEcZYX/JwWOmgmRBxnbAra2QcfeceBn7sewWiGejf73QhMPs5k9BhZ+ DA/kHfqMgSL7bU/n/3lOgd5VhKC2GCvQk+kfqDVNk9EV71Vp19/MayZgtszvO4Zo+wcx sGTipRH5LqKA36Tx3V+5et8K7s/79XXsoZAgAL9jGpX9VPPGz8IZ5NFt7XNGTeTVDki5 z3gSTTdkO6I6dFguHXsH3sEHdeWcsBdFRngl2l1xelZAUU3uS0orKwIUkY0YbTaGkb7N wVAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e52rc4zDcLwYIKS8oi+duVhjBLUdNkpPNyhl018nj50=; b=S1AOqom/PSDqZ/PlJ/4R5mgwxqkPK78AbBGVrEL1G5nJSJWVQhe6ANYh7T+eXNNjSf /jbUMb+3I5mx+4jyLZ2xIi3lkyyN7y+fQVGFPN3zoDP67GHlezLD3fhtRARj3y1i1myN AWHhd1TscIJXW472KDqtEPgewkmoztUfbcD5S7YURmT1quTQ/2eeqdrYHAdUhCjri0N5 o9e91B6+b2+le0GrHVckkp50QQvGTw6qY+WDxsO8iZouih079jrxEYDxeBzhXn12admZ wDX2SoNFdR2XmWpKajim/uvmmXxoeHp7QAkF5qwjy3QnHfjRyg6W4ARkm2XE1Ov7AvSJ RM7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Hew/ODMp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si1513124edq.16.2020.08.29.05.47.48; Sat, 29 Aug 2020 05:48:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Hew/ODMp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728048AbgH2Mqe (ORCPT + 99 others); Sat, 29 Aug 2020 08:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbgH2Mq2 (ORCPT ); Sat, 29 Aug 2020 08:46:28 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28F57C061236; Sat, 29 Aug 2020 05:46:20 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id u1so1498277edi.4; Sat, 29 Aug 2020 05:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e52rc4zDcLwYIKS8oi+duVhjBLUdNkpPNyhl018nj50=; b=Hew/ODMpbqiuT9ygl7dWUZSpQZgywitQhWoLluFmNui8dQaHgiK/bLImqDIrgVgAQ5 PjRIH9yQC8MLwQP4HNuy6fJVJ3XVryhg96DmdtzoH6ZxSSNHpqFp3V+s+EOFkwunED2x kt2Yt1RHfXzxHedJakqGsX5XYPoiIf4okPs5x8wGGd8+VqKBzd4njqmVYIvA6g9J5fFq xTLWqaOOwU3VW1//s34T1bR0hSQqu9FGRT9ZftBUnN1nxtA0tjPBWywms2S4HPQFdzzn /ADSzcrhdFDm7mfsxvuxkN2qEdKnYTAMIuJI5i5jyLweW8HTZnmHWo56owUWOsvr3zMs qTNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e52rc4zDcLwYIKS8oi+duVhjBLUdNkpPNyhl018nj50=; b=qv6Pd+7BBY4MF788c1YpQJnj5rrVzZxp+GGmGbIDSvMYPasI4HL7jtQGssqQwYoqoY BK7BkpaLeRciU7aj47O6yUnhgPusjIEyMXsWPxH1DiY++VGA1uqpmME0gy0hhje1xYk6 RQLPhLifclZe9EzeEXGuAF8tZDIR6QTy+pdOJ+5RrX54Gt6WcplXDRFXIeEjIpAVh8Zt OXzzKXDJsiJIjQHB3kRDny+UZa5P7CyjGztqlv9sFSYED+4UjVXrs2l3Yy4FsNd6gZ7y YDigKhV17ZsnuSvFgIHkP/FANpaEI06FQyDnFwyvZhyIKQRdfaIh8NasVrUukP+4+VQ3 /17Q== X-Gm-Message-State: AOAM531IrIbDwSAUWva9hOMSXO37Eg08CuQKUx4RuAfgq8gcbt+KnH7i 2Lyr/hXfAd4zFV5Bju8SxZA= X-Received: by 2002:a50:b946:: with SMTP id m64mr3374913ede.92.1598705179494; Sat, 29 Aug 2020 05:46:19 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:a7fb:e200:414a:8107:3def:ee41]) by smtp.gmail.com with ESMTPSA id h2sm2054664edz.60.2020.08.29.05.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2020 05:46:18 -0700 (PDT) From: Luc Van Oostenryck To: Herbert Xu Cc: Linus Torvalds , Andrew Morton , Joerg Roedel , Luc Van Oostenryck , Guenter Roeck , Li Yang , Zhang Wei , Dan Williams , Vinod Koul , linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fsldma: fsl_ioread64*() do not need lower_32_bits() Date: Sat, 29 Aug 2020 14:45:38 +0200 Message-Id: <20200829124538.7475-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200829105116.GA246533@roeck-us.net> References: <20200829105116.GA246533@roeck-us.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For ppc32, the functions fsl_ioread64() & fsl_ioread64be() use lower_32_bits() as a fancy way to cast the pointer to u32 in order to do non-atomic 64-bit IO. But the pointer is already 32-bit, so simply cast the pointer to u32. This fixes a compile error introduced by ef91bb196b0d ("kernel.h: Silence sparse warning in lower_32_bits") Fixes: ef91bb196b0db1013ef8705367bc2d7944ef696b Reported-by: Guenter Roeck Cc: Li Yang Cc: Zhang Wei Cc: Dan Williams Cc: Vinod Koul Cc: Herbert Xu Cc: linuxppc-dev@lists.ozlabs.org Cc: dmaengine@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Luc Van Oostenryck --- drivers/dma/fsldma.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index 56f18ae99233..6f6fa7641fa2 100644 --- a/drivers/dma/fsldma.h +++ b/drivers/dma/fsldma.h @@ -205,7 +205,7 @@ struct fsldma_chan { #else static u64 fsl_ioread64(const u64 __iomem *addr) { - u32 fsl_addr = lower_32_bits(addr); + u32 fsl_addr = (u32) addr; u64 fsl_addr_hi = (u64)in_le32((u32 *)(fsl_addr + 1)) << 32; return fsl_addr_hi | in_le32((u32 *)fsl_addr); @@ -219,7 +219,7 @@ static void fsl_iowrite64(u64 val, u64 __iomem *addr) static u64 fsl_ioread64be(const u64 __iomem *addr) { - u32 fsl_addr = lower_32_bits(addr); + u32 fsl_addr = (u32) addr; u64 fsl_addr_hi = (u64)in_be32((u32 *)fsl_addr) << 32; return fsl_addr_hi | in_be32((u32 *)(fsl_addr + 1)); -- 2.28.0