From patchwork Mon Jan 4 14:23:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Kehn X-Patchwork-Id: 562410 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id F02721402DD for ; Tue, 5 Jan 2016 01:23:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.b=I5Wo5lXe; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D4C3486A6C; Mon, 4 Jan 2016 14:23:20 +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 C4mwDeCdulB0; Mon, 4 Jan 2016 14:23:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D3CAC86D12; Mon, 4 Jan 2016 14:23:19 +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 ECC4D1C0F77 for ; Mon, 4 Jan 2016 14:23:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E935232059 for ; Mon, 4 Jan 2016 14:23:18 +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 iNDlLuW1J9kT for ; Mon, 4 Jan 2016 14:23:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm22-vm3.bullet.mail.ne1.yahoo.com (nm22-vm3.bullet.mail.ne1.yahoo.com [98.138.91.152]) by silver.osuosl.org (Postfix) with ESMTPS id 2A25732051 for ; Mon, 4 Jan 2016 14:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1451917396; bh=tbEuloOl3vqI3tcauJZ5FEc6ukNCtTTM03ZdumNRl3g=; h=From:To:Cc:Subject:Date:From:Subject; b=I5Wo5lXeH5om82KyGz2MqUgTeXp1ivmrMbfQmC5lsNObwlgUMKCDEug/187KbOk201TMvWIXEl2jLLxiqN0SbaDEv84w8Tl3hl+Vz5uJ4g3t/N/HgBUJf3NBP2WNBXTYRxn+hYUJOGNWXrzV3Djxrs2QYdyam8wL48OeY4bAtpS7CZyCuz5X9eiymXvkioq4Z2o1Tda6+CIEtiOTFWDG5PCBRwCf5PrmKvSH+wpARCndDbtWCHFPmPYP20VRUICYTzxv4FjQJPpBg2QF+9SKD0lfTFGpC9r402T0tde05vr60aEWCZDVGsdli+5w8MhP3ik9F+8McXe4+Dig59ZMVQ== Received: from [98.138.101.129] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 04 Jan 2016 14:23:16 -0000 Received: from [98.138.226.130] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 04 Jan 2016 14:23:16 -0000 Received: from [127.0.0.1] by smtp217.mail.ne1.yahoo.com with NNFMP; 04 Jan 2016 14:23:16 -0000 X-Yahoo-Newman-Id: 441372.44911.bm@smtp217.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _UORJhkVM1no6i0fu9S5MKtADeBj4ZMP3G1aLXtc.XmnLQd RFd9ctkrZPvAbS5tiyrBtqmZ_yBW63eGZM9.jIs9HpK3.KDzvo43egB100F6 teDp4Ptvp8ZeGRrQ1cLLduvjo_IlGzUALsVy6619e9XuY5DnG2N7jI_10uGd .A7IaxcxFZQjkkHUQRwD6fIs8ELyZVd3nTtKrSZDBsTKeJ1jjYipYKDrUebR g.di1o.Dqx2rNxYqU80F.XwczWWXBYAAbrYs1NbpyGlrtWfiq9ttqQLDm2Q4 cZZDB6weW.iRs1jC1dK6NTUvwwFUH8jIKGxHfjh4ulKU_Vf_V5fmdFwGqzZC VYx1p293vEu4U.id4Ev6YiTee03kpeTYnd.p6gqeLsA5LEtN62jy9SKltclx eiI_Ce33oKkOVLzDs6OxhIS2gyP2xDy84ehfnu1K11PGEA64czA.Ii2PqoNq mB_NQhaIHzyVmLZ5Xp8jdeMEsGsw0o5WOK.frBvev5oTUBLaABEVsT4EI5Nn qcAvEZ8McTBVQbXuBaUYjiJM6if.QFmXlCa2a X-Yahoo-SMTP: tVp.douswBADms9I1_pvnFcs0w-- From: Doug Kehn To: buildroot@buildroot.org Date: Mon, 4 Jan 2016 08:23:00 -0600 Message-Id: <1451917380-2270-1-git-send-email-rdkehn@yahoo.com> X-Mailer: git-send-email 2.6.4 Subject: [Buildroot] [PATCH 1/1] package/sp-oops-extract: consolidate use of stdint types 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Change u_int*_t to uint*_t for compatibility with a larger number of C libraries. This patch resolves 2016-01-02 auto-build failure. This patch has also been submitted upstream (ptxdist@pengutronix.de). Signed-off-by: Doug Kehn --- package/sp-oops-extract/0002-stdint-cleanup.patch | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/sp-oops-extract/0002-stdint-cleanup.patch diff --git a/package/sp-oops-extract/0002-stdint-cleanup.patch b/package/sp-oops-extract/0002-stdint-cleanup.patch new file mode 100644 index 0000000..255fe8a --- /dev/null +++ b/package/sp-oops-extract/0002-stdint-cleanup.patch @@ -0,0 +1,33 @@ +consolidate use of stdint types + +Change u_int*_t to uint*_t for compatibility with a larger number of C +libraries. + +Signed-off-by: Doug Kehn + +Index: sp-oops-extract-0.0.7-1/src/oopslog.c +=================================================================== +--- sp-oops-extract-0.0.7-1.orig/src/oopslog.c ++++ sp-oops-extract-0.0.7-1/src/oopslog.c +@@ -64,8 +64,8 @@ static int try_to_check_for_bad_blocks(v + + int main(const int argc, const char *argv[]) + { +- u_int32_t *count, maxcount = 0xffffffff; +- u_int32_t *magic_ptr, magic_value = 0x5d005d00; ++ uint32_t *count, maxcount = 0xffffffff; ++ uint32_t *magic_ptr, magic_value = 0x5d005d00; + + unsigned char *charbuf; + unsigned long size; +@@ -137,8 +137,8 @@ int main(const int argc, const char *arg + errx(-1, "%s is something weird", device); + + charbuf = buf; +- count = (u_int32_t *) buf; +- magic_ptr = (u_int32_t *) (buf + sizeof(u_int32_t)); ++ count = (uint32_t *) buf; ++ magic_ptr = (uint32_t *) (buf + sizeof(uint32_t)); + + for (i = 0; i < (size / OOPS_PAGE_SIZE); i++) { + pread(fd, buf, OOPS_PAGE_SIZE, i * OOPS_PAGE_SIZE);