Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1442250rwi; Wed, 19 Oct 2022 10:36:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4dAWr2HpwosxXyPNUOjeWTnSvnBx2VLCFW+mw7JRTo/+v1HM6gTnXYhnBFKXzFn9Yl4uPX X-Received: by 2002:aa7:ca45:0:b0:458:d9a2:6164 with SMTP id j5-20020aa7ca45000000b00458d9a26164mr8698479edt.340.1666200963597; Wed, 19 Oct 2022 10:36:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666200963; cv=pass; d=google.com; s=arc-20160816; b=yCjbvuB5WN8xejT4uV+86T+rZ8Whi5PsVYOh1C6PPTgv5uyj2iXj6O4S9lZ8N0rqlK oxL61mKkDH1DzcQEo86uT0gKaCBomocTxq1vR3ZyClfe+BxW9WDw4ixf7XM0F2jfEQQt mNlNHfLfCFCOHIh8Q9mAXHkVQ7Ii3KtdvHvMbS1bndaEztETt8onoEESzWd8Qg4Pr+XN GLoDG+QRfmpD8Hu3MSiYh+Y3gpG8B17mJm8nlewZ1Qaawj1F3E3k5PyrciQOXDr+idiL mBoYHTAZC60UbMeOrtxZQcl8vz6UZ+tDhDvxYQfxl5rHKTbar1QkyVIOr/tdj7xWYnfZ b4vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=moa5J+x8ZOwrrGnqC65CPwi0xigEEJOaQhiVe8YwbGs=; b=oqyrIXJDeOtmgSKBBsQoGDkiiMo17rmNWBxgdBqPD1cfuN/bf0MC9D+kH9J7UdIrl5 xzg2A0cQYjLbzLd1qxCoNzzybbTdW7+0aZZUAe4cmTdPOlo5jNWw+OqhipEkAn5RzmWX ECvYraoyT5zAW0nb2iqxjuHp1yayrWEWYJ89qe5N0A7T4ULjapHZjsw1HTZ5ZmWZGXu8 EbYbVkwZu6m7QUj1sblgkI1Xae7WGS/f3LIN36COS6YgWv1so07pebaOmMGIgJHOXlR/ hfnPjN4zZPJtqWtRoQ7vA19ky/BK6w21guj6x+IwkSWTk3e2poV+R4owNHyErmW+M083 TJbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=StcR7+ve; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a50c003000000b0045d4f99616dsi11459061edb.456.2022.10.19.10.35.38; Wed, 19 Oct 2022 10:36:03 -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=@Nvidia.com header.s=selector2 header.b=StcR7+ve; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230266AbiJSRPh (ORCPT + 99 others); Wed, 19 Oct 2022 13:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbiJSRPf (ORCPT ); Wed, 19 Oct 2022 13:15:35 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D3732D9D; Wed, 19 Oct 2022 10:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z+6V8vxvRZI+ZQfawB/po2SZjFzYhK+YfB6P2VJrfsfolHIqJFkoMDFwcADs45rJ3/9SZJiyu6tsLQUNb8zDauyayF5TK8ZGm2zmpTynPd/OKD9t7/lA6wkQHA15pwwT8Svlb2jKtixxg8n4BsVmzddknfouOfwQFG/NFgcZbsYe+J9ojiEiWCuHIdnq2i7jztoMHwiudPrgRIPRit4f7cI4o8F8CFPqkaUgkrhkDr9HFCLZjVZbkXC9Y0V9Tb2hbBLV7bbXzMYwkHH9bTRrvNhKHkj57huf9Buk4nTW+kpSy+uRnREn1ckdrsgM0swltDD5llvdjmH+fQa7VPQrfg== 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=moa5J+x8ZOwrrGnqC65CPwi0xigEEJOaQhiVe8YwbGs=; b=cL31vsr+DXK0MvbHffxby83lo5kh7Zm112hjh4+IBpsFLPGXTqxDdpgZ0usKZsWflvc8JxeziuHLfX4L2wFVi/o0vCNr1yWJ2vP/x9WLI3bcYNNT2kUwYTD1iMfKO5qlYTll3yMnJ8rbzJuH9k3ZkqJBzwmJthfDY96idB0MU4kVqCCOh7OR+HL/lta1GyEujHCfIsi+qAB3X4zNwg6m/aBA1svuC8AsEFUnqK5qDP43QgDbm7z/cFnUIWIXLxwd++VWA/xqqq2XKH8PLgy1VncrfOLfLCZP2Y9SctuZF2RwOwC4zdZSL2EitA73yfYdRHoSCnk3JrxrGgjU409OGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=moa5J+x8ZOwrrGnqC65CPwi0xigEEJOaQhiVe8YwbGs=; b=StcR7+ve5FJ+TMDjeV/j8Nz+BOpPj76G2Xp1M2wvmG7+d4ULHqk0EuQ8tB86Yod0I+vgmQMMv6iVRJIbvrDgCIZTnZW/cIfZJQIdScBiELxV2AhR/7ZO8bxLrmQLWDtpJTUPNH9RJBZ8NkwZp5XHoPnFB6RWrapQG1SOxkXB8oRU2kGYj1QPTBOfglnPN5L/ZAsKark+MOyuqI9eVmAkG1ExLB6xpT+QotE/ZkJCpgrCoxbjJuxD03suz0v4RIZyg3w40D3B7NPCnvup+d3oxfozsPptAcevxMul5JzIsRt83NvHG2ZLRVQXlkwgxj8RqRlCMwXwNl3y8E7XOa+r4w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by DM4PR12MB7600.namprd12.prod.outlook.com (2603:10b6:8:108::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Wed, 19 Oct 2022 17:15:32 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::7a81:a4e4:bb9c:d1de]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::7a81:a4e4:bb9c:d1de%6]) with mapi id 15.20.5723.033; Wed, 19 Oct 2022 17:15:31 +0000 Date: Wed, 19 Oct 2022 14:15:30 -0300 From: Jason Gunthorpe To: Eric Farman Cc: Matthew Rosato , Alex Williamson , Cornelia Huck , Kevin Tian , Yi Liu , Zhenyu Wang , Zhi Wang , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Halil Pasic , Vineeth Vijayan , Peter Oberparleiter , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Tony Krowiak , Jason Herne , Harald Freudenberger , Diana Craciun , Eric Auger , Kirti Wankhede , Abhishek Sahu , Yishai Hadas , intel-gvt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v1 6/7] vfio/ccw: replace vfio_init_device with _alloc_ Message-ID: References: <20221019162135.798901-1-farman@linux.ibm.com> <20221019162135.798901-7-farman@linux.ibm.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221019162135.798901-7-farman@linux.ibm.com> X-ClientProxiedBy: MN2PR19CA0037.namprd19.prod.outlook.com (2603:10b6:208:19b::14) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|DM4PR12MB7600:EE_ X-MS-Office365-Filtering-Correlation-Id: 83d74008-cb3b-42d7-f916-08dab1f586c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aEbATsebNcP7Fg61ktbvHtNSf4VjYbWBwED6ckBY0nGL0qp15sSu5otEa1YDuWeMu/8TPuWU7/SA9LzAKKvaNQSoKhh7tcDcqTx886d2SRPp+nLoITTjzuL8nzEPdAvEqodcIZ9E9b/lTTk1Oa31v2Kl6QmxslKVT1GMbRq+YxQKqymTgqOEYsTXrxo5slj2SZL03bunwwM6KLSCWwkY+HBYqzKQ/XRNCtv6mg3yLfUbf9x7YTsnG9h90C89cvzFJldBoGmlaK8Lm+NEjyeSMBj6pcv4o5ELyGrv2P5R8g78CntUpcOxcfIDvuOcf7Mu9igcPziTgHizbvBHpAs+SyzZM8L/6ryW3W4QU6IaUnjvjZW5u8tk8vb+geEoWO2ZKX5CkI0MCpdqFS1XLdM9g7cQvD6bVR5HU1icz6rYhmmHRhbEtfQJUyVSRRlfrkfXiDUFufhvwqBM+1Ply9EcZG3fl4x4Y/SjG/gW2UF7CZ4+7+cS7IcIb1GYd7MxDsK3wikgcLN7O0BCZs0I9R9cdY02JJciGcWLajYxAeFC/cXJWOEL3lhrfMkyS3K1RxVnCeToHr8clw1N6PzblUuoh2r6JgdavcI+G5k7FCpQwCgAlDWo1uc2Xy66EC+QArKRrAe9h+9dlSnj6eL9MChJq0C897jBDeS3/1MSXgBs1htyhG39ZdPedDa2yrmkWuBKIz/NQPuvX/+YtJ5D8EghiQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(396003)(136003)(346002)(39860400002)(376002)(451199015)(36756003)(86362001)(38100700002)(66556008)(316002)(6916009)(54906003)(7416002)(5660300002)(7406005)(4744005)(8936002)(186003)(66476007)(2906002)(6506007)(2616005)(66946007)(478600001)(6512007)(6486002)(26005)(41300700001)(4326008)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TJnT5/dtaW4Qrq4V6mVMrzYp/tYa5MdjXOvNp3b//J1sHuKEIr7aJrUM96eW?= =?us-ascii?Q?DQMcCBM8T2q1spaCSmysQKCvA8FyZ+BgWD6c6aebvNeJgqtWHwwIXvfIhUAQ?= =?us-ascii?Q?I17Q6gY3QHS7ABC1e17l3Wo2fpk60cxarf3C4WUekQtCZQI4CwBjBYwaCvFv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oUpa1U9N1SX7Ik101fFdVIP?= =?us-ascii?Q?7tL69YATnj2NzqscFbnzVscFA3Yd99dopHneWjGzB0qsEGU/jEHL1ERc9Cr5?= =?us-ascii?Q?yUqxlT3ZGWvPW8zCWr8gx5lIQKMRXAsiK68GM1s6fgMiKeayTePwPS4s6WdL?= =?us-ascii?Q?sAmjUFVd5LaXlPPCK1oB919PYNz/Hkx7WOiMzS/SRBKey/ttda7PB9vf1AEP?= =?us-ascii?Q?8Qh83UCOFd6jeInj0XAGuZnF1EK4buDsphrqeS4rda+wBqsA1ntJqba3eh5y?= =?us-ascii?Q?fJ7s1wZKaMHAAxVzEqPVEZXg6GDO50iGz+eO9Q8JPt5iMjwoCcHdC4BB+Y/T?= =?us-ascii?Q?KPVIoC4a9XumVnZZQ4MEj1XymLHP2sWBenU9Nc0IVswNenoEyHcscSvvolW8?= =?us-ascii?Q?U8xj067uf7zuO4Kvj6WuzxtU/WXGXKK0P+ltOokvR4mWodYUBQQYzqCfFoYO?= =?us-ascii?Q?i4srC9UPbEhz5iQ7omtZlMAGrYb80ZWNMkGtXQCmUFiBLx/JKR4uDAYd6Spk?= =?us-ascii?Q?wl/e0MdALHPcNQ6AqIs=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 83d74008-cb3b-42d7-f916-08dab1f586c0 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 17:15:31.9117 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mLBsXjG/earih/mHhaf87AYpyLZueUs1LoTMGTtfJf/ra5/oLKMdwB4GOICsvT4L X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7600 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 Wed, Oct 19, 2022 at 06:21:34PM +0200, Eric Farman wrote: > /* > * Initialize a vfio_device so it can be registered to vfio core. > - * > - * Only vfio-ccw driver should call this interface. > */ > int vfio_init_device(struct vfio_device *device, struct device *dev, > const struct vfio_device_ops *ops) > @@ -422,7 +420,6 @@ int vfio_init_device(struct vfio_device *device, struct device *dev, > ida_free(&vfio.device_ida, device->index); > return ret; > } > -EXPORT_SYMBOL_GPL(vfio_init_device); Should be made static as well Jason