{"id":816083,"url":"http://patchwork.ozlabs.org/api/patches/816083/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170920071512.19522-2-bsingharora@gmail.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/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":"<20170920071512.19522-2-bsingharora@gmail.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170920071512.19522-2-bsingharora@gmail.com/","date":"2017-09-20T07:15:08","name":"[v3,1/5] powerpc/mce.c: Remove unused function get_mce_fault_addr()","commit_ref":null,"pull_url":null,"state":"superseded","archived":true,"hash":"c2fbb1c19a08be00e982b4d54ed5c2fc8fcf52b4","submitter":{"id":9347,"url":"http://patchwork.ozlabs.org/api/people/9347/?format=json","name":"Balbir Singh","email":"bsingharora@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170920071512.19522-2-bsingharora@gmail.com/mbox/","series":[{"id":4046,"url":"http://patchwork.ozlabs.org/api/series/4046/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=4046","date":"2017-09-20T07:15:07","name":"Revisit MCE handling for UE Errors","version":3,"mbox":"http://patchwork.ozlabs.org/series/4046/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/816083/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/816083/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 [IPv6:2401:3900:2:1::3])\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 3xxrhH1Cjjz9s8J\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 17:18:55 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xxrhH04GvzDqYd\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 17:18:55 +1000 (AEST)","from mail-pf0-x243.google.com (mail-pf0-x243.google.com\n\t[IPv6:2607:f8b0:400e:c00::243])\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 3xxrcK33pjzDqR8\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 17:15:29 +1000 (AEST)","by mail-pf0-x243.google.com with SMTP id a7so869030pfj.5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 00:15:29 -0700 (PDT)","from firefly.ozlabs.ibm.com.ozlabs.ibm.com ([122.99.82.10])\n\tby smtp.gmail.com with ESMTPSA id\n\ts68sm7482771pfd.72.2017.09.20.00.15.24\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 00:15:26 -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=\"WNgTyztZ\"; 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=\"WNgTyztZ\"; dkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c00::243; helo=mail-pf0-x243.google.com;\n\tenvelope-from=bsingharora@gmail.com; receiver=<UNKNOWN>)","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"WNgTyztZ\"; 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:in-reply-to:references;\n\tbh=cb/oq/9Ld847hcWmV9Y7jUomVcW/qW7SWYA2g1ZZiaE=;\n\tb=WNgTyztZVRoQU4NlohdE+/ZQYXW3IcDMeooMI+B+L4QbI+3ZtXUYiag045w/cKJvb/\n\tYhOFmatdacbkpEwUtosoKh/2Y6Dps+VUSZn66OPMEe4AXGw+8sAaEm2qgpWM05EqCdwr\n\tcCb/GjuOrZmdLjgjYjHCbJqJurwQJ8ceuAHQYW7+AVyNr4wUdaNE+X8DElC+tF/IFEWR\n\tlZguf3NqvsiOgqIhlHftZ2Bl4FRRo2II8KbOMZEvwquOcqFF9Za5QCjL7CfyTV8b+LEt\n\twaZJ9egeix2EXtMdhBloi6370ruzpDD2bshZJYjD28kvnmsVFC+fnks7RSD5BD5T9jNe\n\tq1lA==","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:in-reply-to\n\t:references;\n\tbh=cb/oq/9Ld847hcWmV9Y7jUomVcW/qW7SWYA2g1ZZiaE=;\n\tb=Dl0O/XBYFFvBaWVZiC291etn8dHUEe0Lv89KMT53Uo2T6pO/7VNY1HDjPduimoxo+Q\n\tJSxcvVjs0iqILfawTysfQeUHF/Fvc/KE1klX6Jds91kZ8iX/2AFeuxyP4bi6qegx7Jhn\n\twYMkwec5c1ncH664HoqqmOLRa0r7xYuAfU+uVST/VrBayC+YLqtXBa1w+miHCiw4Pkgu\n\ttIQgZjf2gRDPp57f7E3Oe6FFSU3GeufsPNvxGIGxHTsPgu/NpG7JyFVlpkIGpB3+27/Y\n\tEUbX33CE5MFfXaCHH4Rj/FzhaXjI2JAHEa7st3WLAJDZ2lz4nsRLID9OYFqqi/kgch3v\n\tWrBQ==","X-Gm-Message-State":"AHPjjUgSwjwHUqYpRGOeweZQ13O0FIU2G3N3Qt093TNoBMHmmgFX37eg\n\t73llaObKA1z7U2HnaT5HXBZzCQ==","X-Google-Smtp-Source":"AOwi7QAcCzZlbJ1s+mH9DFdHH/4B3hOROtImJKrxyoppEpGQUhauH9cyEtPxZ0UDql2rxBE+6UMiAw==","X-Received":"by 10.98.220.26 with SMTP id t26mr1210473pfg.200.1505891727308; \n\tWed, 20 Sep 2017 00:15:27 -0700 (PDT)","From":"Balbir Singh <bsingharora@gmail.com>","To":"mpe@ellerman.id.au","Subject":"[PATCH v3 1/5] powerpc/mce.c: Remove unused function\n\tget_mce_fault_addr()","Date":"Wed, 20 Sep 2017 17:15:08 +1000","Message-Id":"<20170920071512.19522-2-bsingharora@gmail.com>","X-Mailer":"git-send-email 2.9.5","In-Reply-To":"<20170920071512.19522-1-bsingharora@gmail.com>","References":"<20170920071512.19522-1-bsingharora@gmail.com>","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.24","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":"mahesh@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org,\n\tnpiggin@gmail.com","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":"There are no users of get_mce_fault_addr()\n\nFixes: b63a0ff (\"powerpc/powernv: Machine check exception handling.\")\n\nSigned-off-by: Balbir Singh <bsingharora@gmail.com>\n---\n arch/powerpc/include/asm/mce.h |  2 --\n arch/powerpc/kernel/mce.c      | 39 ---------------------------------------\n 2 files changed, 41 deletions(-)","diff":"diff --git a/arch/powerpc/include/asm/mce.h b/arch/powerpc/include/asm/mce.h\nindex 190d69a..75292c7 100644\n--- a/arch/powerpc/include/asm/mce.h\n+++ b/arch/powerpc/include/asm/mce.h\n@@ -210,6 +210,4 @@ extern void release_mce_event(void);\n extern void machine_check_queue_event(void);\n extern void machine_check_print_event_info(struct machine_check_event *evt,\n \t\t\t\t\t   bool user_mode);\n-extern uint64_t get_mce_fault_addr(struct machine_check_event *evt);\n-\n #endif /* __ASM_PPC64_MCE_H__ */\ndiff --git a/arch/powerpc/kernel/mce.c b/arch/powerpc/kernel/mce.c\nindex 9b2ea7e..e254399 100644\n--- a/arch/powerpc/kernel/mce.c\n+++ b/arch/powerpc/kernel/mce.c\n@@ -411,45 +411,6 @@ void machine_check_print_event_info(struct machine_check_event *evt,\n }\n EXPORT_SYMBOL_GPL(machine_check_print_event_info);\n \n-uint64_t get_mce_fault_addr(struct machine_check_event *evt)\n-{\n-\tswitch (evt->error_type) {\n-\tcase MCE_ERROR_TYPE_UE:\n-\t\tif (evt->u.ue_error.effective_address_provided)\n-\t\t\treturn evt->u.ue_error.effective_address;\n-\t\tbreak;\n-\tcase MCE_ERROR_TYPE_SLB:\n-\t\tif (evt->u.slb_error.effective_address_provided)\n-\t\t\treturn evt->u.slb_error.effective_address;\n-\t\tbreak;\n-\tcase MCE_ERROR_TYPE_ERAT:\n-\t\tif (evt->u.erat_error.effective_address_provided)\n-\t\t\treturn evt->u.erat_error.effective_address;\n-\t\tbreak;\n-\tcase MCE_ERROR_TYPE_TLB:\n-\t\tif (evt->u.tlb_error.effective_address_provided)\n-\t\t\treturn evt->u.tlb_error.effective_address;\n-\t\tbreak;\n-\tcase MCE_ERROR_TYPE_USER:\n-\t\tif (evt->u.user_error.effective_address_provided)\n-\t\t\treturn evt->u.user_error.effective_address;\n-\t\tbreak;\n-\tcase MCE_ERROR_TYPE_RA:\n-\t\tif (evt->u.ra_error.effective_address_provided)\n-\t\t\treturn evt->u.ra_error.effective_address;\n-\t\tbreak;\n-\tcase MCE_ERROR_TYPE_LINK:\n-\t\tif (evt->u.link_error.effective_address_provided)\n-\t\t\treturn evt->u.link_error.effective_address;\n-\t\tbreak;\n-\tdefault:\n-\tcase MCE_ERROR_TYPE_UNKNOWN:\n-\t\tbreak;\n-\t}\n-\treturn 0;\n-}\n-EXPORT_SYMBOL(get_mce_fault_addr);\n-\n /*\n  * This function is called in real mode. Strictly no printk's please.\n  *\n","prefixes":["v3","1/5"]}