Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4894340imm; Tue, 9 Oct 2018 06:52:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV60n7SJYcyElXcTFzOZiBMPy5aRMxJ+HxSw8+bKC9QmcnOFVi9uCNicwHN9ImsdNOPI0ZIGk X-Received: by 2002:a63:4a64:: with SMTP id j36-v6mr25721144pgl.168.1539093159506; Tue, 09 Oct 2018 06:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539093159; cv=none; d=google.com; s=arc-20160816; b=ZlVHsRsDEXcIYYuLDqAy9qBuKSQ1JsCzaiQtIMcubA7gsqHwYDOnG1HeqhpW8TkyRQ SkIx8y6QtAuMcyrWD5ut7EixC7zgVUlFkQ+hBugY3UupLPCkp7T3NGWm0aSAiVVkPGde jlzojMd1kW+May7XLsY8uOCvgzweLcYa6XvNx8NB6PEQqPLQOglTK8EB0b1AgriNs1EZ HE4zj96zWNrmH2xki4x/OaHbErHcey/iBhIT1e2yoll4vOm+SZMNgAa/X5auSkC3hKWp D9ci63k2bsazYlv73ErFrKnoD9wuRW9f+e4oaiJmxdHA7dTBuykw2eMYQ6Qm8eYBZ9BL Ns2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id; bh=3mb8kr8MERbuFpD++ZTx7ibk1jOqKIO++RtYI8YLhVo=; b=HYN9TCjhZFGeUiW/l1cf/Ibbjjr2hgGrpoX7AiDSLBEVaV3uB94c/z5XcxjOdiErFj bDFq3q+ys0bbk4Rn294ClK43T9AJuK2KmwidTGC9+w6VINSqz3kxr7FfgEaTnN8PCWc1 8vIs9be0uBf1TvlJN1qRTdwKfDZUiPbiPSou8GnywuTmMPsVpu0RiejY24C3z+ME2Tk7 rAVMWpt70t8/5ZtZEzFWF6CS9nMuqlh5MM5byAxMzqVnzi+EOLeijY4LE+gbVZkoL3GA N+COZ1CbYSfu6/RBGO+aYs/DCqu7bA1ELy1i543vosLM1WlhcdwneuWnDAXXbcwOA1g6 fxPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si20666937pld.48.2018.10.09.06.52.25; Tue, 09 Oct 2018 06:52:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbeJIVIo (ORCPT + 99 others); Tue, 9 Oct 2018 17:08:44 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:38775 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbeJIVIn (ORCPT ); Tue, 9 Oct 2018 17:08:43 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 42TzCy4c6Yz9ttfr; Tue, 9 Oct 2018 15:51:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id AqwK_-tujJbV; Tue, 9 Oct 2018 15:51:26 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 42TzCy44yfz9ttRm; Tue, 9 Oct 2018 15:51:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3E3EF8B80B; Tue, 9 Oct 2018 15:51:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 6BW61C8Pas0t; Tue, 9 Oct 2018 15:51:38 +0200 (CEST) Received: from pc13168vm.idsi0.si.c-s.fr (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EC0F58B80A; Tue, 9 Oct 2018 15:51:37 +0200 (CEST) Received: by pc13168vm.idsi0.si.c-s.fr (Postfix, from userid 0) id D28696F442; Tue, 9 Oct 2018 13:51:37 +0000 (UTC) Message-Id: <0d489a2c917d6e8528fad099023eac3d5a516787.1539092111.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v3 03/24] drivers/block/z2ram: use ioremap_wt() instead of __ioremap(_PAGE_WRITETHRU) To: Bartlomiej Zolnierkiewicz , Benjamin Herrenschmidt , Dominik Brodowski , Geoff Levand , Jens Axboe , Kumar Gala , Li Yang , Michael Ellerman , Nicholas Piggin , Paul Mackerras , Scott Wood , aneesh.kumar@linux.vnet.ibm.com Cc: linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, dri-devel@lists.freedesktop.org Date: Tue, 9 Oct 2018 13:51:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org _PAGE_WRITETHRU is a target specific flag. Prefer generic functions. Acked-by: Geert Uytterhoeven Signed-off-by: Christophe Leroy --- drivers/block/z2ram.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index d0c5bc4e0703..cfbd70520eeb 100644 --- a/drivers/block/z2ram.c +++ b/drivers/block/z2ram.c @@ -190,8 +190,7 @@ static int z2_open(struct block_device *bdev, fmode_t mode) vfree(vmalloc (size)); } - vaddr = (unsigned long) __ioremap (paddr, size, - _PAGE_WRITETHRU); + vaddr = (unsigned long)ioremap_wt(paddr, size); #else vaddr = (unsigned long)z_remap_nocache_nonser(paddr, size); -- 2.13.3