Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5527196pxb; Mon, 28 Mar 2022 13:45:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOdsYVvDQrjPyXmFd7yYLZUIThfxBYPhzlmGuiarDjdPAxWtKyN088d9N+o92Cnes7xcz/ X-Received: by 2002:a05:622a:11cb:b0:2e1:a301:2d1d with SMTP id n11-20020a05622a11cb00b002e1a3012d1dmr24550121qtk.145.1648500323289; Mon, 28 Mar 2022 13:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648500323; cv=none; d=google.com; s=arc-20160816; b=RiOmO3AgWdm0M5MA7J3JPw5FJRcXMBg51na6QljH6Q1DNA1dVhfvl5j7ODU6xscgGb jLLg2mzlhtGoIPRlQvWwgVHXu4k36rL1oc9kJIPP3qHrtJ7/w//61NKIgme2xth+pYEg Pc4MLw8ZUQJrov+L1V2RNtEkjVgn5KKeE0xxEukRhJ3qPu92dlPsJ4W5aV5cGSVLkohO Cv1HCj3v8YUmmVmlV27gNUHCo5PQJZl5mvpRcGRFNM1VZ9HxaddfDKYId10V28S6IVZS EWc2aBoplMyA+5TAshlMhcwCYJtfN4fHEBplYJJuTwl55zsaobuhpRNeECWJZ7PFaOec WwKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LSGVVstA8xSFKqm3J0T/OWA7Sm6ZWqDMvi1oUYKoUQg=; b=fFh2k1yI6uMcWqUEGcT5UL9gvlq6UGSkRcn1Zi8V1B1fuKFvEM3GQxC/YRD39pd2zx PuqJEREK7qrWE/pnx6vg2ift7vI3tpLOuUUnDgoRSQ5pr6SssxWZXLEfcSxIhUaR+N7t pj5CyAOyufTxbh6JFLFXdbL6oAYvKOzGZn7lq4Ujw4PecScmzg+yCQOXuvBovCej6WRs u5tMhz+IC3c26NMW54H+VJHv5N8MAK1LFXGv8xzLdbbqpWZ9xd46OUabGiEfcJLD/kBg YNTvxhlAIOyojGma7VaffE238avRagFBatJJ1Jy39abz52lbwVlsa721YNbw7w2OMElv jTSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DPV4As0L; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce5-20020a05621403c500b00440f6fb9903si6470994qvb.73.2022.03.28.13.44.51; Mon, 28 Mar 2022 13:45:23 -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=@gmail.com header.s=20210112 header.b=DPV4As0L; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243134AbiC1Lo1 (ORCPT + 99 others); Mon, 28 Mar 2022 07:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241877AbiC1Ldz (ORCPT ); Mon, 28 Mar 2022 07:33:55 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8927158E74 for ; Mon, 28 Mar 2022 04:24:57 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id j15so27915242eje.9 for ; Mon, 28 Mar 2022 04:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LSGVVstA8xSFKqm3J0T/OWA7Sm6ZWqDMvi1oUYKoUQg=; b=DPV4As0LqO6PxUoMkKt+gD4Sp4g81m4Uyo0RMYEz2E3P7pfyvtdXjGrBNZDHBP/UB1 gCFttcV0hthj4q1bL5TNl0zgC1lGn7IRag4nBKsJ8EP2YePrQZ13CN6W5Sfvfp8QF2Sp wELX/+cizZqQx47zB7fGuZ9lFxr9AwmUsxdmwe8MW4eic5SAUeR1O8wHo+TyZ21CIyay q7N3FAUsLSw2T7TAwO/n3REWByJ0KsJHuB6v+wB5DLXByNeI7ARpMC1EcyMes+d0d++3 Az1f4uQBXYfarp3CB4XKNCRn8iHQgyIum6DxyH2giFC9U76PXYn+pGn9yYRL50TSN3s1 2OrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LSGVVstA8xSFKqm3J0T/OWA7Sm6ZWqDMvi1oUYKoUQg=; b=SHp2GaygXk4bIUpB48g+Yk5GxOSKMtTKNsM3WlY7GszUT7QvnhvrzXwQtR/GGjzYqj T1dN19Oov0og+ZPXVlEqUN49l45+zLR6BmuC5LdEyoniSMvVihf4D6QePjA5wJ6n9Chh FTs4lArh+ZcQteZY660O9KfEmIvQ9eyNN+UOZF8UHYV2c0emyWhzWgGbV5cMN5UBD9sw Wn1lBSC6V10nY0bovRXS46DmMkJTZuEdk8XZGSAcPemRiDA1ncI4lOcbsbLQq3FiC8xT 9XsibvH1mcZc0oL8ZTfwARvJxnOzvIp8JbX7nwkgzbb4czK8jNqGopACaXv5AMiTSTko uhig== X-Gm-Message-State: AOAM532y33XvMlD7ClJ4GQdiEfjW5hxXz2my9jcuf+OjWF4gxuJHuWqH FhXGKfkCqmebIwHS6JuqEwg= X-Received: by 2002:a17:907:1623:b0:6df:c9da:a6a8 with SMTP id hb35-20020a170907162300b006dfc9daa6a8mr26762275ejc.303.1648466693755; Mon, 28 Mar 2022 04:24:53 -0700 (PDT) Received: from localhost.localdomain (host-95-249-145-232.retail.telecomitalia.it. [95.249.145.232]) by smtp.gmail.com with ESMTPSA id u10-20020a170906b10a00b006e1004406easm1839730ejy.93.2022.03.28.04.24.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 04:24:52 -0700 (PDT) From: "Fabio M. De Francesco" To: Greg Kroah-Hartman , Benjamin Philip , Bart Van Assche , "Martin K. Petersen" , Charlie Sands , Mitali Borkar , Colin Ian King , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, ira.weiny@intel.com Cc: "Fabio M. De Francesco" Subject: [PATCH] staging: rts5208: Convert kmap() to kmap_local_page() Date: Mon, 28 Mar 2022 13:24:40 +0200 Message-Id: <20220328112440.17756-1-fmdefrancesco@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The use of kmap() is being deprecated and kmap_local_page() is faster. Use kmap_local_page() in place of kmap(). Signed-off-by: Fabio M. De Francesco --- drivers/staging/rts5208/rtsx_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_transport.c b/drivers/staging/rts5208/rtsx_transport.c index 805dc18fac0a..de690d7ee5e3 100644 --- a/drivers/staging/rts5208/rtsx_transport.c +++ b/drivers/staging/rts5208/rtsx_transport.c @@ -92,13 +92,13 @@ unsigned int rtsx_stor_access_xfer_buf(unsigned char *buffer, while (sglen > 0) { unsigned int plen = min(sglen, (unsigned int) PAGE_SIZE - poff); - unsigned char *ptr = kmap(page); + unsigned char *ptr = kmap_local_page(page); if (dir == TO_XFER_BUF) memcpy(ptr + poff, buffer + cnt, plen); else memcpy(buffer + cnt, ptr + poff, plen); - kunmap(page); + kunmap_local(ptr); /* Start at the beginning of the next page */ poff = 0; -- 2.34.1