mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
The extern declaration of taskstats_exit_mutex has never been defined nor referenced anywhere now. Just remove it. Link: https://lore.kernel.org/98948e69094b73d6dfa63dcf0770067b57f3becf.1783435695.git.cyyzero16@gmail.com Signed-off-by: Yiyang Chen <cyyzero16@gmail.com> Cc: Balbir Singh <balbirs@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
37 lines
915 B
C
37 lines
915 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* taskstats_kern.h - kernel header for per-task statistics interface
|
|
*
|
|
* Copyright (C) Shailabh Nagar, IBM Corp. 2006
|
|
* (C) Balbir Singh, IBM Corp. 2006
|
|
*/
|
|
|
|
#ifndef _LINUX_TASKSTATS_KERN_H
|
|
#define _LINUX_TASKSTATS_KERN_H
|
|
|
|
#include <linux/taskstats.h>
|
|
#include <linux/sched/signal.h>
|
|
#include <linux/slab.h>
|
|
|
|
#ifdef CONFIG_TASKSTATS
|
|
extern struct kmem_cache *taskstats_cache;
|
|
|
|
static inline void taskstats_tgid_free(struct signal_struct *sig)
|
|
{
|
|
if (sig->stats)
|
|
kmem_cache_free(taskstats_cache, sig->stats);
|
|
}
|
|
|
|
extern void taskstats_exit(struct task_struct *, int group_dead);
|
|
extern void taskstats_init_early(void);
|
|
#else
|
|
static inline void taskstats_exit(struct task_struct *tsk, int group_dead)
|
|
{}
|
|
static inline void taskstats_tgid_free(struct signal_struct *sig)
|
|
{}
|
|
static inline void taskstats_init_early(void)
|
|
{}
|
|
#endif /* CONFIG_TASKSTATS */
|
|
|
|
#endif
|
|
|