{"id":812682,"url":"http://patchwork.ozlabs.org/api/patches/812682/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170912043859.32473-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":"<20170912043859.32473-2-bsingharora@gmail.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170912043859.32473-2-bsingharora@gmail.com/","date":"2017-09-12T04:38:56","name":"[v1,1/4] 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/20170912043859.32473-2-bsingharora@gmail.com/mbox/","series":[{"id":2612,"url":"http://patchwork.ozlabs.org/api/series/2612/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=2612","date":"2017-09-12T04:38:55","name":"Revisit MCE handling for UE Errors","version":1,"mbox":"http://patchwork.ozlabs.org/series/2612/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812682/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812682/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 3xrsbq245Yz9s76\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 12 Sep 2017 14:42:47 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xrsbq102jzDqYg\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 12 Sep 2017 14:42:47 +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 3xrsWn4KNGzDrDg\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue, 12 Sep 2017 14:39:17 +1000 (AEST)","by mail-pf0-x244.google.com with SMTP id g65so5563111pfe.1\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 11 Sep 2017 21:39:17 -0700 (PDT)","from firefly.ozlabs.ibm.com ([122.99.82.10])\n\tby smtp.gmail.com with ESMTPSA id\n\tc62sm1165226pfl.84.2017.09.11.21.39.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 11 Sep 2017 21:39:15 -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=\"QzJGTQjH\"; 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=\"QzJGTQjH\"; dkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c00::244; helo=mail-pf0-x244.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=\"QzJGTQjH\"; 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=QzJGTQjHyivHUuKAmoDiltf/KecHKHZXCNS5GfcSSWrUoYQtoB9QOzVD1bQj04eYmS\n\tVpB6v89bFwruzBYnvZ6Lou/u5craOwXp/+2mBzrocJAZrh2OPBvA8R8bBFOiaq1CqIPS\n\tShHbAcoJNzj1hoflKnn61u3QITjneAxNrOM9gdOlChlcJcvGMjcLHYHxJWhsklz3swSi\n\tFaw+CPvqTfw/z2xgoILuyaO5uUTk3MQAPiv/r+hx8qxByrQyotNwU63Ex+qrDAcLdFYa\n\tTzNduNStJhsY/jrVwqtzUnvGexEDmklASU/ZzpeuXfTBixoJ5SmzBerF1Ve/gjQJ2pAV\n\twY/w==","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=samCepjSV+rz3wRqzrO087EXLzD8ClSokq20TXO8uNCq8eRp3ELqj81BCUUaYKGz9t\n\tpT4iSZpSxkVNp8DhyMvQmRBpbQIChjTaBkR4SIn8FBT0N0n1WE4gSrlaKjicTwd2WeSE\n\tzwq+4WSLdsVGCOC/iqf+YrWwlOptheVL9vGvLvMUS5/bntA8cHvL9sk/aP0sRyrp0ARG\n\tj11UcLk2oXgprEUoPjmjSuVSTK+seAE6DJS+LjLhp9Y2821+YSQiuTMDgzc/5sMeBfqu\n\t4wk2TT6wfEn2WwBHKvSCmv1ydcLzrK9dWipJV2VgdwgBe9RgXdyzliAlaPwiJ0LArW2v\n\t+xaw==","X-Gm-Message-State":"AHPjjUhQSBtGi1kxQD+ukm1JLTohabNRU6lT09PqxUyBseg6ExYy2+z6\n\tWwodswxucOrfDA==","X-Google-Smtp-Source":"ADKCNb5bOv/SCrxDy9L0tQORzptqjxQQFQS+ELA/hudyGG1dYq72cohLFn2YpudOZlcIg1Aq1dMrqg==","X-Received":"by 10.84.224.141 with SMTP id s13mr15697825plj.409.1505191155664;\n\tMon, 11 Sep 2017 21:39:15 -0700 (PDT)","From":"Balbir Singh <bsingharora@gmail.com>","To":"mpe@ellerman.id.au","Subject":"[PATCH v1 1/4] powerpc/mce.c: Remove unused function\n\tget_mce_fault_addr()","Date":"Tue, 12 Sep 2017 14:38:56 +1000","Message-Id":"<20170912043859.32473-2-bsingharora@gmail.com>","X-Mailer":"git-send-email 2.9.5","In-Reply-To":"<20170912043859.32473-1-bsingharora@gmail.com>","References":"<20170912043859.32473-1-bsingharora@gmail.com>","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":"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":["v1","1/4"]}