Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/806435/?format=api
{ "id": 806435, "url": "http://patchwork.ozlabs.org/api/patches/806435/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/4039663983bf372bd802549ef313ff1e466ed18a.1503908316.git.arvind.yadav.cs@gmail.com/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<4039663983bf372bd802549ef313ff1e466ed18a.1503908316.git.arvind.yadav.cs@gmail.com>", "list_archive_url": null, "date": "2017-08-28T08:24:57", "name": "mtd: constify mtd_partition", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "87b30806cbc1a6b778ff178a75af8b5868769648", "submitter": { "id": 69434, "url": "http://patchwork.ozlabs.org/api/people/69434/?format=api", "name": "Arvind Yadav", "email": "arvind.yadav.cs@gmail.com" }, "delegate": { "id": 54851, "url": "http://patchwork.ozlabs.org/api/users/54851/?format=api", "username": "rw", "first_name": "Richard", "last_name": "Weinberger", "email": "richard@nod.at" }, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/4039663983bf372bd802549ef313ff1e466ed18a.1503908316.git.arvind.yadav.cs@gmail.com/mbox/", "series": [ { "id": 101, "url": "http://patchwork.ozlabs.org/api/series/101/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=101", "date": "2017-08-28T08:24:57", "name": "mtd: constify mtd_partition", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/101/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/806435/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/806435/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"LZ4QzPTA\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jt8DHcZh\"; dkim-atps=neutral" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xglGf4rM5z9s7p\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 18:26:17 +1000 (AEST)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmFN3-00048p-KF; Mon, 28 Aug 2017 08:26:09 +0000", "from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dmFMf-0003uR-50\n\tfor linux-mtd@lists.infradead.org; Mon, 28 Aug 2017 08:25:47 +0000", "by mail-pg0-x242.google.com with SMTP id r133so5841523pgr.2\n\tfor <linux-mtd@lists.infradead.org>;\n\tMon, 28 Aug 2017 01:25:23 -0700 (PDT)", "from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102])\n\tby smtp.googlemail.com with ESMTPSA id\n\tk197sm12209562pga.78.2017.08.28.01.25.19\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tMon, 28 Aug 2017 01:25:22 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:\n\tSubject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:\n\tReferences:List-Owner; bh=O2FwDSMOLH1VREYjquO6zz84fwiTCCh1jnmSVcjGGuo=;\n\tb=LZ4\n\tQzPTAxSZIvIq6U3k7f6etUgAc6i/9P9+dPM/+v9D9WtHoARnyVkTThJhjzEh6pseDvXPy+w20CfJN\n\t3ahgsWP4oisd2BKhBF5PwrztRVo8M8NccWRSaGFh3kGfqfimd8BSBsR9ixN89iwOND4UA42U9fgxm\n\tI9JgF/UjJmeBMJxlG6yelCop4SODheYjOXjRIzwf4GBFZteDsk783R6ZwjygRnnf3tOWZw+WfO/yn\n\tOhZghCDTqtI/mMxctPC4WZj/3FUCBlFUXKk61DzahLG7dBXR0Cex6Y799V8MDL44hMVu6UfSjM5Mu\n\tg+MfaGf401PobSqOo2Z2WtYXBlZjRUQ==;", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=k6LTT/VmHqvvbT6jtFSx97riY/D2EjXJfGqLrMFPgoc=;\n\tb=jt8DHcZhRDXmrdYRH4bTh8nzS0T98T5fyZy1RB7nIbbtkfeeXZBynGyTpISNb2KnJs\n\t5Ajmu7XVveoxUasbSseUgSUhmvsyIHqSajUo45GJizjts4tYuhZ841KQI0897kom9hSL\n\ta/GgypowQW+VoFrrpqwEYVlasuA0815nJ3W98EDkbe3VD68Zp+SRazzXEqc0OaLmEtbx\n\tmzIH2TPa1PGlhGkJP/qgsQ89Go6XdtyXMN/PHzTYt6Ge+gAEIOffEVUmxFD3nkLIeRjf\n\tzCVbtt83JpaieeOrxL+hdNorLyw3cPF0aDt8ubR287Ku/6KnRr8dMb1Tyos3nyNWHsXo\n\tkF5Q==" ], "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=k6LTT/VmHqvvbT6jtFSx97riY/D2EjXJfGqLrMFPgoc=;\n\tb=sRzRVB8iip+aGCrylYMmlxcu6CjigHYTC7sPwmd4fGomdCePob2YlIeXMC0BS4Q0SW\n\tNB01G97bAHiKvy+gMWC68XlOgcs+EG/Ch4hQ4PXdFI6thA/50cR82wCI09o2x9RZNhgs\n\tH9NkrJLuUFwUocm8ceB1r/b+N+jMWc2BxdUVCVnMt+hh2z7F4wS2DjK5km2SW/XLkyvV\n\tA7FuMcE3c9nbtHAPeYbv5LLLBEHiSPotcE7ON+WD40SgXihbwfYzC6IpJH0cuKC7qgHb\n\tbNOI/6OYinWi6ijts0s9K6UUbIfy3yvR4RxwP9EKbys8B6BdYgrttuAqDKIqgEcT8TvL\n\tXM4Q==", "X-Gm-Message-State": "AHYfb5g4R864MaKKhbUz+BeNw9/AnjPVtVo9dLlq9+ug5xq6nvwwfzCe\n\tWwiwwN63YtBl6A==", "X-Received": "by 10.84.229.136 with SMTP id c8mr7265272plk.27.1503908723134;\n\tMon, 28 Aug 2017 01:25:23 -0700 (PDT)", "From": "Arvind Yadav <arvind.yadav.cs@gmail.com>", "To": "dwmw2@infradead.org, computersforpeace@gmail.com,\n\tboris.brezillon@free-electrons.com, marek.vasut@gmail.com,\n\trichard@nod.at, cyrille.pitchen@wedev4u.fr", "Subject": "[PATCH] mtd: constify mtd_partition", "Date": "Mon, 28 Aug 2017 13:54:57 +0530", "Message-Id": "<4039663983bf372bd802549ef313ff1e466ed18a.1503908316.git.arvind.yadav.cs@gmail.com>", "X-Mailer": "git-send-email 1.9.1", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20170828_012545_335736_A14E6F8E ", "X-CRM114-Status": "GOOD ( 12.82 )", "X-Spam-Score": "-2.0 (--)", "X-Spam-Report": "SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details: (-2.0 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c05:0:0:0:242 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (arvind.yadav.cs[at]gmail.com)\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain", "X-BeenThere": "linux-mtd@lists.infradead.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "Cc": "linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>", "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "mtd_partition are not supposed to change at runtime.\nFunctions 'mtd_device_parse_register' working with const mtd_partition\nprovided by <linux/mtd/mtd.h>. So mark the non-const structs as const.\n\nSigned-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>\n---\n drivers/mtd/devices/lart.c | 2 +-\n drivers/mtd/maps/cfi_flagadm.c | 2 +-\n drivers/mtd/maps/impa7.c | 2 +-\n drivers/mtd/maps/netsc520.c | 2 +-\n drivers/mtd/maps/nettel.c | 2 +-\n drivers/mtd/maps/sbc_gxx.c | 2 +-\n drivers/mtd/maps/ts5500_flash.c | 2 +-\n drivers/mtd/maps/uclinux.c | 2 +-\n drivers/mtd/nand/ams-delta.c | 2 +-\n drivers/mtd/nand/cmx270_nand.c | 2 +-\n 10 files changed, 10 insertions(+), 10 deletions(-)", "diff": "diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c\nindex 268aae4..555b944 100644\n--- a/drivers/mtd/devices/lart.c\n+++ b/drivers/mtd/devices/lart.c\n@@ -583,7 +583,7 @@ static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen\n \t}\n };\n \n-static struct mtd_partition lart_partitions[] = {\n+static const struct mtd_partition lart_partitions[] = {\n \t/* blob */\n \t{\n \t\t.name\t= \"blob\",\ndiff --git a/drivers/mtd/maps/cfi_flagadm.c b/drivers/mtd/maps/cfi_flagadm.c\nindex d504b3d..70f4886 100644\n--- a/drivers/mtd/maps/cfi_flagadm.c\n+++ b/drivers/mtd/maps/cfi_flagadm.c\n@@ -61,7 +61,7 @@\n \t\t.bankwidth =\t2,\n };\n \n-static struct mtd_partition flagadm_parts[] = {\n+static const struct mtd_partition flagadm_parts[] = {\n \t{\n \t\t.name =\t\t\"Bootloader\",\n \t\t.offset\t=\tFLASH_PARTITION0_ADDR,\ndiff --git a/drivers/mtd/maps/impa7.c b/drivers/mtd/maps/impa7.c\nindex 15bbda0..a0b8fa7 100644\n--- a/drivers/mtd/maps/impa7.c\n+++ b/drivers/mtd/maps/impa7.c\n@@ -47,7 +47,7 @@\n /*\n * MTD partitioning stuff\n */\n-static struct mtd_partition partitions[] =\n+static const struct mtd_partition partitions[] =\n {\n \t{\n \t\t.name = \"FileSystem\",\ndiff --git a/drivers/mtd/maps/netsc520.c b/drivers/mtd/maps/netsc520.c\nindex 81dc259..b0517b1 100644\n--- a/drivers/mtd/maps/netsc520.c\n+++ b/drivers/mtd/maps/netsc520.c\n@@ -52,7 +52,7 @@\n /* partition_info gives details on the logical partitions that the split the\n * single flash device into. If the size if zero we use up to the end of the\n * device. */\n-static struct mtd_partition partition_info[]={\n+static const struct mtd_partition partition_info[] = {\n {\n \t .name = \"NetSc520 boot kernel\",\n \t .offset = 0,\ndiff --git a/drivers/mtd/maps/nettel.c b/drivers/mtd/maps/nettel.c\nindex a577ef8..729579f 100644\n--- a/drivers/mtd/maps/nettel.c\n+++ b/drivers/mtd/maps/nettel.c\n@@ -107,7 +107,7 @@\n \t.bankwidth = AMD_BUSWIDTH,\n };\n \n-static struct mtd_partition nettel_amd_partitions[] = {\n+static const struct mtd_partition nettel_amd_partitions[] = {\n \t{\n \t\t.name = \"SnapGear BIOS config\",\n \t\t.offset = 0x000e0000,\ndiff --git a/drivers/mtd/maps/sbc_gxx.c b/drivers/mtd/maps/sbc_gxx.c\nindex 556a2df..8df181f 100644\n--- a/drivers/mtd/maps/sbc_gxx.c\n+++ b/drivers/mtd/maps/sbc_gxx.c\n@@ -87,7 +87,7 @@ Intel StrataFlash (28F320/28F640) in x8 mode.\n /* partition_info gives details on the logical partitions that the split the\n * single flash device into. If the size if zero we use up to the end of the\n * device. */\n-static struct mtd_partition partition_info[]={\n+static const struct mtd_partition partition_info[] = {\n { .name = \"SBC-GXx flash boot partition\",\n .offset = 0,\n .size = BOOT_PARTITION_SIZE_KiB*1024 },\ndiff --git a/drivers/mtd/maps/ts5500_flash.c b/drivers/mtd/maps/ts5500_flash.c\nindex 9969fed..8f177e0 100644\n--- a/drivers/mtd/maps/ts5500_flash.c\n+++ b/drivers/mtd/maps/ts5500_flash.c\n@@ -43,7 +43,7 @@\n \t.phys = WINDOW_ADDR\n };\n \n-static struct mtd_partition ts5500_partitions[] = {\n+static const struct mtd_partition ts5500_partitions[] = {\n \t{\n \t\t.name = \"Drive A\",\n \t\t.offset = 0,\ndiff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c\nindex 00a8190..aef030c 100644\n--- a/drivers/mtd/maps/uclinux.c\n+++ b/drivers/mtd/maps/uclinux.c\n@@ -49,7 +49,7 @@ struct map_info uclinux_ram_map = {\n \n /****************************************************************************/\n \n-static struct mtd_partition uclinux_romfs[] = {\n+static const struct mtd_partition uclinux_romfs[] = {\n \t{ .name = \"ROMfs\" }\n };\n \ndiff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c\nindex 5d6c26f..6cba2e4 100644\n--- a/drivers/mtd/nand/ams-delta.c\n+++ b/drivers/mtd/nand/ams-delta.c\n@@ -41,7 +41,7 @@\n * Define partitions for flash devices\n */\n \n-static struct mtd_partition partition_info[] = {\n+static const struct mtd_partition partition_info[] = {\n \t{ .name\t\t= \"Kernel\",\n \t .offset\t= 0,\n \t .size\t\t= 3 * SZ_1M + SZ_512K },\ndiff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c\nindex 949b940..12a92b3 100644\n--- a/drivers/mtd/nand/cmx270_nand.c\n+++ b/drivers/mtd/nand/cmx270_nand.c\n@@ -42,7 +42,7 @@\n /*\n * Define static partitions for flash device\n */\n-static struct mtd_partition partition_info[] = {\n+static const struct mtd_partition partition_info[] = {\n \t[0] = {\n \t\t.name\t= \"cmx270-0\",\n \t\t.offset\t= 0,\n", "prefixes": [] }