From patchwork Wed Apr 19 16:11:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 675917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CE08C77B73 for ; Wed, 19 Apr 2023 16:12:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbjDSQMO (ORCPT ); Wed, 19 Apr 2023 12:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbjDSQMN (ORCPT ); Wed, 19 Apr 2023 12:12:13 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2089.outbound.protection.outlook.com [40.107.244.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 916459EEE for ; Wed, 19 Apr 2023 09:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eb8/2yPeCMG9BNtBwnUxvDXvtc2OyLxLiQBH4CogdtrBLRq5EbXoUJe1E0RI10MTBI2wBMdPK0PgsAxl1J+9F0ohW7uo8zeGg+IOhkkfdvuC/LWhyzKwPX2dQZpSBPJU91CkEypB9AQzZE32ZGLYovQtCio+xVojZe2x2cM6bwpo60H/zKWsRwZ3QjKTMLQlHKxOy163XTw9/4rPSZ/njrs+KaUgV6on00iH8HABCAIhdPZ2twxe4guyVdNixlVIyeKw1UCUdufq8p7HLSipg+w0cB/Sn5iGI8RO0CvoTqXEEIoQZ5lGJFfjHlL9dpLMo+rPODUzL6w+5SxTAE40Ng== 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=75S+M9Ne7IDnCk2KalAFQ3AKD8oWpYrnc2oQngrvOLA=; b=FK8wTXrk1yE24BG04gyDPHLfwAKBiZ8EJf76j6Rjqvpkk63qGmfGQ+5QPDRkWuxQelHWTKTPFmumdpQSKD3PD/3fnvhEgVGpq9cMlkJuOgbcpK31okkaOv6fvyxDAnsVr1xgBZY6c0fzdUK+YlLlqjEhqMgLjipjaDOZ8toZdtvQ/oavxz9Lgayopj0R41gNRBIGhv8Yi4E8+KincXC1GgvkXMJNmI/N+mT/sA+La/MxEuiaFU6FiO15A5wCLmXWVW++FGaDAZwcr8yzGgpXkb7ZVZa5cBFDK8+yTs+K13iqnyTWnBkvJKnKQxFd1JUtCf5UHA+Sbr3IY0e0CNYtdQ== 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=75S+M9Ne7IDnCk2KalAFQ3AKD8oWpYrnc2oQngrvOLA=; b=uPe+7Eg+XoF8xLqlnmqKVO3NkeNgA5G+xPO+JP7bnzbGltvdDjnZ7Th+fk4Gxjx7GGjA4LyCfTLtawwEl80z9BvHDd+rsnCR4Ck2dEAZdR9Tot1GgkZ5dl3WClJkWl8Ls7IGSUSJqxqv/cYohbPnlcSjiv4SI9TeOpelIfEVbuUn3Gc+tP9rpypoEEhvtUYXNXBws4R/F8g/H0/4WLkvAJ4LyO+CaOYQWqrgLcdGprnAfprDovPSzqhyUUAw3LiLO/iRzvXxiSoi5D8Y2TRgrqnFTPfxRa8VvuMIM2cK+GDqawge50XmkranpfLnyAXVFMxZvFePaBZGN3LtCXBQZw== 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 DS7PR12MB6046.namprd12.prod.outlook.com (2603:10b6:8:85::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Wed, 19 Apr 2023 16:12:00 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::f7a7:a561:87e9:5fab]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::f7a7:a561:87e9:5fab%6]) with mapi id 15.20.6319.020; Wed, 19 Apr 2023 16:12:00 +0000 From: Jason Gunthorpe To: Lu Baolu , Christophe Leroy , David Woodhouse , iommu@lists.linux.dev, Joerg Roedel , Len Brown , linux-acpi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Nicholas Piggin , "Rafael J. Wysocki" , Robin Murphy , Will Deacon Cc: Kevin Tian , Nicolin Chen Subject: [PATCH 07/11] iommu: Do not export iommu_device_link/unlink() Date: Wed, 19 Apr 2023 13:11:53 -0300 Message-Id: <7-v1-8aecc628b904+2f42-iommu_probe_jgg@nvidia.com> In-Reply-To: <0-v1-8aecc628b904+2f42-iommu_probe_jgg@nvidia.com> References: X-ClientProxiedBy: BY5PR13CA0024.namprd13.prod.outlook.com (2603:10b6:a03:180::37) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|DS7PR12MB6046:EE_ X-MS-Office365-Filtering-Correlation-Id: a849e023-7022-4629-03dc-08db40f0ce48 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jQ9yjkMKWaxvK7GgvPne8YQ6GVwHxk4Zywycy1BTgHIy0dbH9yl1pI0mpjprikICPhgdRzkfF+hXAbw8VY804SREqtaELBsufaz9K7AiMI4n115e5KopKnsqIWcFiOPFL0ZL0HKwbV1C4XB1SLDQ/VrSe8EOrheHepeSrqZdqrCRFaZTsvbk2u3LYWAxoKzdh+Yjk+D1gaO21VO4f5xhVitYTl7CCQGh5mgmkocWaRHd6As3HKCDF3kVCR2y86EcQ/8HJDCr0K18Z5z30zupjmoEpPShCTtBoAafMlxenfraPrmH4CRKfRW3lfoV+WKJ2JfNksNXus/y9EjIkbEwrmbHLBcsOsTvD4itIjTSrbE0cAedBYJuMGNG/DCrWeCbJm/ITsoAuS3WX40FOm+VS6dmjD3lBiOBtaJgxvAu0HhXWFcb7pjY78cyhclz2HSrLfD5Uyphe91ilYNV0U/s1A50OhZhOYSO8oKnF3Ax/G86PsQnh2I++O4TbyayPK+e45l+Xqae7Kb8OpJelwTx+6cQ/Wc1oP8qpRaZKdUnic9pzxpPYvp7KkH+de1K7A8sgtyb2Z7wIXcAZoUAVmRpPb7jbCbjywnpAGhVMcZL4zYmba6hqubAxLXCzwNru8NE 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:(13230028)(4636009)(136003)(396003)(346002)(376002)(366004)(39860400002)(451199021)(2906002)(4744005)(8936002)(38100700002)(8676002)(7416002)(5660300002)(36756003)(86362001)(6486002)(6666004)(107886003)(6512007)(6506007)(26005)(110136005)(54906003)(478600001)(2616005)(83380400001)(186003)(316002)(4326008)(66556008)(66476007)(66946007)(921005)(41300700001)(4216001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: o0G7fL3YQYTpjmNoYpwoOTmoG4o8Q/6ynFCAWGO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d4ffCil1NUtNMIn6sKwf3x8EwOM5ZSUWjRKxG7Y1wjruMH/T0kuUM4VRSpMQW1is0MBZ0yvY1DJlSeAnGivm29W1vAW4Uan2jXKYJGtUCBf1EilP+WksoTIZwbBPdyu7sBmmH7r0bw7puy4BKwWUAsbCaVdZpMtEI0cbDkm/A5FOi3LL5KoeVsx7UBwZ/QZSvgQ8ErlEK4IzaGua7rI8JrDFMoyF9d7GHGzy1s7IaIueHVB+x58riY9Z8ztjEIp7eOWggiPcygsf2J1FWr9P+3ho+QZzsJvB7mtgUgKQezM0m42ydCuDwg4dEWC/5o3m1EZYzK786PeGXrIhj/FBNBYOt6lINCK29bQXSQ42r7vPSVN1MdtWd9uYX03KsCrKwRuOuN9uOcT5eGgV8isHmtb27SPWn4yoXBGGy74rJ6rNDCaVOE3g1r26Klxqbf/zz3RZeJODhhW0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a849e023-7022-4629-03dc-08db40f0ce48 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2023 16:12:00.1642 (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: ykdqqNC0fQ0C9b/n0u3BxFs8lNUWQeZ3hiGwax0qfBBdV2BI0hEJE/IceGJGWfQS X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6046 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org These are not used outside iommu.c, they should not be available to modular code. Signed-off-by: Jason Gunthorpe Reviewed-by: Kevin Tian --- drivers/iommu/iommu-sysfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c index c8aba0e2a30d70..cbe378c34ba3eb 100644 --- a/drivers/iommu/iommu-sysfs.c +++ b/drivers/iommu/iommu-sysfs.c @@ -119,11 +119,9 @@ int iommu_device_link(struct iommu_device *iommu, struct device *link) return ret; } -EXPORT_SYMBOL_GPL(iommu_device_link); void iommu_device_unlink(struct iommu_device *iommu, struct device *link) { sysfs_remove_link(&link->kobj, "iommu"); sysfs_remove_link_from_group(&iommu->dev->kobj, "devices", dev_name(link)); } -EXPORT_SYMBOL_GPL(iommu_device_unlink);