Message ID | 20230503-virt-to-pfn-v6-4-rc1-v3-6-a16c19c03583@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2188352vqo; Tue, 23 May 2023 07:33:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ577hbYMTrgEgINTN6HAJzghAzisWdMKGrZkWjlKzdf6wJgrcAscjBDjlVvZhFrrs5S5Czr X-Received: by 2002:a05:6a00:1596:b0:64c:a554:f577 with SMTP id u22-20020a056a00159600b0064ca554f577mr19364090pfk.11.1684852398928; Tue, 23 May 2023 07:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684852398; cv=none; d=google.com; s=arc-20160816; b=BxNCB8CCSodNOK2Mrylm8M4Ge00oatv2a9Wml+dx7qfrtk5Fh6dzZNBAy/RYWFM9M0 252sioWRVynUnLDjgfQKbBMPWAOVOXRaShssSnFq77N09xNUXQuaWft/NqIPMeYFuvGF GzQ+NOe++/GgJ/MW2Jz/fLs+P56c5AOyEdiEtRUCcDOYanFa0+dFNzWrqEwG2hhHa2oH /p0V4eQaQuZdbKyl/iCY6nxuw9cjyTBQc4KDXQ6Iczrz1cPTjGp5IVfk2RF40WxH3pBN e4U3F1WNOwjQ9qYmBf+0dRixFg1DvQU+bmcuBFRc684FQyVfIkjYb7tlaT0oqHyvd6M6 Y1+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=AahUWbcM1gd1dIKV3ajpbH14PSzhJ7702+mo4mqS4bw=; b=pqXuQKdfQG1+fZNRO7zze6jW5r7YWRmYLvLtk8bBuv/JucazPOJ2bMS6EZQyLFO5a4 SOPofEvo0BRAevxEhPe2qtXmMP911rQi7H+ky0knO+LsAsbrp+WH8x1O/vtxeVkXVeVv Tt3fBMSwb4flk322CBcD7d7HT2A0U7AyCpr1GUDENsJ4picREpjymuuaGg7QV/+Ju9BR B4guBE2R7oUTjwEvtmRmgTQtM8zceoERoQ5UQruT3MkInNimMEy4Ap5KIAJ8UasoIJt1 BPuoMsox4LdbfgxU7gGq5aK/ml3aC5YxXjVqVJauS8ttuAjppyYiD76k4BYzuXy6aJfI +cmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=suXLt6rU; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u70-20020a638549000000b00534878ba944si846526pgd.336.2023.05.23.07.32.42; Tue, 23 May 2023 07:33:18 -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=@linaro.org header.s=google header.b=suXLt6rU; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237059AbjEWOH2 (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Tue, 23 May 2023 10:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237136AbjEWOHN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 23 May 2023 10:07:13 -0400 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E80B0196 for <linux-kernel@vger.kernel.org>; Tue, 23 May 2023 07:06:52 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-4f3b39cea1eso4337222e87.3 for <linux-kernel@vger.kernel.org>; Tue, 23 May 2023 07:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684850751; x=1687442751; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=AahUWbcM1gd1dIKV3ajpbH14PSzhJ7702+mo4mqS4bw=; b=suXLt6rUWNL44vDNr6SS/EymOZ59hQEEGR2ZTXjDAx/AQp8nmKRLdaV2gUtIwvhf1t K/tAq8Z9ZeMTJQOstwd3dQeZhusrHSkrzN26dMfjKZk7yFZpGGO12BPMNBl2tvDMBfau g1zZ2x6JYoE8G1O6v87j/M1aKi8OQ0BwKQlzHWXj2LMSLUmsooYNVOxWag2uMhjdMbMO cWdFAnbyaQzYQHH2jmdzSe8LmY7bWDBbmxV219wusGP7c6T2/7oOh6ZhoSHiNVm9tLUm nypNbf4j0yWVIS8C0Jk1OKF5sOw3pb2FjFioOqx47SpRH6sLccmqgHJKbm5qp2ED/llI S7Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684850751; x=1687442751; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AahUWbcM1gd1dIKV3ajpbH14PSzhJ7702+mo4mqS4bw=; b=LYXtzNQ+FbDmLZU1vht6+AwGZKaRK1heLdyWaYvlDuBtb4C8TgCEwPKIgmgW8c3b5s YLPuIyxkwYx2ivuFQOUYdA4lz/1qufuCQ9gfODu9IvAXM8jrHgUgrRQK35wXgYxq1JOp sgZ2nwI2FJNz///CEyNj3ujqV5MCJi082KZcJitoZNI2dQSx05lW88INjLxQy7CDSFGz 5hvlP4TVUYVL8C/0UeAkOuKf6W4ubG79o0WuJrHa1RyJrA/bPbQI/AROYOYKsUWsq3lp uoeoL6zJOj4L96J+8OU5W9DpXd4tBcwvimXdww3diV8kVQNEce9nAYTpKjd+RIb9VSVS eZ1w== X-Gm-Message-State: AC+VfDyeZOxjztngAnzxCgZLNeqycoYQnLP73GXbmAiQ6hVGawsUsizy P33JryBJvA+1xtDyrlvFds3KJw== X-Received: by 2002:a05:6512:908:b0:4ef:f11c:f5b0 with SMTP id e8-20020a056512090800b004eff11cf5b0mr4377803lft.54.1684850751226; Tue, 23 May 2023 07:05:51 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id h28-20020ac2597c000000b004e9bf853c27sm1346562lfp.70.2023.05.23.07.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 07:05:50 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Tue, 23 May 2023 16:05:30 +0200 Subject: [PATCH v3 06/12] cifs: Pass a pointer to virt_to_page() in cifsglob MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230503-virt-to-pfn-v6-4-rc1-v3-6-a16c19c03583@linaro.org> References: <20230503-virt-to-pfn-v6-4-rc1-v3-0-a16c19c03583@linaro.org> In-Reply-To: <20230503-virt-to-pfn-v6-4-rc1-v3-0-a16c19c03583@linaro.org> To: Andrew Morton <akpm@linux-foundation.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Vineet Gupta <vgupta@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Russell King <linux@armlinux.org.uk>, Greg Ungerer <gerg@linux-m68k.org> Cc: linux-mm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-snps-arc@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Tom Talpey <tom@talpey.com> X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766695789191563500?= X-GMAIL-MSGID: =?utf-8?q?1766695789191563500?= |
Series |
arch: Make virt_to_pfn into a static inline
|
|
Commit Message
Linus Walleij
May 23, 2023, 2:05 p.m. UTC
Like the other calls in this function virt_to_page() expects a pointer, not an integer. However since many architectures implement virt_to_pfn() as a macro, this function becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix this up with an explicit cast. Acked-by: Tom Talpey <tom@talpey.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- fs/cifs/cifsglob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 414685c5d530..3d29a4bbbc40 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -2218,7 +2218,7 @@ static inline void cifs_sg_set_buf(struct sg_table *sgtable, } while (buflen); } else { sg_set_page(&sgtable->sgl[sgtable->nents++], - virt_to_page(addr), buflen, off); + virt_to_page((void *)addr), buflen, off); } }