Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11855436rwd; Thu, 22 Jun 2023 20:40:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Frj4p5Eb/1izdxiS/LYhQEFe/rvxfdFYcTP/qaQIS0iLI4m9zvTDOF42djH0qW9s1nLlE X-Received: by 2002:a05:620a:4881:b0:75d:5534:865d with SMTP id ea1-20020a05620a488100b0075d5534865dmr14188951qkb.60.1687491656995; Thu, 22 Jun 2023 20:40:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687491656; cv=pass; d=google.com; s=arc-20160816; b=rvz3xrXhEUDEWJmw8EXfTSqK5UwTjL2IBNocjD6pIXgYnqHmDVBuS/38jlS/Lo+1hd bpaKajRUlL9jjs6nvksSgcwktujcmQdoG0DgKBCv1hQ/PdteR3xxTPk0DjbievHFMQhA 5a3X+CcgG8SMYVnj6R9ecNzXMa/jgmaG6vQqk87jnK2zRZDlYlHWMmRqqbz+bsCQ4SLl u10cMmbo3bp5Nrp5GO8ZmaABt8CMyP2xUhqF/OtyS/4UeyQ35amJf9L5CaXbexW+pXoA upmWNJUYEat7K6ObnubCOSuMkSox99ddm/4O22+i2Vk9aByKNfDhJLsFlJR4R7mfYvNe Xwlg== 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 :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from :dkim-signature; bh=9qEbFOTZU0PHzTv2fXpFgAjXXGC1kdT627K4mQnGP2o=; b=NHWhQVz+S0zAfFqc+TRUTDZy7P+Rn5Oqoww3KDBZdyHp3Hjh74onR6ahf6kRjhwQYN vjPLchmNTLmxgcFc6QMDaOsAGdC1LH+cl35+ZgHqrYBYbj1tE3sv6d5ltX4QxI09c20W mdboetxYJZ46kPAlt/xyAOsS25nxTQsh0+yIVVt1B+04LPGAil09d/aAXOgzGQA387cT WEL5qWx+ULNWPO9PRIaggnglaxQWNnin3yY4UpVYuDoyPhMLfUtpqovx2NUoOoPut29O fdOvZEHDwZVeiEXfV0BbfcNHlI8onymBeDb4NKbDNWWu+jgorkIjzs1AESZ4aE93nwjb AyDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=CSQRVWqR; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j137-20020a636e8f000000b0053578f3de77si5528119pgc.239.2023.06.22.20.40.41; Thu, 22 Jun 2023 20:40:56 -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=@microsoft.com header.s=selector2 header.b=CSQRVWqR; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231484AbjFWDJm (ORCPT + 99 others); Thu, 22 Jun 2023 23:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjFWDJk (ORCPT ); Thu, 22 Jun 2023 23:09:40 -0400 Received: from BN3PR00CU001.outbound.protection.outlook.com (mail-eastus2azon11020016.outbound.protection.outlook.com [52.101.56.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09C87DD; Thu, 22 Jun 2023 20:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SNiNeX3mFgpWB66sZdsCZEO0bLovPzQqW0YrIVH0ujUMd47/Czr/orCQPmwEZc0YRZjARw4Lb8kwClaNmowSaoxmbcgAoslbfP3dadyEvfDMYTDyDk8Rdv0IdfRmm6pn/ayVc4XQ1Lfx9B3ZOOL4E9lCIJrx6ptw4kjIzFXCNb9y/pEGYL44WJxzbBwgp5gjpI+ZScP7nRepkM71ZA96jkTxwVqxlQVGYxfgEs+9YBdlVzv2E5xZtm8pHNHrZ1anmmAGw/FxiexEuyDjn7mUsNfj4Lq35tVagHn+ClcPXVdOvIJGkhHuvAwTPTLl0xN74i1pjprOL/x2PSuWZ/DBkA== 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=9qEbFOTZU0PHzTv2fXpFgAjXXGC1kdT627K4mQnGP2o=; b=oICHQFEpVnF0dDLF80YhRIO8Gjsh4oHrMcWk4uJvLHIpGPvjE6CUcO0r1OPeuNU6tOoLdjzzLJeK5eLQe3434gyMNyP6G0lIOtbbSk0uBXw0ug7d2dNLp0P/H7T4/ORxmwUw/X+bssKK0rfgAbs587qMoM+qXC47gPPzWb6JGhFbzadGDfDfGEBjz8Tqz6V898jCVF6iCVbVrhkJhUnlAb5Elg856M04Phr1kbZQuY1Nd6a4NOgjH1QNSvlYsKv5COoqVTdfY40YH9h9TplZrsszTxip8HzJb6x7wchPjsL/WSec/xiV7neBCRg4ZSAOTAsQkVeNN+SNSsBrlQcz0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9qEbFOTZU0PHzTv2fXpFgAjXXGC1kdT627K4mQnGP2o=; b=CSQRVWqRv6dmz02qjz9gY9l2VrR3QKO1FTGN/QT3707/51FzEf2Z+t3pm3uxQVduK88DUh9QUWBIYh8WYWd+uWENhZpyRMeDXPxWOmR3N5fGDKmwkQaKdqI4gmqBXPuytUG6s0jjLS2GhojMQQp8x+KLHHeuBUvwPx16qNf2Dwg= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by IA1PR21MB3568.namprd21.prod.outlook.com (2603:10b6:208:3e3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.5; Fri, 23 Jun 2023 03:09:36 +0000 Received: from SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::bb03:96fc:3397:6022]) by SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::bb03:96fc:3397:6022%4]) with mapi id 15.20.6544.008; Fri, 23 Jun 2023 03:09:36 +0000 From: Dexuan Cui To: Kameron Carr , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , "arnd@arndb.de" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" Subject: RE: [PATCH] Drivers: hv: Change hv_free_hyperv_page() to take void * argument Thread-Topic: [PATCH] Drivers: hv: Change hv_free_hyperv_page() to take void * argument Thread-Index: AQHZpUUszoID3MmaN0KNSemCrLlP5q+XtSww Date: Fri, 23 Jun 2023 03:09:35 +0000 Message-ID: References: <1687464427-4722-1-git-send-email-kameroncarr@linux.microsoft.com> In-Reply-To: <1687464427-4722-1-git-send-email-kameroncarr@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=ddaf82f9-f27b-458d-8286-d2f94d655212;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-06-23T03:07:34Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA1PR21MB1335:EE_|IA1PR21MB3568:EE_ x-ms-office365-filtering-correlation-id: 8b6c6284-6055-416c-73d8-08db7397464f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uFlQ5/nkV7Zx4gS3IzqnPUwcugPD4A27j0AugMmcrmJgIV9lsnNIw7+hjEGFolYlTcSjsun1JPx4nlK5M9iPsrUOI9ppRy4YGXaa1U32j6uFHetXvaCZad8/+Bdc9MoCsmYzXrLfsllS0LGSkeBUQYccWli5B2pJVbXwRiI73E+Y32OtYIYPoXaZlt+K/1PW1bjy8pZzXfTjkF/66xEFV1RyY6HFxFpP5NOoUyN9wCfGqZ5G5BkXzLXqEZGfXN3yp/exmsnnGR5NYr//rWobhpTCerNsAe6BVm/H3WWtmaGxlpGkMTRSQFDHa46bF73Bs3LWZBjpnd/8gmZbPuzBzaM3QhBdSIhzlwUer1Zxgg2REQdMeMNWRy3M2upywMecnmSTzViPqC9NEYDswz+XhzOT5S+liQs3xql8cPsW3V+wjDr91wps9azkiPRHw0I1LG+O7Q1vaY/kPs+WTdhVnSabEFYzNh82x1FYZRqPNhIFXONxoe/RaP0Rsg1LGDIEk7EL9DY7a6ELw90YIukPyfQr+CH+UEpBmiaYUkUB8cFT/BWZ013kDLQhP9CfxsIilifS6sBb5/iM3bRjr6MpMCpxokbn3m5Smv0K86XXK+uxJCO3m9EKwJA0Rz5AFGHZlExrngIDIIiz/UEoS+pRYnHJ+FnZFNdTkFf+bcO98TU= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(366004)(376002)(346002)(451199021)(6506007)(7696005)(2906002)(4744005)(9686003)(8990500004)(66446008)(55016003)(86362001)(38070700005)(66476007)(66556008)(64756008)(66946007)(76116006)(316002)(10290500003)(41300700001)(186003)(122000001)(8936002)(38100700002)(71200400001)(33656002)(82960400001)(82950400001)(478600001)(110136005)(5660300002)(8676002)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?c2fcjbr+6R+cuJEyCbnoXXdfBtihjwQcOmvUHh3UOeRJ9mK4HaR/29KJaVTz?= =?us-ascii?Q?VuwVogfvz8ZYXoKFwCwGxwEGM7LZGUpW+61s2O1ojq63L+aFC2xjzG+aTyGD?= =?us-ascii?Q?7zDfliwqDCEU7usLw3YfhLbCgm9RdVa5tZGyKe/nSNQwwwHeX5Wx0/epRtR/?= =?us-ascii?Q?Op0pyvWeuDweuSOgFJij7UwgvJiU6vJ552KgraO9qkjydpExan/GERjWzn5E?= =?us-ascii?Q?DWodl198plXl0ULr1zKzj+Y4ur6UoURZTgQxvIaKBqVRaeaER9WoQ1e9zv9f?= =?us-ascii?Q?JUQDjtHm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fXVOs+Om?= =?us-ascii?Q?Me4s2ptjG+HzHhPVQAep+iPgSUHl2IxrqylHVzz3oSvyNC3dSAA2Kf6xxMsD?= =?us-ascii?Q?hT6I/ClSpjumR2LjO00+nTV9J4hgUhgAirCVunV9wu9RD331av8Jjhu9CbxP?= =?us-ascii?Q?zw+NJSewQwLT6cO25o2EBU3h83aoLqrWRH36tEOREw65uVbjNTKxDwS7hRRy?= =?us-ascii?Q?yvIedRMuX4A6yILF8UvK9thDtvTH4qZADj6Ntp8xHJYTXUlH63qK9Y+n4Hmh?= =?us-ascii?Q?O3lr036IqFLy0hq63dQ+P1dNNlq42WU6D5KaBLvQL3HOsytZVHMkddzC2ZDa?= =?us-ascii?Q?JJgn8KNLNPDK4HWP5pVJ0P6kj9+VnE4o1NJBdV8JEVnWQADAzNgm+PLrSc05?= =?us-ascii?Q?qdQ2iU+UnCBMQD6Kt65+OJsfJ3HMH1xnX2UHvq3+5tIWa8NGx9qNFryeseGO?= =?us-ascii?Q?rH3sCMEpRG1y1TVXXz23lng=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR21MB1335.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b6c6284-6055-416c-73d8-08db7397464f X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2023 03:09:35.9626 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7Tyg+1Lp5kkOTMBuScLGPOfVkaotXQYFyWu/zdhiyv5IjcrBSG3dZoGKcu4T0nSL4Nz1QxO5zk/0NSq9egthig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR21MB3568 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 > From: Kameron Carr > Sent: Thursday, June 22, 2023 1:07 PM > ... > Currently hv_free_hyperv_page() takes an unsigned long argument, which > is inconsistent with the void * return value from the corresponding > hv_alloc_hyperv_page() function and variants. This creates unnecessary > extra casting. >=20 > Change the hv_free_hyperv_page() argument type to void *. > Also remove redundant casts from invocations of > hv_alloc_hyperv_page() and variants. > --- Hi Kameron, you forgot to add your Signed-off-by :-) Otherwise, it looks good to me. Reviewed-by: Dexuan Cui