{"id":807719,"url":"http://patchwork.ozlabs.org/api/1.2/patches/807719/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/bfb43496252dc11b95ef7e744206c2a7ad17a734.1504111164.git.arvind.yadav.cs@gmail.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/1.2/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<bfb43496252dc11b95ef7e744206c2a7ad17a734.1504111164.git.arvind.yadav.cs@gmail.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/bfb43496252dc11b95ef7e744206c2a7ad17a734.1504111164.git.arvind.yadav.cs@gmail.com/","date":"2017-08-30T16:48:20","name":"powerpc: 4xx: constify platform_suspend_ops","commit_ref":"7def9a2418430a8af2a56023769ccdcdea7cd7e1","pull_url":null,"state":"accepted","archived":false,"hash":"baf04f826590b69fc63374d5fec5357abc065120","submitter":{"id":69434,"url":"http://patchwork.ozlabs.org/api/1.2/people/69434/?format=json","name":"Arvind Yadav","email":"arvind.yadav.cs@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/bfb43496252dc11b95ef7e744206c2a7ad17a734.1504111164.git.arvind.yadav.cs@gmail.com/mbox/","series":[{"id":654,"url":"http://patchwork.ozlabs.org/api/1.2/series/654/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=654","date":"2017-08-30T16:48:20","name":"powerpc: 4xx: constify platform_suspend_ops","version":1,"mbox":"http://patchwork.ozlabs.org/series/654/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/807719/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/807719/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@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 3xjBMG0GtWz9sNn\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 02:50:18 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjBMF5yHqzDqNm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 02:50:17 +1000 (AEST)","from mail-pf0-x244.google.com (mail-pf0-x244.google.com\n\t[IPv6:2607:f8b0:400e:c00::244])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xjBKD5CQhzDqMY\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 02:48:32 +1000 (AEST)","by mail-pf0-x244.google.com with SMTP id r62so1890382pfj.0\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 30 Aug 2017 09:48:32 -0700 (PDT)","from localhost.localdomain ([103.16.68.146])\n\tby smtp.gmail.com with ESMTPSA id\n\td69sm9129210pgc.82.2017.08.30.09.48.26\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 30 Aug 2017 09:48:28 -0700 (PDT)"],"Authentication-Results":["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=\"MYPEGilQ\"; dkim-atps=neutral","lists.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=\"MYPEGilQ\"; dkim-atps=neutral","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"MYPEGilQ\"; dkim-atps=neutral"],"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=hyOl5HJA8kgqAOy/raVIkD6wrZ40iShy8d0nYrjw82g=;\n\tb=MYPEGilQ4+4xYpJNwI8H14swOB4x3tCIkE4Qe6oaLFJiMJqVP1U1wU/2NGQuGhojcJ\n\tcv0vGmeJ1lO3mj23Cl5bf846eR0bl1CU10eE6ys77vyhKjcnfN+bXiV9qo02Vxbckx76\n\tRsjzNxZB1AoXrd1LY4LVWjUprtoz7Zk+dbephQY3LX1rdp24JBGF2BEA6tdm42yDgUu1\n\tPSTxWF4jcjZLjB9LFD9h813kJESj6rix2kW8/y6BGJmTsBHMP7qYh7Ph8oi4czHCepBj\n\tPnifP7RWJFuKgno2tiaXJQUGzsubVg8bnNJ7vNko9IOUgDMu2csRF1fLnYxU/aFTwy/H\n\tbXjw==","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=hyOl5HJA8kgqAOy/raVIkD6wrZ40iShy8d0nYrjw82g=;\n\tb=UTZKSCtBVApUBjeiAMwA+F76TNypYMIm+y/Sbmsk/Q9jjGFWzNeGizSHSsCg7UEQn2\n\tiwiT9jQgRYg43ELEKAW9SFgNg4fdIlQWtXl/TyTfVC+Uu2gNXD2jNzET0J3Sqno7WXcr\n\tgIolG2GIiU+r2x1eVuIkOmB5T8E0/1GYUad3mZnr2VgqUTAxsMXKxufi1d+Grh3ReBua\n\tW9BzSnbM31y6mWm6CKD/EjuolgXmh9N/fI6SL5djaczRMD+jeTpB+enbMWyaMizQScug\n\tRMNNOsLgPcaIvbg9TCZDRL7OU51ToP5CRE0dmYYRiL+wLTsDyqkCwHeapg/ZQgvaKrFT\n\ttUFQ==","X-Gm-Message-State":"AHYfb5iZbVYwZXT+h7nIkQUgbbgzfF7518hsZ4njTPPB7L7m/a9+rF9D\n\tB0+3N3O+HKg4AA==","X-Received":"by 10.84.224.136 with SMTP id s8mr2689632plj.179.1504111709506; \n\tWed, 30 Aug 2017 09:48:29 -0700 (PDT)","From":"Arvind Yadav <arvind.yadav.cs@gmail.com>","To":"mpe@ellerman.id.au,\n\tpaulus@samba.org,\n\tbenh@kernel.crashing.org","Subject":"[PATCH] powerpc: 4xx: constify platform_suspend_ops","Date":"Wed, 30 Aug 2017 22:18:20 +0530","Message-Id":"<bfb43496252dc11b95ef7e744206c2a7ad17a734.1504111164.git.arvind.yadav.cs@gmail.com>","X-Mailer":"git-send-email 2.7.4","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Cc":"linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"platform_suspend_ops are not supposed to change at runtime.\nFunctions suspend_set_ops working with const platform_suspend_ops.\nSo mark the non-const structs as const.\n\nSigned-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>\n---\n arch/powerpc/sysdev/ppc4xx_cpm.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/arch/powerpc/sysdev/ppc4xx_cpm.c b/arch/powerpc/sysdev/ppc4xx_cpm.c\nindex ba95adf..6483675 100644\n--- a/arch/powerpc/sysdev/ppc4xx_cpm.c\n+++ b/arch/powerpc/sysdev/ppc4xx_cpm.c\n@@ -240,7 +240,7 @@ static int cpm_suspend_enter(suspend_state_t state)\n \treturn 0;\n }\n \n-static struct platform_suspend_ops cpm_suspend_ops = {\n+static const struct platform_suspend_ops cpm_suspend_ops = {\n \t.valid\t\t= cpm_suspend_valid,\n \t.enter\t\t= cpm_suspend_enter,\n };\n","prefixes":[]}