Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/813311/?format=api
{ "id": 813311, "url": "http://patchwork.ozlabs.org/api/patches/813311/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1505297804-26648-1-git-send-email-yamada.masahiro@socionext.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1505297804-26648-1-git-send-email-yamada.masahiro@socionext.com>", "list_archive_url": null, "date": "2017-09-13T10:16:44", "name": "[U-Boot] linux/kernel.h: import DIV_ROUND_{DOWN, UP}_ULL from Linux", "commit_ref": "84570a0c111ac50372d51271eadc13ff5cbb1a54", "pull_url": null, "state": "accepted", "archived": false, "hash": "cbc6279e194a4bf79749316723593e893a336d0d", "submitter": { "id": 65882, "url": "http://patchwork.ozlabs.org/api/people/65882/?format=api", "name": "Masahiro Yamada", "email": "yamada.masahiro@socionext.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1505297804-26648-1-git-send-email-yamada.masahiro@socionext.com/mbox/", "series": [ { "id": 2867, "url": "http://patchwork.ozlabs.org/api/series/2867/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=2867", "date": "2017-09-13T10:16:44", "name": "[U-Boot] linux/kernel.h: import DIV_ROUND_{DOWN, UP}_ULL from Linux", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2867/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/813311/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/813311/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=nifty.com header.i=@nifty.com\n\theader.b=\"ik9NQrN6\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xscyz2Pqyz9sBW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 20:16:59 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 089E0C22608; Wed, 13 Sep 2017 10:16:57 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D135DC225CA;\n\tWed, 13 Sep 2017 10:16:54 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 82278C225CA; Wed, 13 Sep 2017 10:16:53 +0000 (UTC)", "from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78])\n\tby lists.denx.de (Postfix) with ESMTPS id 83BB3C225AB\n\tfor <u-boot@lists.denx.de>; Wed, 13 Sep 2017 10:16:52 +0000 (UTC)", "from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp\n\t[153.142.97.92]) (authenticated)\n\tby conuserg-11.nifty.com with ESMTP id v8DAGkY2008024;\n\tWed, 13 Sep 2017 19:16:46 +0900" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0", "DKIM-Filter": "OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v8DAGkY2008024", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com;\n\ts=dec2015msa; t=1505297806;\n\tbh=eo4XQrKKZ06siIQdvIPDkCJa1cdCphNtdzAsMJyc8cs=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=ik9NQrN6ASnIOU5A3TXfqX50kQgNdCfWhwztaU4JYKlrK6qzyNtC8VhU2SkYs8/wR\n\tkk8rNsHYi1nXM/av1Ry+ryMbDOzEk3VQIKAMGwFD0JrtVQf+zYpLY1nXe5/GrWpZcY\n\tjNLggL7aFegukdm3caAKJ4I89nONiLGX5uw3VSWS/Dz94h0O0YBGJ8N7iQLM0zk2hQ\n\tri1bMTtdLDzwFdEMhdnQ38PWmDOumlXBSdK/k2IortUab2b/yu/DDZDLUxRnqCru6n\n\tR3Sk/M2jI3nj+lilCPI3tIQy6qCYqhO/Fur9p2yXrFAtaDJZxYVAZAMeIMW4hVfWwy\n\tMV0eZNg08QqCQ==", "X-Nifty-SrcIP": "[153.142.97.92]", "From": "Masahiro Yamada <yamada.masahiro@socionext.com>", "To": "u-boot@lists.denx.de", "Date": "Wed, 13 Sep 2017 19:16:44 +0900", "Message-Id": "<1505297804-26648-1-git-send-email-yamada.masahiro@socionext.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[U-Boot] [PATCH] linux/kernel.h: import DIV_ROUND_{DOWN,\n\tUP}_ULL from Linux", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "These macros are useful to avoid link error on 32-bit systems.\n\nSigned-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>\n---\n\n include/linux/kernel.h | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/include/linux/kernel.h b/include/linux/kernel.h\nindex 0b61671..87d2d95 100644\n--- a/include/linux/kernel.h\n+++ b/include/linux/kernel.h\n@@ -57,6 +57,11 @@\n #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))\n #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))\n \n+#define DIV_ROUND_DOWN_ULL(ll, d) \\\n+\t({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; })\n+\n+#define DIV_ROUND_UP_ULL(ll, d)\t\tDIV_ROUND_DOWN_ULL((ll) + (d) - 1, (d))\n+\n #if BITS_PER_LONG == 32\n # define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d)\n #else\n", "prefixes": [ "U-Boot" ] }