Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1072361pxb; Wed, 6 Apr 2022 08:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL5s7Et1ldS4lj5LZN5OLQnep5SS1lWbTjYuSs83WjJauFpThGqTv4u+W/qHPyQl08MCYB X-Received: by 2002:a17:902:b10f:b0:156:612f:318d with SMTP id q15-20020a170902b10f00b00156612f318dmr8985129plr.143.1649257517489; Wed, 06 Apr 2022 08:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649257517; cv=none; d=google.com; s=arc-20160816; b=keySXd6XngDobJ+VKolhLEWUJvGnSGOcF6yzNbmPujH/r4Typ6Ps5F5HbYWtg4M/Ol QPACP5ky7A03apMqE+NOwFzJsBbiNPdSZx4DyCbz9IATfD1+t9QDdq1C9btK833JrRRR mZdJRWYdUSeEYaspBUCglAdGSktrKIJcgHqzNm17Gy+w6FuZNI6QTPm412Dj3W2iXacy l+TlDLDL9WKxkbrXi1I5yesJzvcnBAyky1XtkEZvGQhMLArqPo7vo+2NJ+Q9c1eAkuAL fD4/zx9RVEvKGLFHr3q1cSh87w/E60vCgX5FySPNA62Y3R4zDvR+28IaJYMJI0u/rX5+ yjKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=G/Z+mrdrpkbmwB7Ju6end6mVHMAHeeCd2LR1dpP3gbg=; b=UPpM2RusQyMR+isRjU2OjPCsmvJ8ZTWL2HctuIri9lglQiUqIWjhAsFpDOIvEnSrMJ hO8k/pNx+A+lfTseN696fkzvGm/zIHJpA7LlxhM11twBUJ5+jNH7qwFyVNWP0ten76BZ ektGDVmQ/tn/cec5up9ha65jzmPVVD/QnCj01endPO0VARR28ekzLRdJ46A5E64JNBqk QwzQjErXcwLFZ+w1N4rbCtdBogv67w5CT1MlRwoAQhvMv3fBQfATiAo75Nf21V6pQ1Bx 9F5236hAzwQ9VchE//tgat06wlSH1kSRdXPo/+A09JxXha9v59P/yAManWXwACIBv3AT 0zlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q21-20020a62e115000000b004fa93c1118esi14512408pfh.173.2022.04.06.08.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:05:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 638CC2EEF69; Wed, 6 Apr 2022 05:51:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbiDFMwO (ORCPT + 99 others); Wed, 6 Apr 2022 08:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiDFMvz (ORCPT ); Wed, 6 Apr 2022 08:51:55 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1698E275E9 for ; Wed, 6 Apr 2022 01:54:29 -0700 (PDT) Received: from kwepemi100008.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KYJDq2CS4zgYLQ; Wed, 6 Apr 2022 16:52:43 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemi100008.china.huawei.com (7.221.188.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Apr 2022 16:54:27 +0800 Received: from localhost.localdomain (10.175.112.125) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 6 Apr 2022 16:54:26 +0800 From: Tong Tiangen To: Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Catalin Marinas , Will Deacon , Alexander Viro , , "H. Peter Anvin" CC: , , , Tong Tiangen Subject: [RFC PATCH -next V2 2/7] arm64: fix page_address return value in copy_highpage Date: Wed, 6 Apr 2022 09:13:06 +0000 Message-ID: <20220406091311.3354723-3-tongtiangen@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 In-Reply-To: <20220406091311.3354723-1-tongtiangen@huawei.com> References: <20220406091311.3354723-1-tongtiangen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, 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 Function page_address return void, fix it. Signed-off-by: Tong Tiangen --- arch/arm64/mm/copypage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/mm/copypage.c b/arch/arm64/mm/copypage.c index b5447e53cd73..0dea80bf6de4 100644 --- a/arch/arm64/mm/copypage.c +++ b/arch/arm64/mm/copypage.c @@ -16,8 +16,8 @@ void copy_highpage(struct page *to, struct page *from) { - struct page *kto = page_address(to); - struct page *kfrom = page_address(from); + void *kto = page_address(to); + void *kfrom = page_address(from); copy_page(kto, kfrom); -- 2.18.0.huawei.25