Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3857943imw; Thu, 7 Jul 2022 08:38:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tL2YydThRA0Sll2m/OojIOaeVgYk2eddtydmTJ7GRjaok3BUwpcPeIAqFfpcLUHKfU5zEf X-Received: by 2002:a05:6402:328f:b0:43a:8488:1000 with SMTP id f15-20020a056402328f00b0043a84881000mr15293123eda.105.1657208287806; Thu, 07 Jul 2022 08:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657208287; cv=none; d=google.com; s=arc-20160816; b=BDtj8cv/s8/tBzrbWeWoYd23r3z1i1x3fnOf0DQwvNOwkHns0mpooz8zxTVaoNUhUt 43vnI0dSZGu/wxEw3wCA+lSa7HDksZVFYxNylwgCoy6S9FWPFsSM7ipPvfD6TuabPxOR oHtijA8uGPz3EELHtbs164VHfYEXIu8sof2DM7vaeIGHSYXEecIu549YJf+rhKk3BWKh gAVuxlGPL+IfcQrLxGExckZuPX7XwaAlk9O6sHV4do+STE4GbiwIn2SE9/c24IDVX7GF scyWyD93EF1I71vVTFZgyZ4UN05U4JigV7Z+/2wisnS3ZnPsoT+vAYCN+wNNeeStjiyX eF5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gGG9APmNq88o5PQZLgNZpYng6HjeT1nw2ww3O7R/voo=; b=csAOhs6zWB2oG2U8tZ2AnvyTZDMbF3CN5eWqvXDsLEZPpIdH2j1cCtlW1X82JE6pjX FTcw26O2/WqJo0iULW7KmOiSeG4HIcMzBEwgP5tRR69/KFvA3hy0Hz/SglhWoqS0rr7+ cG/dFo/14r56hHzy6O8yqxNApMf7oZUkuxrRvC5Z98t1lZ7eGlUNXLKvECn/QRR+naHz H5uLwKkjLsrfeDuqBeDQKLd12H1YEJ6MvGf8DvzpHZ7vsaoafs/7hDJQUSgmaKb7rINT DC3el/JSvJYDkbhTVqEFnFsX7ddmqsOHFv2z+VjYxlbO2YEAniKCCvYz+7W6RYZVu0c0 0oHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056402069400b0043a64ab539bsi3100823edy.60.2022.07.07.08.37.42; Thu, 07 Jul 2022 08:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236343AbiGGO5O (ORCPT + 99 others); Thu, 7 Jul 2022 10:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235501AbiGGO4x (ORCPT ); Thu, 7 Jul 2022 10:56:53 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99E135C97C for ; Thu, 7 Jul 2022 07:55:35 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4Ldzx21Kyjz9tGm; Thu, 7 Jul 2022 16:55:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ku_m0WjcgRIw; Thu, 7 Jul 2022 16:55:34 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4Ldzx20ZV4z9tGf; Thu, 7 Jul 2022 16:55:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 014818B7A9; Thu, 7 Jul 2022 16:55:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id PZOos7Sn6knh; Thu, 7 Jul 2022 16:55:33 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.233.174]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B92168B7A0; Thu, 7 Jul 2022 16:55:33 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 267EtO5F541777 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 7 Jul 2022 16:55:24 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 267EtN3d541776; Thu, 7 Jul 2022 16:55:23 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/3] powerpc/probes: Remove ppc_opcode_t Date: Thu, 7 Jul 2022 16:55:14 +0200 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1657205713; l=1596; s=20211009; h=from:subject:message-id; bh=29AGqRathw4AZvQv4uOylQJgwbRnmYkQsT2plmAfeHc=; b=/bMm8dBkbm29pziEhAJycPRGBU8DNfxyjqiVld1xqayxkmzrESlUfJni6EHErvkZP9bnBgWsqMRe qQMHXOedDyLrJGlYVMpiYWJjX+dfg3py7U5iPT1mI1FY8LCeC2Xe X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ppc_opcode_t is just an u32. There is no point in hiding u32 behind such a typedef. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/kprobes.h | 2 +- arch/powerpc/include/asm/probes.h | 1 - arch/powerpc/include/asm/uprobes.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/kprobes.h b/arch/powerpc/include/asm/kprobes.h index bab364152b29..c8e4b4fd4e33 100644 --- a/arch/powerpc/include/asm/kprobes.h +++ b/arch/powerpc/include/asm/kprobes.h @@ -29,7 +29,7 @@ struct pt_regs; struct kprobe; -typedef ppc_opcode_t kprobe_opcode_t; +typedef u32 kprobe_opcode_t; extern kprobe_opcode_t optinsn_slot; diff --git a/arch/powerpc/include/asm/probes.h b/arch/powerpc/include/asm/probes.h index 6f66e358aa37..00634e3145e7 100644 --- a/arch/powerpc/include/asm/probes.h +++ b/arch/powerpc/include/asm/probes.h @@ -10,7 +10,6 @@ #include #include -typedef u32 ppc_opcode_t; #define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */ /* Trap definitions per ISA */ diff --git a/arch/powerpc/include/asm/uprobes.h b/arch/powerpc/include/asm/uprobes.h index a7ae1860115a..4fea116d3d37 100644 --- a/arch/powerpc/include/asm/uprobes.h +++ b/arch/powerpc/include/asm/uprobes.h @@ -12,7 +12,7 @@ #include #include -typedef ppc_opcode_t uprobe_opcode_t; +typedef u32 uprobe_opcode_t; #define MAX_UINSN_BYTES 8 #define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES) -- 2.36.1