mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + linux-profileh-remove-unnecessary-declaration.patch added to -mm tree
@ 2021-04-02  0:31 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-04-02  0:31 UTC (permalink / raw)
  To: mm-commits, wanjiabing


The patch titled
     Subject: linux/profile.h: remove unnecessary declaration
has been added to the -mm tree.  Its filename is
     linux-profileh-remove-unnecessary-declaration.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/linux-profileh-remove-unnecessary-declaration.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/linux-profileh-remove-unnecessary-declaration.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Wan Jiabing <wanjiabing@vivo.com>
Subject: linux/profile.h: remove unnecessary declaration

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.

Link: https://lkml.kernel.org/r/20210401104834.1009157-1-wanjiabing@vivo.com
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/profile.h |    3 ---
 1 file changed, 3 deletions(-)

--- a/include/linux/profile.h~linux-profileh-remove-unnecessary-declaration
+++ a/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 notif
 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
_

Patches currently in -mm which might be from wanjiabing@vivo.com are

scripts-a-new-script-for-checking-duplicate-struct-declaration.patch
linux-memcontrolh-remove-duplicate-struct-declaration.patch
linux-profileh-remove-unnecessary-declaration.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-02  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02  0:31 + linux-profileh-remove-unnecessary-declaration.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).