Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2201998rwd; Wed, 17 May 2023 07:07:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7g2bcsC3rUht4W1wByHElT23fEQ50ZVge4SflJrmt89hSPlXb58Ha463npRe9ME3R1DpSI X-Received: by 2002:a05:6a20:12d0:b0:102:f744:a708 with SMTP id v16-20020a056a2012d000b00102f744a708mr33004880pzg.35.1684332453607; Wed, 17 May 2023 07:07:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684332453; cv=pass; d=google.com; s=arc-20160816; b=ZHoxcs9roWNWqiXHTkMpF3EvlBx3pCTD97mHmXPjnVdLmOySwoLkwJYMDPvfVlTUGm jyHgwTFbnn1Kqpyc+UbB/uKsCwRykr752Pd4gLs1t1DUKJoISvFC31uVw36ZjnUGQPrd Pkm9H8hhVTiEQ5cUpqtdAHaz26hay4HsJ7H6fkWyCvesg4/mz2rHKOD2GlVUaIJ0pdGQ qtWoC+nKfByG8mRaX8VYVY/gvK11gzLmv0WaCXA/6PWRbPrQlV2a4t24duCz4Q2DN6nk LFejGvsYe9PwgKo8PVUIkBsxt96KuQx5MdKtSV26NqxgAwFF/AyaXIdWTQTi+954Ytg9 OVkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id; bh=B0R5HnpCLdsb/78pwozWuz39kXCHHNrRHJlfIFqRfzA=; b=0XubvbSMQIqlgIX9ruiyE/3mgccUzXOKe4WidqPn6YBSTeo3+FP54kCVAvHhlqlT3t 1/1x0VKifN2AxtEyW9mgwt4LOYdobdkUxO+SKh8eyCT6FlrCNfoVWCa9APT6wCdISB+G +UPcgy8B684qZca0n/G3yaRji+iEVSJ4Z9QKx6aoRUj+kXJXj7oYKrkIW6ExVzGPEqJ3 mE63/HqXiSvPREPXqExLou+8pV+r8IoLZldGsFiWSO90jNo6zqcK0Uvv1rpPxS9ycvS8 kcR7AgzlFZ0FaY/OzILh/MVUhUuvv+iP15SHYFFWL9IZ0prbcJat9GgD53iVTqxqNY8C Q6FQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=talpey.com dkim=pass dkdomain=talpey.com dmarc=pass fromdomain=talpey.com); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020aa78e8f000000b00643aa8d2548si21856809pfr.120.2023.05.17.07.07.12; Wed, 17 May 2023 07:07:33 -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; arc=pass (i=1 spf=pass spfdomain=talpey.com dkim=pass dkdomain=talpey.com dmarc=pass fromdomain=talpey.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231516AbjEQOBY (ORCPT + 99 others); Wed, 17 May 2023 10:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbjEQOBJ (ORCPT ); Wed, 17 May 2023 10:01:09 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2082.outbound.protection.outlook.com [40.107.212.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB975FEB; Wed, 17 May 2023 07:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jk45MmP4D2BU61Wh0OSF3fWaodm8ntUO8rAa3w2a/UE6TdolrDoh6F8L9VVMIxQbG3/GTViPzN8r4dmD1OTXloB0q77A+F1b7/l92c+wmcqb5xgglfUid+xEmkrTyguCjbEShMzRiKVL3lkcEg5K+VLAiDOiy55Y2cyOQvI/Eb4IAMZODysWYz1uAk0muDnrpFQUGkF5cvvxI9Tlr5Rlwpl7wQFzou267YD6DEAO6wLFCtVx2xvNALzN+HbcsOvhjgl847u6/whewgP3BhLrgZsBf63F1vYA7Bfhb009LcrWkpNCWaQNO5r6buxko7Z5XQXEwUdveVr9Sl9c8bz6dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=B0R5HnpCLdsb/78pwozWuz39kXCHHNrRHJlfIFqRfzA=; b=CY5ghDH0PO99jjKhAEoqyxLE0k/sn/lPW8r4vobfBYZWoa9Ayh/ROXSBu2oYTVDq83emeg63C53eL/y6nC15DAJS6QxJJvBJu1/3WkkiBj4hODepnVqn+rURP27MGDsiflVnmDcJ73JrqLZpd5IIzo10lXlWhPRaBM0dZh6OBMD/Ji3uvnBJVIgLo/rkZxQGQsAy9eIDinyx9Bus1p9pkEX+Jbnx5Vr1+O776WeU7aBThhKFdypv4y06IZxadGqlMXLNojscm0xFzfmU/qbLzSb41oU+STqSwg3oiy499/40k7TuEx3anNVptkmaOt6S6+trUEj/G1rDXcBYPhV/FA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=talpey.com; dmarc=pass action=none header.from=talpey.com; dkim=pass header.d=talpey.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=talpey.com; Received: from SN6PR01MB4445.prod.exchangelabs.com (2603:10b6:805:e2::33) by BN7PR01MB3794.prod.exchangelabs.com (2603:10b6:406:81::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.33; Wed, 17 May 2023 14:01:07 +0000 Received: from SN6PR01MB4445.prod.exchangelabs.com ([fe80::ef26:464c:ccdf:ee6b]) by SN6PR01MB4445.prod.exchangelabs.com ([fe80::ef26:464c:ccdf:ee6b%6]) with mapi id 15.20.6387.029; Wed, 17 May 2023 14:01:07 +0000 Message-ID: Date: Wed, 17 May 2023 10:01:04 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 06/12] cifs: Pass a pointer to virt_to_page() in cifsglob Content-Language: en-US To: Linus Walleij , Geert Uytterhoeven , Vineet Gupta , Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Greg Ungerer Cc: 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, samba-technical@lists.samba.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org References: <20230503-virt-to-pfn-v6-4-rc1-v1-0-6c4698dcf9c8@linaro.org> <20230503-virt-to-pfn-v6-4-rc1-v1-6-6c4698dcf9c8@linaro.org> From: Tom Talpey In-Reply-To: <20230503-virt-to-pfn-v6-4-rc1-v1-6-6c4698dcf9c8@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL1P223CA0006.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::11) To SN6PR01MB4445.prod.exchangelabs.com (2603:10b6:805:e2::33) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR01MB4445:EE_|BN7PR01MB3794:EE_ X-MS-Office365-Filtering-Correlation-Id: 1966ef6f-3422-49e4-2146-08db56df2926 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LKhPNI3e+QpI7sZ0ui7e0hMC4cdKEcitEqtSzBW9RqDCcyahm6JFnXRvY7faBDQ5Ms5y0SNPmkXdMC75fQNayXHtTqE/5+sFL9Sy+yjmanXDTOFROujqPvDLu+QdTfixaO/UBgLK7ysBhnt2yJJ3QG7ob24upXbi0uCqbQMIx+TPg0hC/OyDG1sTQy9dMQyHt5D+9ItNCpANhCEgjCJl8ZOIS/2aOG6n/14VQZm6608rQCpPZI8ddkzO83Xsn38LEyS+vLF3K73OwJJzQelFKDqwDz+wm8zAhq75FMiHm2Bx+muLlGGcGY/4dTfL5HHLM8vqzAI1YT2eq+fhkUTtxiJEJ0ujyKfgAtKzzu7qLcyzhP152EUcVy/18bn83Uh+VkMz0ZrCPVFFM3EEEBZhK0VqLJI/iH0FbaIZKDtFLUETHyO5Us4hLhRApnoqMJDt6JBd9g8uxrxvUBcB7w3wcU5vd30F5Y3F8jgQYocK8vysa5YklZmlezpHqx2cr51mvXHbE4qK6yBeENbNQJjFuQ26XhYTMb+p055UB558vYDHtcjzTtW0MoHc2JRHyxUNZQHUoSCAt2G5LvANVDG9aHhJMTzUzjvBtkt9esRKShOO2RpUx+xz1GxVFQrN9EDjyjWIrs8RXtPpNaMbZ1CMdA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR01MB4445.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(376002)(396003)(136003)(366004)(39830400003)(451199021)(5660300002)(8676002)(8936002)(7416002)(2616005)(186003)(6506007)(83380400001)(6512007)(53546011)(26005)(38100700002)(38350700002)(52116002)(478600001)(31696002)(6666004)(110136005)(316002)(6486002)(66476007)(66556008)(41300700001)(66946007)(86362001)(36756003)(4326008)(2906002)(4744005)(31686004)(43740500002);DIR:OUT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0ZzJQaEs1TGlRelp1enY5a3ZNRC9B?= =?utf-8?B?NXVIYzUrRTgyNTRwdDhNSmdZVnFwU1FRMVJmd0ZGR2hGdU1wUEpHdXEzSjAr?= =?utf-8?B?dzRaYStpNXJ6YWJEZVExY2FvdENUcXArQTdiMHJBREFDNHNYSTRneW00cG9L?= =?utf-8?B?S0lvcGpicTlpZ2NaaUh0SUc1ZFhrWUFtWGxHald1U09menRPL3luVC9uRytR?= =?utf-8?B?blFVRlZjN0pJRXRlcWxVVTV2T0l0WG0wc05USUNoMmhORmZaKzVxMUNEZkNv?= =?utf-8?B?V3V0b1BSMVdOMnphUnFPMWl1cVFpYkoyYWNQREhDL1lLcVU5cmVVTlV6SVYw?= =?utf-8?B?MHdtQTZ5ekFOc1JKbzhuNG1ETFVSYThBeGdvbWdJMTRidUYwTnlZbys5YTRQ?= =?utf-8?Q?27qoJ/xFefoZTgyFxSv3pKhis?= X-OriginatorOrg: talpey.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1966ef6f-3422-49e4-2146-08db56df2926 X-MS-Exchange-CrossTenant-AuthSource: SN6PR01MB4445.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2023 14:01:07.2578 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2b2dcae7-2555-4add-bc80-48756da031d5 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DstVk89vSlDEmosLCcRivC/WkwdUgfAvpfm3CORTspDeG0t8KZC7NKjQUXLLFY2H X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR01MB3794 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 On 5/11/2023 7:59 AM, Linus Walleij wrote: > 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. > > Signed-off-by: Linus Walleij For fs/cifs: Acked-by: Tom Talpey > --- > 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); > } > } > >