From patchwork Fri Oct 12 16:35:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10638869 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0FA90157A for ; Fri, 12 Oct 2018 16:37:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F02742BFCB for ; Fri, 12 Oct 2018 16:37:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E09A52C197; Fri, 12 Oct 2018 16:37:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94D9B2BFCB for ; Fri, 12 Oct 2018 16:37:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F2356E035; Fri, 12 Oct 2018 16:36:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on062b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::62b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38AC76E4CF for ; Fri, 12 Oct 2018 16:36:36 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.106.51) by AM5PR0802MB2545.eurprd08.prod.outlook.com (2603:10a6:203:a0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Fri, 12 Oct 2018 16:36:32 +0000 From: Alexandru Gheorghe To: seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, ayan.halder@arm.com, daniel.vetter@ffwll.ch, raymond.smith@arm.com, david.garbett@arm.com, lisa.wu@arm.com, matt.szczesiak@arm.com, charles.xu@arm.com, james.qian.wang@arm.com Subject: [PATCH v4 8/9] drm/selftests: Add module_exit for test-drm-helper Date: Fri, 12 Oct 2018 17:35:59 +0100 Message-Id: <20181012163600.20331-9-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181012163600.20331-1-alexandru-cosmin.gheorghe@arm.com> References: <20181012163600.20331-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.106.51] X-ClientProxiedBy: CWLP265CA0200.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:4e::20) To AM5PR0802MB2545.eurprd08.prod.outlook.com (2603:10a6:203:a0::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14062279-4fe8-44fd-fe77-08d63060debc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0802MB2545; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2545; 3:KRp1B2jiVW2rPMFLLxfn7CUODy2PITKaDDp/m4fklWQYAb6OxMKtoaC1ojkL65mtEAzupO9zXjQz4PvK1kbFzJ6Q015b2BYQ/9U+0XsRD6wWiMFqg9yEbkjYImmGehsqIoLaSqDsAwrP0pgTniNIdkCGzFBDIhOUt72Cg0CZYZ68NVC6t+Rde3hiUfCwMOoBKi4vgJPSyGntU/8QUGJJSdys++QYvPSuNAN3jUT+bmvG05Xclq0xsjqCXQ+w/waK; 25:vVFtiN/577N66qz1FnTzQrQnNIxIcEB/43DzKxcIlP+hSH6JBGmGSUHLX25uvlAJYj6TaKeWr7w1fXFk+pTxE0fC8YLHr4wTeqZ+8I+bY7EnbEZO5tafPoZrmeeC1mgLv4GNOUXPgotlwAdOszF9nZmxOlJwzwZiQeJhNbh2rbR5lPvMaPwxVRsZzAKYLy6ae5BCehSC4CHDwO1NqaO6kdlPjrVm4PD1kPw42CKfka63y/gwszPibovP7W7YnuOXGmJxmmfYSw73Q7pgA4Hr3SByljESYlFfjl6yPrmqk5gHBaWOZcIqqjLsr87QGysXaaliHz7zLrrTwSzcMmLy2g==; 31:PfsODfa38k8ngjvtjacamKI8V6shiUXbkTtmlP4WDK2W9tALEGOEyNwk+IRFODFeSXbedJwZ8AE9lkTH7OPEropzAV/gDkcdgTRNbJJFOV/6RyIdphnE6XoXr/xXfJNF1SFN2Myl+zF5mWYa16NPZDf10+YfM3WjIrAWnTepjsU3HMt1Jy0RweM8PZlPZYd26rjvihJP71Le4PxhCD4cG2R100cnM0OC3BCM8ORbGG8= X-MS-TrafficTypeDiagnostic: AM5PR0802MB2545: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2545; 20:+atnhFGHHCTO6ZcaQxtNjET/IEZS8qJSQMaft47WRORZdzS4r79IldGWkeu5drGu5bbgahzYNLAxxM7cHzIlLt3VgmivmO21UU+cIa2gsuKILUebapsTCUrghvVPD3PPZWFzSHNi8XF7/7LIbQuFxBxSBR0dLUnyCj0sj8PfhDxm4IVo3Ur2J+Cmk4QdijkvBg3cY3uJIn2QwQgmVzwxuZ3FtBarHPFC19bSI+SzaQpSer3PK2aFuQZpBvcDa1eRbcuiu7NAXXzlWu4h4t/slZYX9WOD4NS4Y2157Gi3EucyNexXtnxftcb4y5vcjeTpN7kI0hpMwBUZDngxE2/EW3lEbBorcjvOZ8p6Cz6y5hEIkI8++jtF+Y+s0+PjlMlMakkc11BsEIkyuarMWCk2ktEjZhbtA022Dxgr+TBlwjc=; 4:mt9pADFY3g4tpQiOeaUVQ+r0bA8NtsSodc8F/qenF/Owvbly6O0QDiUTY9PeEkMmPnx7leu7YQlEGZXhZ1W7xZC7I3Uja+lbLjOSLXC+34mwJFzlqH6MB7+BdSzl9zKt1FR2hNdP4gnl4Hn78ahuEc4gUkpdQ+Ce1/Zu/8GT7lVugqJOSRAEauYmktbMG9h0WmwEGwmlPb/covKIBbrPI0PyPX21+fLYG3jdRBBP2xlFhcqwVtBzjaPIo1l1eJTqw8l2jCSYGfuOi+I3vAHsFEVcvU6odndS4F5Q4H0I1RN1k6HjcTYAD2rFgYbvOWec X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051); SRVR:AM5PR0802MB2545; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0802MB2545; X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(136003)(39860400002)(346002)(376002)(366004)(199004)(189003)(25786009)(4326008)(81156014)(72206003)(106356001)(105586002)(81166006)(478600001)(5660300001)(47776003)(97736004)(26005)(8936002)(50226002)(66066001)(476003)(16526019)(6486002)(186003)(2906002)(8676002)(316002)(16586007)(7696005)(50466002)(956004)(2616005)(486006)(6666004)(7736002)(305945005)(52116002)(48376002)(68736007)(76176011)(51416003)(86362001)(36756003)(53936002)(386003)(446003)(1076002)(3846002)(6116002)(11346002)(6636002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0802MB2545; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0802MB2545; 23:A9ysw0q1S3HHTb4RCmQgTkNj53lu4rs2GHDHoTu?= nbkkmALIYDsvoGTTXxmVqXjbxg1MuglxWBWkpJkDJewFHt4z1fB5IgAJ2CZQKZtb83+os6C53lXUWvv3M8omh0KxT1EANjI91HUSTe5YRvuhLhcbu3CXl2tYVD4dNeHhV+PNjaY9twFbJikK5P7D4f5EK1N8IHXgGAv6N+9t02pGaxsbxVo2i1ayrsVPHKIpIA6wWxgtD59UOkyk+u0QRzzBv8uRuUMXLncC4n5BTiuxC9PfTXOiUfonvRoZhCeX5FYfq9JeZdfmsV4CMmSHrYu9W15PRnK11ubSw/1sAiUMtULc0Jv610iF4BeBg7TSGa3snxv9HKDgdR7slRakxYdddHN0I5pHntHL0XL5VutghoIt1UU94wJhdIXmerLMX6Cki5bJC/pXGZ35lwx9tNVnF3LrSYJUD1SJjfaFbmNSZoTMwMrBPPH8XLU4vb2ocjUAW4L2v/WZEXSzxkuI1kCEe6BR3wK7qbSd3Xcn79r+LgWi29+uUeMEvynoTlOviNT1XxGuttlPad5hHF2mOIeVp3PQygRFoB9H0QwDbuXMVRZI0w9eFKqhbHrrxcFeHj9IMk00I1ikXPSJjMeMsxvD52dmC2DXV0RcsdpQIUEdziuylzHiF2Z4+J7+Fxdy52JUjuHcaVxgdjBVnh8b2T3CzjISoYy8t4n6qZ1cXuSHT1QuYiGVlAaV/P6Sn9A2cVWu9ucC5NsxCLtHPxK96eRvTyM9W/Prlb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2ObYDJOn8Mw35WBV3kf4X9P0cwIIHE6z+KXJYcPN6S+WaIlREe2dFta/9SBvm8ujaghCrHt/W4ZJ/iHulE4Ohb0fVc4mIT5T2XB/La5auDmmkeZcXXV4wCOTs3JoZ/eQ3Hv0gA2hBmY09Ekmv2DRh2q3tGfRcugNWHB9Pc7vqbxyhlNo/QpFECHuH0hjZ70cO/UJxsj+P0Vra+JeU+dP9GOLT1D+usYNO/8NVzBGccGFoFSJ/sNbKmKdis/siH0FRNEYGNoFU/fowVGn8Ww==; 5:e4w/MUXq2V9MqK8pPs6TIpBwbzpHUtlUURdMGSlzDUAYc9bVpAKQWp0mlPtfHANUAJVlmVMgLI4zPk8TpUC50x1n5WBh7knCZSgNt/OSRAdC+rZBdjGPFmp8f634nOEAPt0MuBHpufEP8YalLbuhWolt9yt+kXYFTwMa+BZNgWw=; 7:dzAu0SwFmhjGubYCjSxQJzS9PHyOc19v+/O/wSF8FIjIpbBU5F9KF/YK4S6dF8EPZeN+/hrpzXqjiMcaoUJBhrcRGQ2JOHhf3qax5NVjaeiKhz5RBGcwVaHVNHHxbOKMmq3W4A9R98PQX+7bk/RZeVeyza/h6lEtd0PlC/s6MQRQLu0RiumutCz2xAOcCiXcBXKX68t2740V3ytOpX3dQ/8ub4bB45B28PAkKbXW5w9cUDs2X3pqUgRfDbXTUNpc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 16:36:32.7992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14062279-4fe8-44fd-fe77-08d63060debc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2545 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP test-drm-helper.ko can't be rmmod-ed because it doesn't have a module_exit, that could be very inconvenient especially in the development stage where we usually want to re-run the tests without any rebooting. Signed-off-by: Alexandru Gheorghe --- drivers/gpu/drm/selftests/test-drm-helper.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/selftests/test-drm-helper.c b/drivers/gpu/drm/selftests/test-drm-helper.c index a015712b43e8..a6a1818fdafd 100644 --- a/drivers/gpu/drm/selftests/test-drm-helper.c +++ b/drivers/gpu/drm/selftests/test-drm-helper.c @@ -241,7 +241,12 @@ static int __init test_drm_helper_init(void) return err > 0 ? 0 : err; } +static void __exit test_drm_helper_exit(void) +{ +} + module_init(test_drm_helper_init); +module_exit(test_drm_helper_exit); MODULE_AUTHOR("Intel Corporation"); MODULE_LICENSE("GPL");