Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp604096pxb; Fri, 13 Aug 2021 02:08:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Waf0tZMkA/n8TdovTV9JqnWtGiKQVikD6XeKUye8vyGIbwhSbDMjFsiYzIMTUmjc4vgM X-Received: by 2002:aa7:d946:: with SMTP id l6mr1767009eds.81.1628845712783; Fri, 13 Aug 2021 02:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628845712; cv=none; d=google.com; s=arc-20160816; b=HXkjCSbMAB63sVCTY8RtNn3tZE6TGV+ge+67WCqpH7l1rb9Epf0gWMEVNNLIppfStm +3KgdqrCU9M6icmT4//xFZ6KZQOuj2URWDIc6iYu67/6t3k1/JFRqw9KRijSgqkkKt4w zSxjYvfJECKnD9by4DjoFHeIvxIKKq81vg1LcUASdOQ9r5KJ39cjb2f7PeLcUZPBoTan FW0ShdT9NKthF8P0vqQ8SDmBjWHdNmZvF3rxfYpxaMipTHc/0Tkjt3oXrEfGWhMl1EEU 0sqOe5BhxxU4gZ5e+rrFoXYOMQojq4nyyVMZWQJJ1oPpuELgrk/gmS1fCSRdFnLZ/ht+ rMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=DRHA7FV+1HD22497YbKJx2RWhBLiEFB6LsUH5J10vtw=; b=Sxe6feEw2HbI0dVe4yen6EU7jiVOP9POqVePVdRVewNvKdV4TV9dAQ49QKUXD93ZQ7 vzg9lUm6alpEih3bVHPAHYnsJncDzjflnjlosrPwGHySfjqxYBHf3gqH/EkzKLiObQiS mb3/TZqGL4KWFO8tYWmTFud10TPT3eLYRpe5sUf0r5EkBMNlHeihW3Gs5qe7ard30dMn hCcYqbgrx1YIXIv3xgyHjBc6uNplDjj1/tIkv8BhZZvyrWUFop1oADm4ANPF4bmCSjCJ +NxpjRRFkYkEPxm0yhJHFfgBhW2EV9DSGA0dt51QdRpFMQlDOzZYk9/td+Q/IAu3t+0Q gjsw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si1016048ejv.457.2021.08.13.02.08.08; Fri, 13 Aug 2021 02:08:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239570AbhHMIzP (ORCPT + 99 others); Fri, 13 Aug 2021 04:55:15 -0400 Received: from smtpbg703.qq.com ([203.205.195.89]:59088 "EHLO smtpproxy21.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239291AbhHMIzP (ORCPT ); Fri, 13 Aug 2021 04:55:15 -0400 X-QQ-mid: bizesmtp33t1628844876tafoo5ml Received: from localhost.localdomain (unknown [124.126.19.250]) by esmtp6.qq.com (ESMTP) with id ; Fri, 13 Aug 2021 16:54:35 +0800 (CST) X-QQ-SSF: 0140000000200030C000B00A0000000 X-QQ-FEAT: nNpKvUcGwyjmNbUJ032IhxCMQOvkHqQz0wNxgj0c/GfvsTd0Rb4+LyrYZFTkR QF/YhqG0dTQDXAo1sOK8GbpZU+H+qmNvhm2yl7oP12+1QMs/MRojc6XVm/E6BpIOHDnNICq L5++Sk2yRLHHfBYHm7Ahp747iHft4EMr80DNv6tmnfbx3QAkAQzcnes40Vq3AAxs1MNq2Cn 3lD405IMyFUmJ1PpbTBVplyllX1DKefHaVJZr2ctR3M7s3nxNjEsLUUOyg6CqzEY3jJhs5Q d2AEK/sDL8EN8aUJcxAxucnIcZkGsFQFOneltgGSccCNcnspuYPorJdbVU0Kypnho09oOAX LF5I5aYW/DzvW+NLg/zEQIQv3qScA== X-QQ-GoodBg: 2 From: zhaoxiao To: airlied@linux.ie Cc: alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, zhaoxiao Subject: [PATCH] drm: radeon: r600_dma: Replace cpu_to_le32() by lower_32_bits() Date: Fri, 13 Aug 2021 16:54:34 +0800 Message-Id: <20210813085434.3890-1-zhaoxiao@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following sparse errors: drivers/gpu/drm/radeon/r600_dma.c:247:30: warning: incorrect type in assignment (different base types) drivers/gpu/drm/radeon/r600_dma.c:247:30: expected unsigned int volatile [usertype] drivers/gpu/drm/radeon/r600_dma.c:247:30: got restricted __le32 [usertype] Signed-off-by: zhaoxiao --- drivers/gpu/drm/radeon/r600_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/r600_dma.c b/drivers/gpu/drm/radeon/r600_dma.c index fb65e6fb5c4f..a2d0b1edcd22 100644 --- a/drivers/gpu/drm/radeon/r600_dma.c +++ b/drivers/gpu/drm/radeon/r600_dma.c @@ -244,7 +244,7 @@ int r600_dma_ring_test(struct radeon_device *rdev, gpu_addr = rdev->wb.gpu_addr + index; tmp = 0xCAFEDEAD; - rdev->wb.wb[index/4] = cpu_to_le32(tmp); + rdev->wb.wb[index/4] = lower_32_bits(tmp); r = radeon_ring_lock(rdev, ring, 4); if (r) { -- 2.20.1