From patchwork Wed Aug 10 16:38:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bedarkar X-Patchwork-Id: 657749 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s8cLS73kGz9s9W for ; Thu, 11 Aug 2016 02:39:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5057E2DDE2; Wed, 10 Aug 2016 16:39:27 +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 d3b0VOLYOpTZ; Wed, 10 Aug 2016 16:39:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9F74C31414; Wed, 10 Aug 2016 16:39:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 0E8EB1BFA86 for ; Wed, 10 Aug 2016 16:39:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 071F48A356 for ; Wed, 10 Aug 2016 16:39:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tS8PN-lBoe7l for ; Wed, 10 Aug 2016 16:39:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by hemlock.osuosl.org (Postfix) with ESMTP id 4A2F68A312 for ; Wed, 10 Aug 2016 16:39:23 +0000 (UTC) Received: from hhmail02.hh.imgtec.org (unknown [10.100.10.20]) by Forcepoint Email with ESMTPS id A8DD59DCD7637 for ; Wed, 10 Aug 2016 17:39:07 +0100 (IST) Received: from PUMAIL01.pu.imgtec.org (192.168.91.250) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.294.0; Wed, 10 Aug 2016 17:39:11 +0100 Received: from pudesk287-linux.pu.imgtec.org (192.168.91.23) by PUMAIL01.pu.imgtec.org (192.168.91.250) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 10 Aug 2016 22:09:09 +0530 From: Rahul Bedarkar To: Date: Wed, 10 Aug 2016 22:08:36 +0530 Message-ID: <1470847117-14956-1-git-send-email-rahul.bedarkar@imgtec.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [192.168.91.23] Cc: Rahul Bedarkar Subject: [Buildroot] [PATCH 1/2] mtd: fix build failure with blackfin external toolchain X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" With blackfin uClibc toolchain, we see following build errors integck.c: In function 'parse_mount_options': integck.c:2889: error: 'MS_DIRSYNC' undeclared (first use in this function) integck.c:2889: error: (Each undeclared identifier is reported only once integck.c:2889: error: for each function it appears in.) integck.c:2899: error: 'MS_RELATIME' undeclared (first use in this function) : recipe for target 'integck' failed make[2]: *** [integck] Error 1 header from this toolchain is missing definitions for MS_DIRSYNC and MS_RELATIME mount flags. But those are available from header . Even tests/fs-tests/lib/tests.c uses these flags and includes both and headers. This patch fixes above build error by including header Fixes: http://autobuild.buildroot.net/results/6a1/6a1bd73cc56cd257fa939702728802b63446473e/ Signed-off-by: Rahul Bedarkar --- ...003-fs-tests-integrity-include-linux-fs.h.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/mtd/0003-fs-tests-integrity-include-linux-fs.h.patch diff --git a/package/mtd/0003-fs-tests-integrity-include-linux-fs.h.patch b/package/mtd/0003-fs-tests-integrity-include-linux-fs.h.patch new file mode 100644 index 0000000..c31d39e --- /dev/null +++ b/package/mtd/0003-fs-tests-integrity-include-linux-fs.h.patch @@ -0,0 +1,45 @@ +From 2965384dfa330750e23a52a0edf792487db6a886 Mon Sep 17 00:00:00 2001 +From: Rahul Bedarkar +Date: Wed, 10 Aug 2016 21:01:58 +0530 +Subject: [PATCH 1/1] fs-tests: integrity: include + +With blackfin uClibc toolchain, we see following build errors + +integck.c: In function 'parse_mount_options': +integck.c:2889: error: 'MS_DIRSYNC' undeclared (first use in this function) +integck.c:2889: error: (Each undeclared identifier is reported only once +integck.c:2889: error: for each function it appears in.) +integck.c:2899: error: 'MS_RELATIME' undeclared (first use in this function) +: recipe for target 'integck' failed +make[2]: *** [integck] Error 1 + +header from this toolchain is missing definitions for +MS_DIRSYNC and MS_RELATIME mount flags. But those are available from +header . Even tests/fs-tests/lib/tests.c uses these flags +and includes both and headers. + +This patch fixes above build error by including header + +This build error is found by Buildroot autobuilder +http://autobuild.buildroot.net/results/6a1/6a1bd73cc56cd257fa939702728802b63446473e/ + +Signed-off-by: Rahul Bedarkar +--- + tests/fs-tests/integrity/integck.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c +index 8badd1f..31215ff 100644 +--- a/tests/fs-tests/integrity/integck.c ++++ b/tests/fs-tests/integrity/integck.c +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + + #define PROGRAM_VERSION "1.1" + #define PROGRAM_NAME "integck" +-- +2.6.2 +