{"id":804720,"url":"http://patchwork.ozlabs.org/api/1.2/patches/804720/?format=json","web_url":"http://patchwork.ozlabs.org/project/petitboot/patch/20170823013855.14978-1-sam@mendozajonas.com/","project":{"id":53,"url":"http://patchwork.ozlabs.org/api/1.2/projects/53/?format=json","name":"Petitboot development","link_name":"petitboot","list_id":"petitboot.lists.ozlabs.org","list_email":"petitboot@lists.ozlabs.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170823013855.14978-1-sam@mendozajonas.com>","list_archive_url":null,"date":"2017-08-23T01:38:55","name":"lib/flash: Update type of size field","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"b89e0279444b6f96e581ed7ca12b74b3ead34716","submitter":{"id":68013,"url":"http://patchwork.ozlabs.org/api/1.2/people/68013/?format=json","name":"Sam Mendoza-Jonas","email":"sam@mendozajonas.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/petitboot/patch/20170823013855.14978-1-sam@mendozajonas.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/804720/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/804720/checks/","tags":{},"related":[],"headers":{"Return-Path":"<petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","petitboot@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","petitboot@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xcVTD5LR3z9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 11:39:12 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xcVTD47KvzDqkZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Aug 2017 11:39:12 +1000 (AEST)","from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n\t[66.111.4.25])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xcVT54sftzDqTr\n\tfor <petitboot@lists.ozlabs.org>;\n\tWed, 23 Aug 2017 11:39:05 +1000 (AEST)","from compute2.internal (compute2.nyi.internal [10.202.2.42])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 238B72138C;\n\tTue, 22 Aug 2017 21:39:03 -0400 (EDT)","from frontend1 ([10.202.2.160])\n\tby compute2.internal (MEProxy); Tue, 22 Aug 2017 21:39:03 -0400","from v4.ozlabs.ibm.com (unknown [122.99.82.10])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id F39E57E300;\n\tTue, 22 Aug 2017 21:39:01 -0400 (EDT)"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=mendozajonas.com header.i=@mendozajonas.com\n\theader.b=\"FW8WSYOF\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"DQdGNSUb\"; \n\tdkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=mendozajonas.com header.i=@mendozajonas.com\n\theader.b=\"FW8WSYOF\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"DQdGNSUb\"; \n\tdkim-atps=neutral","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=mendozajonas.com header.i=@mendozajonas.com\n\theader.b=\"FW8WSYOF\"; dkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com\n\theader.b=\"DQdGNSUb\"; dkim-atps=neutral"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmendozajonas.com; h=cc:date:from:message-id:subject:to\n\t:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=tsQg8B\n\toa8pKWtIt8OrUBLt2/xM6BrxEVe3T4Ga7ibjE=; b=FW8WSYOFAKPcsuD1h6Dzw7\n\tfBkRhS/usspvnGtTXOMNgGd1KAINsMhqQBY8j3JfIpXUggi7YUr5b56ZgjUFxQ/R\n\t8WDBr3nFFnZwROvtxeXlNGoOQuXEYUIc0LXCMVZ/7V9A8A1ofU4P6HZ4ist8a95X\n\tq0/ErtHP6ANG5WkKiFksz5+ktDOaVyW8vgE4FdMcURQ4dowp1xQJJoBxJtr9Xr8H\n\tDCpdQS4QrnXOEYnNts92icNDjEgC9ciVApg/b37x0H66T5RPIqHJklS9D4YEUMF9\n\tNMocDABSLdCCIIWTfkGR32n2IiBjRXyRxaipvYmUdFo6lxUM8EKLb6qhx2/5DNqw\n\t==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:date:from:message-id:subject:to\n\t:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=tsQg8B\n\toa8pKWtIt8OrUBLt2/xM6BrxEVe3T4Ga7ibjE=; b=DQdGNSUbviY72aRdBYs5Uv\n\t/1n+0Lu8yT1Rf+OqrMF+Sg66IRK7ciL3U/X4f+cLtivleDgdmjwGnmITcAdysGGT\n\tiKXGejCDuAJanYXeYvE7Z/9s9ozmsXqgJMFii8g74Ux/Dscsrfi9/ZwkYDIxBavo\n\tK5GVPY5GKlxsiE9wMqWIZVbuEiai2/6QZ/LEotbSDzmET0Pr1biMIYNNDegh8/ER\n\tW2F3wazvhWA9hpN+ge/kkyOZOEOmaVCaw37ReB/D5uo/pm7uPYaRUczKemZk1xzI\n\tv6vbR5FvODZk6bWhwgVjw8IEe8huvZ9yWrPyESzA8CwyPtIud+oPgvmyP149jlAw\n\t=="],"X-ME-Sender":"<xms:t9ycWYE0c7Fn3nR_57KKKBYUbJ-YX1XBKbLoIHKFOymp8AdVCRMr7Q>","X-Sasl-enc":"wgQMu4DU2w6nUXtwfujsS8lCQDgxS165/DaUnqFIYxLg 1503452342","From":"Samuel Mendoza-Jonas <sam@mendozajonas.com>","To":"petitboot@lists.ozlabs.org","Subject":"[PATCH] lib/flash: Update type of size field","Date":"Wed, 23 Aug 2017 11:38:55 +1000","Message-Id":"<20170823013855.14978-1-sam@mendozajonas.com>","X-Mailer":"git-send-email 2.14.0","X-BeenThere":"petitboot@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Petitboot bootloader development <petitboot.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/petitboot>,\n\t<mailto:petitboot-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/petitboot/>","List-Post":"<mailto:petitboot@lists.ozlabs.org>","List-Help":"<mailto:petitboot-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/petitboot>,\n\t<mailto:petitboot-request@lists.ozlabs.org?subject=subscribe>","Cc":"Samuel Mendoza-Jonas <sam@mendozajonas.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org","Sender":"\"Petitboot\"\n\t<petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"},"content":"Skiboot commit c043065 \"flash: Make size 64 bit safe\" updated the\nprototype of blocklevel_get_info() to use a uint64_t for the size\nparameter. Update our usage to reflect this.\n\nSigned-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>\n---\n lib/flash/flash.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/lib/flash/flash.c b/lib/flash/flash.c\nindex 1384118..464b876 100644\n--- a/lib/flash/flash.c\n+++ b/lib/flash/flash.c\n@@ -36,7 +36,7 @@ struct flash_info {\n \t/* Device information */\n \tstruct blocklevel_device\t*bl;\n \tstruct ffs_handle\t\t*ffs;\n-\tuint32_t\t\t\tsize;\t/* raw size of partition */\n+\tuint64_t\t\t\tsize;\t/* raw size of partition */\n \tconst char\t\t\t*path;\n \tbool\t\t\t\tecc;\n \tuint32_t\t\t\terase_granule;\n@@ -124,7 +124,7 @@ static struct flash_info *flash_setup_buffer(void *ctx, const char *partition)\n \n \tpb_debug(\"%s Details\\n\", partition);\n \tpb_debug(\"\\tName\\t\\t%s\\n\", info->path);\n-\tpb_debug(\"\\tFlash Size\\t%u\\n\", info->size);\n+\tpb_debug(\"\\tFlash Size\\t%lu\\n\", info->size);\n \tpb_debug(\"\\tGranule\\t\\t%u\\n\", info->erase_granule);\n \tpb_debug(\"\\tECC\\t\\t%s\\n\", info->ecc ? \"Protected\" : \"Unprotected\");\n \tpb_debug(\"\\tCurrent Side info:\\n\");\n","prefixes":[]}