Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1288091pxf; Fri, 26 Mar 2021 05:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVEQfg4mL3ckXFjHjkjNrMPVV1w/BpbiEptSxhuT/WB1mK5KYrQsUj782E8UDAyeqHJWME X-Received: by 2002:a17:906:d790:: with SMTP id pj16mr14665009ejb.255.1616760771469; Fri, 26 Mar 2021 05:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616760771; cv=none; d=google.com; s=arc-20160816; b=B1MTZoiTLHguf1P6EOkSh0BMM8JeHhUT4FgYcBulDex7Q1SxjtOsdLr6H4ubsZWKQy f35ROwy71HgEyvxE70/0zIhcKUp1lzKKd0C7OX444Omj2RNKHxLKmZDWhiO4cKh9K0O+ 9zEt/TsRvMKJSsYIlMtoYCiBadt4hr//1rjRGo9mXUAB2c5xFD3iTafWamU0UKyZ6eyv 2v2OlzdVgVpwl+yVruHFQrQQT/Fjs+DtW70nhuAzGo7XVMrNV15SCo+aKGD7VDDLDpAg JkcfkQeaIbiEO+/FHmuASK83cbEzc+BUa0Jh95olecGnWrcAXiAw3LWAnLFEwuWII7PC iw4w== 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=FsG//VzN7bePVXTtQrztOVHy5IP8/bjSYzSjzXq3W8A=; b=znZdfG2eIAs7HP4lTRGCrZSLKAJUJO8TtsqW2wAra8+JOWGOjOh5AfXXjoLjgs8VFm q7X9RJMeUSS+aalMEJ7o+3JJoEX8C3e3iNV+qraYWZrFTtCuiBAJEf96vSOXGsoP4PA/ 8UnF5PI5vRsJLNDM1bHOOlnyZBaecNOlmEOqo+JAon+UcCLUi/zP/r+WyzEzZWBUeJhx ciePBCTQsFtRbKvqkc8D01exAHqqytYRrwCDjxIbtNmRKjevNk7NnCnj6qHGPUKK5sIi rkB4Zmbtw1AuzsDsuaRwMMpxUW0H2waAPxVpa4Fegg8E+QDcUyiCK4SQU/UO56zRD7Mc pONA== 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 u25si6335081edo.148.2021.03.26.05.12.26; Fri, 26 Mar 2021 05:12:51 -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 S229957AbhCZMLH (ORCPT + 99 others); Fri, 26 Mar 2021 08:11:07 -0400 Received: from mail-m17637.qiye.163.com ([59.111.176.37]:43644 "EHLO mail-m17637.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbhCZMKl (ORCPT ); Fri, 26 Mar 2021 08:10:41 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17637.qiye.163.com (Hmail) with ESMTPA id B518F98027B; Fri, 26 Mar 2021 20:10:38 +0800 (CST) From: Wan Jiabing To: Wan Jiabing , linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] linux/profile.h: Remove unnecessary declaration Date: Fri, 26 Mar 2021 20:09:55 +0800 Message-Id: <20210326120959.906445-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 oVCBIfWUFZShlDHkpLQ09NSklPVkpNSk1MTUtNSENDQkpVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mxg6Kxw6Iz8JSzw9QywYNx8a NFEwCjxVSlVKTUpNTE1LTUhCSEhNVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFKTE1MNwY+ X-HM-Tid: 0a786e718d5fd992kuwsb518f98027b 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. Reorder the forward declaration to be in alphabetic order. Signed-off-by: Wan Jiabing --- include/linux/profile.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/profile.h b/include/linux/profile.h index bad18ca43150..59b3acbbcc2b 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -14,9 +14,8 @@ #define SLEEP_PROFILING 3 #define KVM_PROFILING 4 -struct proc_dir_entry; -struct pt_regs; struct notifier_block; +struct proc_dir_entry; #if defined(CONFIG_PROFILING) && defined(CONFIG_PROC_FS) void create_prof_cpu_mask(void); @@ -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