From patchwork Tue Jun 6 00:59:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 689803 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 283B5C7EE24 for ; Tue, 6 Jun 2023 01:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233119AbjFFBAX (ORCPT ); Mon, 5 Jun 2023 21:00:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233223AbjFFBAC (ORCPT ); Mon, 5 Jun 2023 21:00:02 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2070.outbound.protection.outlook.com [40.107.100.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19923109 for ; Mon, 5 Jun 2023 18:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=etnIfPFnquGKXMiZLHKsnDrNh4gyz0ELPVvKwDzN3QBIXFAzASNR6GjxZd9Cx2jelC2lymePu6QY7rtcTBz0+jcl6ziFhh4wUXokktHlPCtaIMMpyghuCNEJun8Shfm3MTwBzWg00Iwl/BM5t5OUyMFQlI044AnXqMo/V7XCix4Ugpj8838nhqCktpoFSIgxHshhdFIuSb+FUHoktFR9gHENsA+R346BhyYJyIfaZcq1+ezUPJzF/9esRGpFROGJCVghb2sGBV3mFSkSulYpuOr6MWYWIGwVR9JfuKe+5M2gAd1K5cLUIFmHW4mJwWi/VjNrfLp68y1Te2QOMT9oNg== 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=pmoDPoU3V6R7hplC/i33578VGjjaJ0snSYhYFvlP2/s=; b=Ca/vUiAdJefiSEs+e1Px29D04yMGH/EZ6PL/d2OSp9BsySeaDhdFlSgZw5VadYpo1L/VwkCjy1GpHU4AM90eJDqbGfLE6gSN3HK/yeUwbaJdeft1kmCtW+k01ykZBV3SUDH0CLxXDuajwMDaPUEC7/12Iuv9D6V8uY30cFMMQbnU5zBGdk332bCfLHukgJG37nWvzuVuxCjQRbAutN+qlrYDWhuHYqX3WLXYi4yye/xiBNSq/UwJ2bwAtpJsI1lHElt7xdXLnxBgmpzz9iCReoQvg08ugvVnnQv77i1VwcorZ38wF15yQ8Y/diQ/1euN8SbLImWog7fhm+kx0Gmong== 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=pmoDPoU3V6R7hplC/i33578VGjjaJ0snSYhYFvlP2/s=; b=Ssn2jf/MtoGpMlzg7CJvNIJyjhV+iyDq7nXHAkSXBQ/Llx5UJMnA5BVV3K9vhXaZFCJczf8kqrsqoh9uqY70rA0DfV+hIebZNFvDJ47sMa+SfbfyjNSoLCI9NxMoaxzwnKwPxkcMJQEQrEs9TPsEVgax4GqwWNxaCxFzqBjS/rzKEPPAOj11Gw+LExwDBPQpjiw5JcmrS0U8svagfJPuWF0L3t2vp6wVvqlVg473TRaH5mLkRAjsMnwugGMk5MRYbpHOcsL63XJq6fiTfJV+sCY2gl31wZOCSUusWxrcyrfu1wDmV/R3mQASdoM3D8Ur729e3u6yIwSV+ByXKvoJ/Q== 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 CH2PR12MB4085.namprd12.prod.outlook.com (2603:10b6:610:79::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Tue, 6 Jun 2023 00:59:57 +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.6455.028; Tue, 6 Jun 2023 00:59:57 +0000 From: Jason Gunthorpe To: David Woodhouse , iommu@lists.linux.dev, Joerg Roedel , Len Brown , linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Robin Murphy , Will Deacon Cc: Lu Baolu , Kevin Tian , Nicolin Chen , "Rafael J. Wysocki" Subject: [PATCH v3 07/10] iommu: Do not export iommu_device_link/unlink() Date: Mon, 5 Jun 2023 21:59:45 -0300 Message-Id: <7-v3-328044aa278c+45e49-iommu_probe_jgg@nvidia.com> In-Reply-To: <0-v3-328044aa278c+45e49-iommu_probe_jgg@nvidia.com> References: X-ClientProxiedBy: SJ2PR07CA0015.namprd07.prod.outlook.com (2603:10b6:a03:505::28) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|CH2PR12MB4085:EE_ X-MS-Office365-Filtering-Correlation-Id: a556a0d2-d384-443d-84cc-08db6629555f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k30RIXPiasdfH00EQXmlpKPfEan0UbPZsWKJfn25ubYdQJTFkcKCYZwBkfbbsxGuSRv+LcNCu1psbL5gOBndylNAk98zgw/6xYCCjIKDQWSoT8AAA95s6F1PJ+pODyCNFmtJBS1XmRL7c13hB+NPft9R6ST2JZ0PLuWNqdQceik4DcmhaPdZ9SP1KhZIfZ2Iv+bhYibmxxvgqcFwgpxMK1iVKNdzz8HAle8CRIP5LOLXWDeTvHkCYlIGhBiZx6H0IvGz//SRw9REfnIa/rSTLpuqJ9vguw7Jr3Wdil/0WtBf8b6A7X7UB6mN1StARANkG8HKLepVAsdBhizwhgYmbDxLmga+SkWiD1bko2UTxnpuFvDgHufmiBNJUX2a69AU0wSbAa+fvX77E418ZlV5EzTjyqq/CHpZLrc8dVjjty76hx1TqZVGNeAe/Bxn0yELKqz1yJx/NuTfHv8vpsz5reXN8Ms6kUJv4uHjfWzGaYrWlgNlwA2KVqtnJ+HelW+yFRQcil5rFqcbGXHKEOGlrANQIQFn38ZY3lYVcagN/vs2wWUSY+A9PipiqOy/3hNmB88WaK3vs8QuXtTl1iDToumo2qyEeHu1P/3DPv+vJl8= 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)(376002)(346002)(396003)(366004)(136003)(39860400002)(451199021)(36756003)(110136005)(54906003)(4744005)(2906002)(478600001)(86362001)(38100700002)(7416002)(41300700001)(8936002)(8676002)(5660300002)(316002)(4326008)(66556008)(66946007)(66476007)(83380400001)(6506007)(2616005)(6512007)(26005)(186003)(6486002)(6666004)(4216001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d4avrx/KHWkYmD/HTAuL3EF9JIjrY4C3dqUh9pBt/Ad7R59VYaZpz6q9eJG/QMZW7BdAXE687420SZdAmX/AsQasZD2MzrkZ4iEsz4jOvlmHt1xhq7qNIdODfNM56YKcmLeImVf/2Iuc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Xf8cbPchgRLSA0TM/oxBzA3vdtiyGZC5kLsQ+5fJG+lP5tn2zUkE4E77uUF1eANBsLMhkJsrlPGHm77sqCXnJeQjnppaljf0iWCH85/DUgbxj0HxFiQHY0+2LGzt445Ar5HdqV/9/gs8c1W19o6tNoC74M5dn3GaveUqC4o1sMKUQSf+a1VPOsfHVC0mhgFgTiKdOcOuJ8ww26slD3jTZooY6eHRROFYx+oJeHvc8hz74QIGDYUEq3IC5C0/O4Y+xVrP6ciFcrDPiujO5xuIc0dvJBLjJsCwkpkVxP4q6QPgxFzc7hz9SL1zuCGabl0/lwhCxKQRyYaoUDBikYcZwhs+2d25W2SZvqwRRyjcOsKgXywPHgcp6 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a556a0d2-d384-443d-84cc-08db6629555f X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 00:59:51.6055 (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: mR+Sxd+G2jWABlPaa4jWyqrtp7sW9ywC/3g0MP7Ve2EoUYxEmBnMNQGz4wxTkRTC X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4085 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. Reviewed-by: Kevin Tian Reviewed-by: Lu Baolu Signed-off-by: Jason Gunthorpe --- 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);