Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/803752/?format=api
{ "id": 803752, "url": "http://patchwork.ozlabs.org/api/patches/803752/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170820152000.15906-1-marek.vasut+renesas@gmail.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": "<20170820152000.15906-1-marek.vasut+renesas@gmail.com>", "list_archive_url": null, "date": "2017-08-20T15:20:00", "name": "[U-Boot] mtd: cfi: staticize functions", "commit_ref": "236c49a1c89f959e0b96c87a712688ba93abd3c4", "pull_url": null, "state": "accepted", "archived": false, "hash": "d9c92c4c5200c3ded44b3ef50f8775dd90653159", "submitter": { "id": 1124, "url": "http://patchwork.ozlabs.org/api/people/1124/?format=api", "name": "Marek Vasut", "email": "marek.vasut@gmail.com" }, "delegate": { "id": 1696, "url": "http://patchwork.ozlabs.org/api/users/1696/?format=api", "username": "stroese", "first_name": "Stefan", "last_name": "Roese", "email": "sr@denx.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170820152000.15906-1-marek.vasut+renesas@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/803752/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/803752/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=gmail.com header.i=@gmail.com\n\theader.b=\"aMLecp+4\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xb0tQ1JWVz9sMN\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 21 Aug 2017 01:22:22 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid D826CC220A0; Sun, 20 Aug 2017 15:22:17 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id ABA09C22028;\n\tSun, 20 Aug 2017 15:22:15 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 8510BC2209E; Sun, 20 Aug 2017 15:20:48 +0000 (UTC)", "from mail-wr0-f193.google.com (mail-wr0-f193.google.com\n\t[209.85.128.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 7F747C2206F\n\tfor <u-boot@lists.denx.de>; Sun, 20 Aug 2017 15:20:48 +0000 (UTC)", "by mail-wr0-f193.google.com with SMTP id k10so1009931wre.5\n\tfor <u-boot@lists.denx.de>; Sun, 20 Aug 2017 08:20:48 -0700 (PDT)", "from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz.\n\t[86.49.107.50]) by smtp.gmail.com with ESMTPSA id\n\ta70sm5214572wma.32.2017.08.20.08.20.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 20 Aug 2017 08:20:47 -0700 (PDT)" ], "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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=ypq0cK+J5/Pm1VLDzVOP6dCiTI14naDaCUxB+Hbe0NU=;\n\tb=aMLecp+4AYo45lrDunDVqBT2AiN16ux9jBdMlCLoucrOFWiBXaK/G+cpqxOqQoUlhT\n\t+dEdyTgVPgwYDmXzB4qsjwzSXsrsWt2cqvmH0RmydEJts0/nQ4ItVNcErsFYLQlLBQOI\n\tsM0ZxvlQXvKWuj97Ixf/pmrW4MeA817jZ0C6RNEYXcBESBjML3jfBnPnRPddk/a708ge\n\tvumnlJLVGEizIPXKQCnWOSwJQzHKujGhSE7cOzJqYs1V8+lH2wZceCUXeESogavQ+hsM\n\totkD+oNHrFGDMx4X213XhTBAeYCIe3xiUmvtSu/7B5wnZTvQo0NfNwRCL9bppgHJ+lCH\n\tuhew==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=ypq0cK+J5/Pm1VLDzVOP6dCiTI14naDaCUxB+Hbe0NU=;\n\tb=MiJp847fUEl5Gfgu77qcwmbjZQ0hJvZyUeS5HiaH5wpzH44PTFe/h/07W1V90adpWZ\n\tfIicIoupztifWYUS/rtUNQbHPpqKSCRZmUDwcwuudLggY1kcvxZHMfjUc9e7VYb62qOm\n\tJYYDt/a4St3d363loLnttF42gl8jEyPpi7AxoxGO9t+KAvATN2ghbFce7gCFI1EPUYzE\n\tvnUkqGdRBv+93WJs+OUEe9bnnELdNIAFDCZxxTngPLrdlToEcccfm2UWdExZbYvot1i2\n\tb+q1lTjZFOXPz1NX2N9DDgksok5rPuyqMk9IRrgsCkx/KHTU4Tv+deFIXxjcw5AVddPU\n\tZP+w==", "X-Gm-Message-State": "AHYfb5iLpGFT/MYzSImyVDtokIIQRNTvAyJ6YfwNHc8DPr0q4QoRiRBp\n\tH4ymYIlyX04Z7ZETqNc=", "X-Received": "by 10.28.156.129 with SMTP id f123mr5376036wme.177.1503242447801;\n\tSun, 20 Aug 2017 08:20:47 -0700 (PDT)", "From": "Marek Vasut <marek.vasut@gmail.com>", "X-Google-Original-From": "Marek Vasut <marek.vasut+renesas@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Sun, 20 Aug 2017 17:20:00 +0200", "Message-Id": "<20170820152000.15906-1-marek.vasut+renesas@gmail.com>", "X-Mailer": "git-send-email 2.11.0", "Cc": "Stefan Roese <sr@denx.de>, Marek Vasut <marek.vasut+renesas@gmail.com>", "Subject": "[U-Boot] [PATCH] mtd: cfi: staticize functions", "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": "Staticize a few functions and variables which are no longer exposed.\n\nSigned-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\nCc: Stefan Roese <sr@denx.de>\n---\n drivers/mtd/cfi_flash.c | 8 ++++----\n include/flash.h | 5 -----\n include/mtd/cfi_flash.h | 2 --\n 3 files changed, 4 insertions(+), 11 deletions(-)", "diff": "diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c\nindex 8b5a653d22..df04a425e2 100644\n--- a/drivers/mtd/cfi_flash.c\n+++ b/drivers/mtd/cfi_flash.c\n@@ -176,7 +176,7 @@ __maybe_weak u64 flash_read64(void *addr)\n /*-----------------------------------------------------------------------\n */\n #if defined(CONFIG_ENV_IS_IN_FLASH) || defined(CONFIG_ENV_ADDR_REDUND) || (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)\n-flash_info_t *flash_get_info(ulong base)\n+static flash_info_t *flash_get_info(ulong base)\n {\n \tint i;\n \tflash_info_t *info;\n@@ -353,8 +353,8 @@ static ulong flash_read_long (flash_info_t * info, flash_sect_t sect,\n /*\n * Write a proper sized command to the correct address\n */\n-void flash_write_cmd (flash_info_t * info, flash_sect_t sect,\n-\t\t uint offset, u32 cmd)\n+static void flash_write_cmd(flash_info_t *info, flash_sect_t sect,\n+\t\t\t uint offset, u32 cmd)\n {\n \n \tvoid *addr;\n@@ -2296,7 +2296,7 @@ static void cfi_flash_set_config_reg(u32 base, u16 val)\n /*-----------------------------------------------------------------------\n */\n \n-void flash_protect_default(void)\n+static void flash_protect_default(void)\n {\n #if defined(CONFIG_SYS_FLASH_AUTOPROTECT_LIST)\n \tint i;\ndiff --git a/include/flash.h b/include/flash.h\nindex 8b67b8747a..0eedb1efa8 100644\n--- a/include/flash.h\n+++ b/include/flash.h\n@@ -85,7 +85,6 @@ typedef unsigned long flash_sect_t;\n /* Prototypes */\n \n extern unsigned long flash_init (void);\n-extern void flash_protect_default(void);\n extern void flash_print_info (flash_info_t *);\n extern int flash_erase\t(flash_info_t *, int, int);\n extern int flash_sect_erase (ulong addr_first, ulong addr_last);\n@@ -118,10 +117,6 @@ extern int jedec_flash_match(flash_info_t *info, ulong base);\n #define CFI_CMDSET_AMD_LEGACY\t\t0xFFF0\n #endif\n \n-#if defined(CONFIG_SYS_FLASH_CFI)\n-extern flash_info_t *flash_get_info(ulong base);\n-#endif\n-\n /*-----------------------------------------------------------------------\n * return codes from flash_write():\n */\ndiff --git a/include/mtd/cfi_flash.h b/include/mtd/cfi_flash.h\nindex 52572b9b02..eade2b3614 100644\n--- a/include/mtd/cfi_flash.h\n+++ b/include/mtd/cfi_flash.h\n@@ -165,8 +165,6 @@ extern int cfi_flash_num_flash_banks;\n #define CFI_MAX_FLASH_BANKS\tCONFIG_SYS_MAX_FLASH_BANKS\n #endif\n \n-void flash_write_cmd(flash_info_t * info, flash_sect_t sect,\n-\t\t uint offset, u32 cmd);\n phys_addr_t cfi_flash_bank_addr(int i);\n unsigned long cfi_flash_bank_size(int i);\n void flash_cmd_reset(flash_info_t *info);\n", "prefixes": [ "U-Boot" ] }