get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2228807/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2228807,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228807/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260427122742.210074-9-mkchauras@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/2/?format=api",
        "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/"
    },
    "msgid": "<20260427122742.210074-9-mkchauras@gmail.com>",
    "date": "2026-04-27T12:27:42",
    "name": "[v5,8/8] powerpc: Remove unused functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "37d7d9000f1061cf982353378b550880852967c4",
    "submitter": {
        "id": 92575,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92575/?format=api",
        "name": "Mukesh Kumar Chaurasiya",
        "email": "mkchauras@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260427122742.210074-9-mkchauras@gmail.com/mbox/",
    "series": [
        {
            "id": 501638,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501638/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501638",
            "date": "2026-04-27T12:27:34",
            "name": "Generic IRQ entry/exit support for powerpc",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/501638/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228807/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228807/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-20167-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=NZ61rtm7;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20167-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::434\"",
            "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=NZ61rtm7;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com\n (client-ip=2607:f8b0:4864:20::434; helo=mail-pf1-x434.google.com;\n envelope-from=mkchauras@gmail.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g42vC0QJkz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 22:29:43 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g42vB6bxJz2ytT;\n\tMon, 27 Apr 2026 22:29:42 +1000 (AEST)",
            "from mail-pf1-x434.google.com (mail-pf1-x434.google.com\n [IPv6:2607:f8b0:4864:20::434])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g42vB1bCkz2y2B\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 27 Apr 2026 22:29:42 +1000 (AEST)",
            "by mail-pf1-x434.google.com with SMTP id\n d2e1a72fcca58-83178c0f29cso2789256b3a.0\n        for <linuxppc-dev@lists.ozlabs.org>;\n Mon, 27 Apr 2026 05:29:42 -0700 (PDT)",
            "from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com ([129.41.58.4])\n        by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82f8e9f7735sm32733466b3a.21.2026.04.27.05.29.27\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Mon, 27 Apr 2026 05:29:39 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777292982;\n\tcv=none;\n b=RjGMVLomUzn7Li8wAivTj2mg5poup0QtYzUPoJVa6bIhR9yAtww2q55gAHGPoulGWWNre4gI+O+dOShOJulu74Kps3aYcFme2xgBXBc6hQZ5D0vtyeQdyr/PUAvUiooVsn7bTC4j1/6CNSRha0qFD4D1GWbHn9lNtPEKbCYK19lvOpT+5N01UJRgzwivlSV4docmILLYcnCZ5Lmfw5YyhMsvA+jNYcg8pveqEQ8oGmq5N/9E4kask+KF0X+83e8eNX5STy2VgGXOrPRM6O0eMFXJ7qXDpmWba7OnSv/MYxq57LVPCmvoybaaQdgzthJerqVh1TPy4d1EOjrdZ3xyVA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777292982; c=relaxed/relaxed;\n\tbh=ZyVfwI3ylMQ0K4OSfnwdgKvqJxQMmT7QZ769NDzGoQ0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=PoXPAO+Q+iq/4gTCdWH+R3Ee73GjUBh0X6gktYwpfZkMWEZknTQ3NLCeYijOnxbhBL7p0lKbYv7hJmU/fg4JuxGuNYoqefhFkvRd/zlvqktQVtX9IS8AN8Rq22fdVJlhexJwcJfZqzwnhgctqj74s/Pb3oolbx8+kRMostEDyPnaoq72dlq0befiNBAjCe4ny/2Fo3rlDuBmbdRA44SwoMmSgvhsAw005V5pu5ocLc04BZWbzxNdfjkiZa2kkCIc87E4bqUkkv3y5GhKq50+70A4vi6miC9RnvfN98uCpCa1iAIyKzMc1kL5xaIQkywYXq8gICiO15uBzNZST6R8Wg==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=NZ61rtm7; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::434; helo=mail-pf1-x434.google.com;\n envelope-from=mkchauras@gmail.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777292980; x=1777897780;\n darn=lists.ozlabs.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=ZyVfwI3ylMQ0K4OSfnwdgKvqJxQMmT7QZ769NDzGoQ0=;\n        b=NZ61rtm7ivvpZRDKlqdkoDQyQvGl6KoSgiCkSYi/pwrneg7fNRzqi97UsXmEpRr+E2\n         kYz+JoT6wfPDYBYC4M7RYgupbj+VK1r+z8H/fI1eAw+YXLNwBeLABc5LQVWVcWHgjNap\n         mDQQ7x1Xzvg0Iuaw1C8R/jN9w6/XI34ke+Ngm1lC7/ToQkJBgUQbEF4CmgjMesZxjxHz\n         uDs/El/yIUKdcALvWXm+WO3iOnAfE0tM+a3yFgKRVy1hGND9XnouX821xtSRPMkiuHEo\n         PX9RBRaF8gb7P+IDcGWcnggulBkvCbOWlJSshbvzX3z0US4cL2boZubh+ho22A3Qalz/\n         bX7g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777292980; x=1777897780;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=ZyVfwI3ylMQ0K4OSfnwdgKvqJxQMmT7QZ769NDzGoQ0=;\n        b=pOU0zBMUdQg31G0dE/AROtKPFhO0qDBe84IFbJzRnOsv5rKR6GejBypSB33s25b3f4\n         R3jHPZpAnJHSAlBbVCOGD3N1P4+2uFBmKjtAFfuy6iz7CHjRpaMfykInq3qZkzuqIrbp\n         fCVZmgWK8kqs8Etisia/Wl39mbvtdQeYpEFCCBiUnKAMz4oOtqzFuFbuUcYOrRudwid3\n         vbs3tGLoQH4yoeUkZv8rYsVakDjy8JXWW64XwrvhcbYRANEWM1Rzu/huXohXPfOc+BTm\n         wtx+4rEmdrQAR1d57fwywxNMcSKAUKQ/J9nWtzCelvZxgfGTo870LjljpXuKQ5LxFwga\n         M1ig==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ8UZAqRS8/HG4zaRQ6cOCBd+kix7HACMyedSQT4a6BmBynQME9NGOjmacxtFhU6vHQBGHdws4MsONQMubo=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0YxmT3V9yqYsz8+yv/WkkuU5OB6+zpgWwOdNwjjsPSgv3FCKJy+K\n\tYM4Mr7EqLb4XH6bkZLgU93lBH60THDXqjgvH9QFSaQUDLITtExJ3qFRk",
        "X-Gm-Gg": "AeBDiesAfoC/MiYahph2y7/vsTivcj+PYumB6/mLzd3M39dX4+yMVbAYR3icFWBFyoZ\n\tO+DxJlq+iqXvabHeWLpiOjDagOtXGGhcKKred3wQS679vWYs9gKV32EnWNo2NLiJgLv/yJLoc3x\n\tQ2G+WrUdz3VqJ91fffm+ZJrmW09JoidG9HX7FsGpJfXR8il4c/2Nc+Qpg7iCYQ4uydxYZIvA51Q\n\tu0HU9iUOtQ7DRE/K1TPIrWJT0B52lovraoE0X+Kk0OSLxBRBxVAujksZV6ZSZzoUntzTYoYIqRp\n\tUblv/CZpCv70Du4E74wRNvDXgGAc9XPq0Ml/FASZlx8IcUZtggWPfuWr9GR1jNMjKsXVcFD8rFt\n\tPb9QVE4mjoD5zhDggKtJ+0xxSq8J1x/lqJrcn4DeGGkG08eRIt6/YxCGtUXm2jZUlq27p+HmR2T\n\tUNuKmL0it76zsQ2DOXByouXtpAV09aXEWl0Fd/YqImY/l+Yj3htmQJkitXrxWiUD4Bk/7FiWfCp\n\tdWwxw==",
        "X-Received": "by 2002:a05:6a00:8b0f:b0:82f:c1b4:8ba2 with SMTP id\n d2e1a72fcca58-82fc1b4931emr20644714b3a.47.1777292979936;\n        Mon, 27 Apr 2026 05:29:39 -0700 (PDT)",
        "From": "\"Mukesh Kumar Chaurasiya (IBM)\" <mkchauras@gmail.com>",
        "To": "maddy@linux.ibm.com,\n\tmpe@ellerman.id.au,\n\tnpiggin@gmail.com,\n\tchleroy@kernel.org,\n\tryabinin.a.a@gmail.com,\n\tglider@google.com,\n\tandreyknvl@gmail.com,\n\tdvyukov@google.com,\n\tvincenzo.frascino@arm.com,\n\toleg@redhat.com,\n\tkees@kernel.org,\n\tluto@amacapital.net,\n\twad@chromium.org,\n\tmchauras@linux.ibm.com,\n\tsshegde@linux.ibm.com,\n\tthuth@redhat.com,\n\truanjinjie@huawei.com,\n\takpm@linux-foundation.org,\n\tmacro@orcam.me.uk,\n\tldv@strace.io,\n\tcharlie@rivosinc.com,\n\tdeller@gmx.de,\n\tkevin.brodsky@arm.com,\n\tritesh.list@gmail.com,\n\tyeoreum.yun@arm.com,\n\tagordeev@linux.ibm.com,\n\tsegher@kernel.crashing.org,\n\tmark.rutland@arm.com,\n\tryan.roberts@arm.com,\n\tpmladek@suse.com,\n\tfeng.tang@linux.alibaba.com,\n\tpeterz@infradead.org,\n\tkan.liang@linux.intel.com,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\tkasan-dev@googlegroups.com",
        "Cc": "Mukesh Kumar Chaurasiya <mkchauras@linux.ibm.com>,\n\tSamir M <samir@linux.ibm.com>,\n\tDavid Gow <davidgow@google.com>,\n\tVenkat Rao Bagalkote <venkat88@linux.ibm.com>",
        "Subject": "[PATCH v5 8/8] powerpc: Remove unused functions",
        "Date": "Mon, 27 Apr 2026 17:57:42 +0530",
        "Message-ID": "<20260427122742.210074-9-mkchauras@gmail.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260427122742.210074-1-mkchauras@gmail.com>",
        "References": "<20260427122742.210074-1-mkchauras@gmail.com>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "From: Mukesh Kumar Chaurasiya <mkchauras@linux.ibm.com>\n\nAfter enabling GENERIC_ENTRY some functions are left unused.\nCleanup all those functions which includes:\n - do_syscall_trace_enter\n - do_syscall_trace_leave\n - do_notify_resume\n - do_seccomp\n\nSigned-off-by: Mukesh Kumar Chaurasiya <mkchauras@linux.ibm.com>\nTested-by: Samir M <samir@linux.ibm.com>\nTested-by: David Gow <davidgow@google.com>\nTested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>\nReviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>\n---\n arch/powerpc/include/asm/ptrace.h   |   3 -\n arch/powerpc/include/asm/signal.h   |   1 -\n arch/powerpc/kernel/ptrace/ptrace.c | 138 ----------------------------\n arch/powerpc/kernel/signal.c        |  17 ----\n 4 files changed, 159 deletions(-)",
    "diff": "diff --git a/arch/powerpc/include/asm/ptrace.h b/arch/powerpc/include/asm/ptrace.h\nindex 2e741ea57b80..fdeb97421785 100644\n--- a/arch/powerpc/include/asm/ptrace.h\n+++ b/arch/powerpc/include/asm/ptrace.h\n@@ -177,9 +177,6 @@ extern unsigned long profile_pc(struct pt_regs *regs);\n #define profile_pc(regs) instruction_pointer(regs)\n #endif\n \n-long do_syscall_trace_enter(struct pt_regs *regs);\n-void do_syscall_trace_leave(struct pt_regs *regs);\n-\n static inline void set_return_regs_changed(void)\n {\n #ifdef CONFIG_PPC_BOOK3S_64\ndiff --git a/arch/powerpc/include/asm/signal.h b/arch/powerpc/include/asm/signal.h\nindex 922d43700fb4..21af92cdb237 100644\n--- a/arch/powerpc/include/asm/signal.h\n+++ b/arch/powerpc/include/asm/signal.h\n@@ -7,7 +7,6 @@\n #include <uapi/asm/ptrace.h>\n \n struct pt_regs;\n-void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags);\n \n unsigned long get_min_sigframe_size_32(void);\n unsigned long get_min_sigframe_size_64(void);\ndiff --git a/arch/powerpc/kernel/ptrace/ptrace.c b/arch/powerpc/kernel/ptrace/ptrace.c\nindex f006a03a0211..316d4f5ead8e 100644\n--- a/arch/powerpc/kernel/ptrace/ptrace.c\n+++ b/arch/powerpc/kernel/ptrace/ptrace.c\n@@ -192,144 +192,6 @@ long arch_ptrace(struct task_struct *child, long request,\n \treturn ret;\n }\n \n-#ifdef CONFIG_SECCOMP\n-static int do_seccomp(struct pt_regs *regs)\n-{\n-\tif (!test_thread_flag(TIF_SECCOMP))\n-\t\treturn 0;\n-\n-\t/*\n-\t * The ABI we present to seccomp tracers is that r3 contains\n-\t * the syscall return value and orig_gpr3 contains the first\n-\t * syscall parameter. This is different to the ptrace ABI where\n-\t * both r3 and orig_gpr3 contain the first syscall parameter.\n-\t */\n-\tregs->gpr[3] = -ENOSYS;\n-\n-\t/*\n-\t * We use the __ version here because we have already checked\n-\t * TIF_SECCOMP. If this fails, there is nothing left to do, we\n-\t * have already loaded -ENOSYS into r3, or seccomp has put\n-\t * something else in r3 (via SECCOMP_RET_ERRNO/TRACE).\n-\t */\n-\tif (__secure_computing())\n-\t\treturn -1;\n-\n-\t/*\n-\t * The syscall was allowed by seccomp, restore the register\n-\t * state to what audit expects.\n-\t * Note that we use orig_gpr3, which means a seccomp tracer can\n-\t * modify the first syscall parameter (in orig_gpr3) and also\n-\t * allow the syscall to proceed.\n-\t */\n-\tregs->gpr[3] = regs->orig_gpr3;\n-\n-\treturn 0;\n-}\n-#else\n-static inline int do_seccomp(struct pt_regs *regs) { return 0; }\n-#endif /* CONFIG_SECCOMP */\n-\n-/**\n- * do_syscall_trace_enter() - Do syscall tracing on kernel entry.\n- * @regs: the pt_regs of the task to trace (current)\n- *\n- * Performs various types of tracing on syscall entry. This includes seccomp,\n- * ptrace, syscall tracepoints and audit.\n- *\n- * The pt_regs are potentially visible to userspace via ptrace, so their\n- * contents is ABI.\n- *\n- * One or more of the tracers may modify the contents of pt_regs, in particular\n- * to modify arguments or even the syscall number itself.\n- *\n- * It's also possible that a tracer can choose to reject the system call. In\n- * that case this function will return an illegal syscall number, and will put\n- * an appropriate return value in regs->r3.\n- *\n- * Return: the (possibly changed) syscall number.\n- */\n-long do_syscall_trace_enter(struct pt_regs *regs)\n-{\n-\tu32 flags;\n-\n-\tflags = read_thread_flags() & (_TIF_SYSCALL_EMU | _TIF_SYSCALL_TRACE);\n-\n-\tif (flags) {\n-\t\tint rc = ptrace_report_syscall_entry(regs);\n-\n-\t\tif (unlikely(flags & _TIF_SYSCALL_EMU)) {\n-\t\t\t/*\n-\t\t\t * A nonzero return code from\n-\t\t\t * ptrace_report_syscall_entry() tells us to prevent\n-\t\t\t * the syscall execution, but we are not going to\n-\t\t\t * execute it anyway.\n-\t\t\t *\n-\t\t\t * Returning -1 will skip the syscall execution. We want\n-\t\t\t * to avoid clobbering any registers, so we don't goto\n-\t\t\t * the skip label below.\n-\t\t\t */\n-\t\t\treturn -1;\n-\t\t}\n-\n-\t\tif (rc) {\n-\t\t\t/*\n-\t\t\t * The tracer decided to abort the syscall. Note that\n-\t\t\t * the tracer may also just change regs->gpr[0] to an\n-\t\t\t * invalid syscall number, that is handled below on the\n-\t\t\t * exit path.\n-\t\t\t */\n-\t\t\tgoto skip;\n-\t\t}\n-\t}\n-\n-\t/* Run seccomp after ptrace; allow it to set gpr[3]. */\n-\tif (do_seccomp(regs))\n-\t\treturn -1;\n-\n-\t/* Avoid trace and audit when syscall is invalid. */\n-\tif (regs->gpr[0] >= NR_syscalls)\n-\t\tgoto skip;\n-\n-\tif (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))\n-\t\ttrace_sys_enter(regs, regs->gpr[0]);\n-\n-\tif (!is_32bit_task())\n-\t\taudit_syscall_entry(regs->gpr[0], regs->gpr[3], regs->gpr[4],\n-\t\t\t\t    regs->gpr[5], regs->gpr[6]);\n-\telse\n-\t\taudit_syscall_entry(regs->gpr[0],\n-\t\t\t\t    regs->gpr[3] & 0xffffffff,\n-\t\t\t\t    regs->gpr[4] & 0xffffffff,\n-\t\t\t\t    regs->gpr[5] & 0xffffffff,\n-\t\t\t\t    regs->gpr[6] & 0xffffffff);\n-\n-\t/* Return the possibly modified but valid syscall number */\n-\treturn regs->gpr[0];\n-\n-skip:\n-\t/*\n-\t * If we are aborting explicitly, or if the syscall number is\n-\t * now invalid, set the return value to -ENOSYS.\n-\t */\n-\tregs->gpr[3] = -ENOSYS;\n-\treturn -1;\n-}\n-\n-void do_syscall_trace_leave(struct pt_regs *regs)\n-{\n-\tint step;\n-\n-\taudit_syscall_exit(regs);\n-\n-\tif (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))\n-\t\ttrace_sys_exit(regs, regs->result);\n-\n-\tstep = test_thread_flag(TIF_SINGLESTEP);\n-\tif (step || test_thread_flag(TIF_SYSCALL_TRACE))\n-\t\tptrace_report_syscall_exit(regs, step);\n-}\n-\n void __init pt_regs_check(void);\n \n /*\ndiff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c\nindex 9f1847b4742e..bb42a8b6c642 100644\n--- a/arch/powerpc/kernel/signal.c\n+++ b/arch/powerpc/kernel/signal.c\n@@ -293,23 +293,6 @@ static void do_signal(struct task_struct *tsk)\n \tsignal_setup_done(ret, &ksig, test_thread_flag(TIF_SINGLESTEP));\n }\n \n-void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags)\n-{\n-\tif (thread_info_flags & _TIF_UPROBE)\n-\t\tuprobe_notify_resume(regs);\n-\n-\tif (thread_info_flags & _TIF_PATCH_PENDING)\n-\t\tklp_update_patch_state(current);\n-\n-\tif (thread_info_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL)) {\n-\t\tBUG_ON(regs != current->thread.regs);\n-\t\tdo_signal(current);\n-\t}\n-\n-\tif (thread_info_flags & _TIF_NOTIFY_RESUME)\n-\t\tresume_user_mode_work(regs);\n-}\n-\n static unsigned long get_tm_stackpointer(struct task_struct *tsk)\n {\n \t/* When in an active transaction that takes a signal, we need to be\n",
    "prefixes": [
        "v5",
        "8/8"
    ]
}