From patchwork Mon Jun 17 13:16:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 167032 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2853776ilk; Mon, 17 Jun 2019 06:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZo5o4DMr0JLTr8Yu1vjorLCz4ituwGzoaQgrDkVz6NIf1aC3w72XYqqeUsMzf/7MhWKZp X-Received: by 2002:a62:2b81:: with SMTP id r123mr71431276pfr.108.1560777409191; Mon, 17 Jun 2019 06:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560777409; cv=none; d=google.com; s=arc-20160816; b=FYx1POkanL0NCpnfU3aE7J/hJz+0Rj8gbPwokyiVoigNH8C1r6bCZJoV3gq9r0ZG5K twuPYaXtySW0+LdWgNHh1b1hQIfWvbaZQZ6kzRfTKrLAEzwchqP/clKa7Ufixb5rIiWZ Q11jlrUQ9uNo+nH6+eqVGib7lcPWLOx99UZ73xHbXXFs+9ASVbfV9ZtM5BRnzEOsbNbi QjK4xHODutQ+8/TqAIwl0ZY2r4WS0PPyYBhDobQTB2/TVissFBEi6p4t6ht3b88f3VVl qVsRjfQuPVQ/sDiRPtULptiuqc4eDL5NlmKis0xRnOYf0GVMDfu2aY1WXsS9vnIDqrOP Am4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ANC5uU05vjsI8UQLfXI1TDlGP/CAK7TpETivADCkKYM=; b=ahNcyAOuIxHcnANpQ14z5xBrhKZEYyyQqi/EkjWCxkTdWzUb6ccrzWZkKSwjT1+bYS q3n/yKW+9ICecctfWFmoV/H0HOfxSes5l1bv8wkoJdxCQ3pf7RJXuqhJEae6Ls97tFLO pa8f3wCyPbE7JS6hwz18Kf0knpiX8QK9Ze1+UK03++ZMtakIzehH1O0TiLtGuAZGHvlh G8oFPpOFrNVO5ROGlZNUmaxFYG2bcYQNPRdNrAAZCL71EpvOs0j5p/VXE4tffxqq1URa wiwPvdscE9TQIIc4gH3dilj8mkA5981yASonPzDsjZuOpLzdlns0YTPdOJn0JnmXCrXy w1Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si10070771pjc.42.2019.06.17.06.16.49; Mon, 17 Jun 2019 06:16:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726243AbfFQNQs (ORCPT + 1 other); Mon, 17 Jun 2019 09:16:48 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:41529 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfFQNQs (ORCPT ); Mon, 17 Jun 2019 09:16:48 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MrPVJ-1iNDSv3rCJ-00oWs2; Mon, 17 Jun 2019 15:16:27 +0200 From: Arnd Bergmann To: Bartlomiej Zolnierkiewicz Cc: Arnd Bergmann , YueHaibing , Ira Weiny , Andrew Morton , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit Date: Mon, 17 Jun 2019 15:16:12 +0200 Message-Id: <20190617131624.2382303-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:Qe2+Mxqk7UNlW2kImG4dBpHk395qN3F7QKua6gNeiC02qC4dv/0 KyGHOwqMvARphB1xFvw1ZRVnRDGdoympCDhOCPbmLGZJ65qH0XZlGS8W5o8zpfeTn8G0p+j U9ORexC2jg0VRUZbYphRu24L2mh7wPWzgPsqGF1zvefqLjoNciY31NbZSG5iTrZbcLPIGOz abWHduBRPpuRTmnm5s9lA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:H9A3Z1xLXVI=:eEoA67w9aBjQBcOJXDFqN9 /iPd9cib0USpQoPAxAgbr+tggKDwCqcHbtEd/RLlOqzgrcZg5La4xZ5LdT1EfW25hW9Ph4Xw6 RuC7sLlSXHw6P1f6UIJTz3bzlpt51WmCGjmd149e4GOZzD20TGerjeo2jUM0OHJiw8D7zO+1y QyisIco/v5yYKC6aWgfujquqXdoSONt/L2UseizZ9xDAoXV2IQViMJGjZSogVb2YDOSgphU3U SNU7fWESOViEn+FgCQSyC6IzDt4OZ19kcga4I/J3Em4FTUo6ibpWArH8fuwf4+287IbBU6A4c +3EPuAjBwvDY1chWV0mxutSdWWw5780fYoYj0LtRkodIQ3E2aZew6zz5zaMvos49Hlj7Pp54B U8WoS3QGbiytFpUlWHXAJJFdu7ms4neA11pQ76qMJuYVQbslqm1UpW1XPG2AdgIVafv/ty9ai BY8maX8WzpyIfziRRvzQF6IsmZNgO/9v/DqCfUbpZLvs5kcnO7w6yyNNPqS3daxKosKAi+eIR K5EsGbyK28TR6BORQzhdEMSa8iNDiIahXXWRh3QQSSmKxRmMuq6LMMs7U+AVDdzxe1SQ6nTPb b8STQpqH9i6DejA9h00x5u3iDuxumt9mZQw+QGVQjqVu6z4Z2I4pLn0kgaYbRzdZGSJUDmqnU IzFDQ2E0jWnqGNw5TzI9Aijz/2EyccZ8ugOgnnCK1Eg9IGF03w0MsLD9r4rZfxJfz/3YKfQnZ anbQI8kXmNSznPe3mn5FG6wHjRu4hxB9lGjAfw== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org When the driver is built-in for PCI, we reference the exit function after discarding it: `pvr2fb_pci_exit' referenced in section `.ref.data' of drivers/video/fbdev/pvr2fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/pvr2fb.o Just remove the __exit annotation as the easiest workaround. Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support") Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/pvr2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index 299ea7db9220..cf9cfdc5e685 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -990,7 +990,7 @@ static int __init pvr2fb_pci_init(void) return pci_register_driver(&pvr2fb_pci_driver); } -static void __exit pvr2fb_pci_exit(void) +static void pvr2fb_pci_exit(void) { pci_unregister_driver(&pvr2fb_pci_driver); }