From patchwork Mon Sep 30 07:27:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 1169149 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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.b="CDokmwbS"; 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 46hYsZ1QYlz9sDB for ; Mon, 30 Sep 2019 17:28:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C8EC62010E; Mon, 30 Sep 2019 07:28:14 +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 mYqRWaY0tszU; Mon, 30 Sep 2019 07:28:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C03F52038F; Mon, 30 Sep 2019 07:28:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D305B1BF35E for ; Mon, 30 Sep 2019 07:28:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CFFDE2038F for ; Mon, 30 Sep 2019 07:28:10 +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 Zc61paONiZKX for ; Mon, 30 Sep 2019 07:28:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by silver.osuosl.org (Postfix) with ESMTPS id D48F22010E for ; Mon, 30 Sep 2019 07:28:09 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id m13so8264350ljj.11 for ; Mon, 30 Sep 2019 00:28:09 -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; bh=fqRkOKyxfMp5rcd0w6ClzzOqwcz1pqgc0sDOoAGvtt0=; b=CDokmwbSnGVUXcNWqmF+iZa67jrerjqufl6WfYooH68WxoZN6Ih+cRZAjcrBxd7jV1 OLe4G0KX5GgfHAlDfnrFUWVnZjjuTCkC46F84u3HCkKgsJMywMVtL6bUQyCBUwcE35bq hhgdhUvl7Y8x+WGx7cLZrXDk8CLS0jCzt3Re2qnDIQauqLThw4poMhDEPWecpqYEVEvi 6EtoTgIL/QG4CbQ0CjCArfuhCj6qJ0vcNlSZWma6czk7y7u2WJeQSH2yZ7GnIY5kDmpE Tr1Y5+sqAxliBUTwge4cKTG1btqtPhHvuQtPpT2s9Bkc5hkd8x/G9HqanBlk4o5MDTzg vh8A== 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; bh=fqRkOKyxfMp5rcd0w6ClzzOqwcz1pqgc0sDOoAGvtt0=; b=VJ1+ehvH8wacJNS1F+uYnRQ9zBWtWdgfIUkhYyLHF5ga0AhmMKIfRJL9Y/xliGkJPm Xtfl+SsNs6cUpkVmTBHZHg0EvYp6FZ93egvmYPXP0EuBu0jGzOL7+zXX+cEjphtLKaNN mik/NohjupHDEO1rEjV0AucUBH/Vxvmt3Yv3NpgNyf4lH23z2JLMlvgXYDhX1q84+ZXR OXUP+z+H/c5WYVd3xtLQGzhVXDQxpJAPj8ypSimRo9ZBTeUkGceGGVT1Xc1/dEcmWUBg E9/sPAMjxy33c3cPBqVSfB84oVoAyAu/in27RNogoePI+4bj1eVz3P7QkDEo5lQJXR14 BJUg== X-Gm-Message-State: APjAAAUz2u3N2dwBO4g2SNrfn41eiB/2fF2nWnpoae0CaNni+x27tkAt 8FfCZVMrqDuHLX4Iu9KRSzkIPBbTGYE= X-Google-Smtp-Source: APXvYqyN9KH6vw6D+S75var2HYPjizbtCgTjKHSivEdz+j67UInda2UNJG33W1BCDs37Jnr7Nmg8qg== X-Received: by 2002:a2e:8802:: with SMTP id x2mr11120659ljh.113.1569828487572; Mon, 30 Sep 2019 00:28:07 -0700 (PDT) Received: from octofox.hsd1.ca.comcast.net. (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id t3sm2982090lfd.92.2019.09.30.00.28.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Sep 2019 00:28:06 -0700 (PDT) From: Max Filippov To: buildroot@uclibc.org Date: Mon, 30 Sep 2019 00:27:56 -0700 Message-Id: <20190930072756.17420-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH] package/linux-headers: fix uclibc-ng build for xtensa 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: Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Definition of struct clone_args made header include/uapi/linux/sched.h unusable for inclusion from assembly, breaking xtensa and riscv64 uclibc-ng builds. Backport proposed fix. Fixes: http://autobuild.buildroot.net/results/336ba3d9f44fdded48bc71a51e8620418793770b Signed-off-by: Max Filippov --- ..._ASSEMBLY__-guards-around-struct-clone_ar.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/linux-headers/5.3.1/0001-sched-Add-__ASSEMBLY__-guards-around-struct-clone_ar.patch diff --git a/package/linux-headers/5.3.1/0001-sched-Add-__ASSEMBLY__-guards-around-struct-clone_ar.patch b/package/linux-headers/5.3.1/0001-sched-Add-__ASSEMBLY__-guards-around-struct-clone_ar.patch new file mode 100644 index 000000000000..529718b75241 --- /dev/null +++ b/package/linux-headers/5.3.1/0001-sched-Add-__ASSEMBLY__-guards-around-struct-clone_ar.patch @@ -0,0 +1,40 @@ +From fd7af1d35a8154c54203264cd323113cae672e80 Mon Sep 17 00:00:00 2001 +From: Seth Forshee +Date: Tue, 17 Sep 2019 09:18:53 +0200 +Subject: [PATCH] sched: Add __ASSEMBLY__ guards around struct clone_args + +The addition of struct clone_args to uapi/linux/sched.h is not +protected by __ASSEMBLY__ guards, causing a FTBFS for glibc on +RISC-V. Add the guards to fix this. + +Fixes: 7f192e3cd316 ("fork: add clone3") +Signed-off-by: Seth Forshee +Message-Id: <20190917071853.12385-1-seth.forshee@canonical.com> +Signed-off-by: Max Filippov +--- + include/uapi/linux/sched.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h +index b3105ac1381a..851ff1feadd5 100644 +--- a/include/uapi/linux/sched.h ++++ b/include/uapi/linux/sched.h +@@ -33,6 +33,7 @@ + #define CLONE_NEWNET 0x40000000 /* New network namespace */ + #define CLONE_IO 0x80000000 /* Clone io context */ + ++#ifndef __ASSEMBLY__ + /* + * Arguments for the clone3 syscall + */ +@@ -46,6 +47,7 @@ struct clone_args { + __aligned_u64 stack_size; + __aligned_u64 tls; + }; ++#endif + + /* + * Scheduling policies +-- +2.11.0 +