From patchwork Sat Oct 3 23:29:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1376364 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=U6e0mbxU; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C3jl4348Sz9sT6 for ; Sun, 4 Oct 2020 10:30:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1CE8020432; Sat, 3 Oct 2020 23:29:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ngCFXbB-XxFK; Sat, 3 Oct 2020 23:29:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 98C6B203F3; Sat, 3 Oct 2020 23:29:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5BA641BF5DA for ; Sat, 3 Oct 2020 23:29:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5675A86418 for ; Sat, 3 Oct 2020 23:29:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Kc9QhAqtZ7E for ; Sat, 3 Oct 2020 23:29:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5FDA486406 for ; Sat, 3 Oct 2020 23:29:52 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id k10so5672600wru.6 for ; Sat, 03 Oct 2020 16:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LftHSg45GfNTMbiynu/DJ+v/c98k/2HZK1pGT6gRyz0=; b=U6e0mbxU0QmVdilAVFQmnJVTmVYA6AEqWAF+RtDIwzVaBnB7gAXmK74B2UJaju3HOR xazhbGNdG3b/IZfOGHPyCo9f1VDK1MxAsVfcR1MlMOIYva16Q2FfTdWbsxPEz4oxFSvB msR81okW1Vdh06QjIZKD6fxuPy9/oWqjOnHKA6h8IVDnoE7fWI72T0UEq45HH0SaVP/9 712mXMUUhM3O38RBK178ZRwOe5JkGzA4MEhozLpaLcIw7XWuXSYnO+pNH+w7wQdssL5R G87cCOI4o1Bs9iICkGeFwylnJi7hXTawD7pof1xUF36B3jkKOIeDL7isyyz3VLBwlyUv O4fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LftHSg45GfNTMbiynu/DJ+v/c98k/2HZK1pGT6gRyz0=; b=QlMgwZkx9/inhWykTeh1bz6Yjq/Nu2uWDaRGX5EdCBZvdgpOe07j9Ys1ZE2Iam4ywp R9AR/03XAiMn4zFxQchf17wpc906D74q9xZKEVLyp74sjRmHhPmF55DE2cUGcOZwzb8R 6imVTiS4BtwanzeDN1kEzf0FwHiljLOyN2/HfL3zmzR7j1eKJN042CfdgngSrFU6zdBa con1QWONi1m8Z+rhBGnBglCaxV3bb6JguYnDU2NeTUK2Y4MCfSxnDtnPll0X1GjuU9ot hPTwE0XgsuMOmwoILJgY2fiLNQ7PiIdXeMXwNr1cFbEId9ycliE8gpyBcDzcpq8nDCTL AMow== X-Gm-Message-State: AOAM531m4PD8VdhGVZ/vt8xUX4vRktLfKKhAn0z9S6rRXWM1HCnB81Kh Kh4E4GCzJaSzjO+CL4NUc+VT+cKfagU= X-Google-Smtp-Source: ABdhPJzGEff6kaPIKzSHMmr0B+insvDIxZXcCIbj9qP8o7L5myjaScFPje7HtZOerWK0acQ7TGos1Q== X-Received: by 2002:adf:e6c2:: with SMTP id y2mr10630222wrm.117.1601767790506; Sat, 03 Oct 2020 16:29:50 -0700 (PDT) Received: from adeos.home (2a01cb058f8a1800df1b0f916d55bd01.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:df1b:f91:6d55:bd01]) by smtp.gmail.com with ESMTPSA id q13sm6955931wra.93.2020.10.03.16.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 16:29:49 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 4 Oct 2020 01:29:46 +0200 Message-Id: <20201003232946.550242-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/x11r7/xdriver-xf86-video-ati: Fix link failure with gcc 10 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Backport an upstream patch. Signed-off-by: Romain Naour --- .../0001-Fix-link-failure-with-gcc-10.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/x11r7/xdriver_xf86-video-ati/0001-Fix-link-failure-with-gcc-10.patch diff --git a/package/x11r7/xdriver_xf86-video-ati/0001-Fix-link-failure-with-gcc-10.patch b/package/x11r7/xdriver_xf86-video-ati/0001-Fix-link-failure-with-gcc-10.patch new file mode 100644 index 0000000000..b7a66c5c27 --- /dev/null +++ b/package/x11r7/xdriver_xf86-video-ati/0001-Fix-link-failure-with-gcc-10.patch @@ -0,0 +1,35 @@ +From f223035f4ffcff2a9296d1e907a5193f8e8845a3 Mon Sep 17 00:00:00 2001 +From: Adam Jackson +Date: Tue, 4 Feb 2020 16:38:06 -0500 +Subject: [PATCH xf86-video-ati] Fix link failure with gcc 10 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Without the 'extern' this looks like a definition not just a +declaration, in every file that includes the header. gcc 10 is stricter +about this kind of multiple definition. + +Reviewed-by: Michel Dänzer +[backport from upstream: f223035f4ffcff2a9296d1e907a5193f8e8845a3] +Signed-off-by: Romain Naour +--- + src/drmmode_display.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/drmmode_display.h b/src/drmmode_display.h +index 96eaef0a..8cd8a0a6 100644 +--- a/src/drmmode_display.h ++++ b/src/drmmode_display.h +@@ -262,7 +262,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type, + uint64_t *ust, uint32_t *result_seq); + + +-miPointerSpriteFuncRec drmmode_sprite_funcs; ++extern miPointerSpriteFuncRec drmmode_sprite_funcs; + + + #endif +-- +2.25.4 +