Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp384218pxf; Thu, 1 Apr 2021 03:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP1OkRVjKLLLNUPlRBzf2wWLdaoUHdWbTAR/p7XzTL9aHzsYEdIU6ij/MqgXhnMqJa5pPZ X-Received: by 2002:a17:906:3295:: with SMTP id 21mr8364831ejw.88.1617274332128; Thu, 01 Apr 2021 03:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617274332; cv=none; d=google.com; s=arc-20160816; b=SPYCwdpz192rUcYEZGgwd1ufcvWsWfOYdzBnd+XiEP8Qe5tVFOyxTFoMfK7KM4mXSf 9ZONv6QXi+GeT4yn9WbZu58v6e1Pm/x1T2mB0XCgk2tQdSZcu4UovZ1otAPTCtbzr4eP AHNMIyL9MtnYHtWKrvgXdXqIvyM335ZB+1Yk1wo7GEFgx/IC760iVu92NFE14zgUGuE/ gvqa4XJZZOEyjVSjDvwLaFQb2AtvqLi1nIxqp7YB+UFh8O5ejIRe9zekcvvhFBCVVriG tIuXQiUxJXtuQSJOeo1s28bMmLMlZefnMT+JzKDo09AT+gi8ZrEru4OAkG9JLFBFgwxR 93qQ== 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=MnNya3k/3hc57GltrfINdrxY49vamDYBPprr1ZXM4cU=; b=TnS0tKAGvrdPcuxV3tWR+5KeWECQPZsWMXjPn8P7lFD/kl6Lk7D2GKdPZZa6QycVG2 ABh6nYIvgeh+bqRWEsAr6K9/jCRJVJs5Y7FATFc+u2AvTSLqT0N/KBN3frbS07T12GAR GXDGxto9JXL+PniNvoDqWwm2R/yMMsaKJqs6Yj5ntxJGgKZdi8VEhzuDu9vbXHv8OM9Z G0FOWTm5tzhSt6zd1QH6lrx7of3YC25sWfw1k5aZKl77d76ctxdSt8Q1ODO3AYR9FWdD eb2x3nLUj8R/nz/Vg+19PRvO5BPvxU78sf+5JNHfa7o74ncWRTWwrKUxfM4Lj9NkmC5Q 8R6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si3918434ejv.112.2021.04.01.03.51.49; Thu, 01 Apr 2021 03:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233736AbhDAKss (ORCPT + 99 others); Thu, 1 Apr 2021 06:48:48 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:14400 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233744AbhDAKsp (ORCPT ); Thu, 1 Apr 2021 06:48:45 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id A6C629803E9; Thu, 1 Apr 2021 18:48:43 +0800 (CST) From: Wan Jiabing To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] linux/profile.h: Remove unnecessary declaration Date: Thu, 1 Apr 2021 18:48:34 +0800 Message-Id: <20210401104834.1009157-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSR5MHU5CHhpIH0lDVkpNSkxJTE9KSUhDTUhVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PzI6Dgw5FT8KTysCSxQ8Gh4Z LzwwCj1VSlVKTUpMSUxPSklPSkhDVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKTU5CNwY+ X-HM-Tid: 0a788d0cb60ad992kuwsa6c629803e9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Declaring struct pt_regs is unnecessary. On the one hand, there is no function using it; on the other hand, struct pt_regs has been declared in linux/kernel.h. Remove them. Signed-off-by: Wan Jiabing --- include/linux/profile.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/profile.h b/include/linux/profile.h index bad18ca43150..fd18ca96f557 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -15,7 +15,6 @@ #define KVM_PROFILING 4 struct proc_dir_entry; -struct pt_regs; struct notifier_block; #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) @@ -84,8 +83,6 @@ int task_handoff_unregister(struct notifier_block * n); int profile_event_register(enum profile_type, struct notifier_block * n); int profile_event_unregister(enum profile_type, struct notifier_block * n); -struct pt_regs; - #else #define prof_on 0 -- 2.25.1