Skip to content

Commit 9a2a3aa

Browse files
Jiapeng Chongrostedt
authored andcommitted
fgraph: Remove some unused functions
These functions are defined in the fgraph.c file, but not called elsewhere, so delete these unused functions. kernel/trace/fgraph.c:273:1: warning: unused function 'set_bitmap_bits'. kernel/trace/fgraph.c:259:19: warning: unused function 'get_fgraph_type'. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9289 Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 6c1f7f0 commit 9a2a3aa

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

kernel/trace/fgraph.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -255,26 +255,13 @@ static inline int get_frame_offset(struct task_struct *t, int offset)
255255
return __get_offset(t->ret_stack[offset]);
256256
}
257257

258-
/* Get FGRAPH_TYPE from the word from the @offset at ret_stack */
259-
static inline int get_fgraph_type(struct task_struct *t, int offset)
260-
{
261-
return __get_type(t->ret_stack[offset]);
262-
}
263-
264258
/* For BITMAP type: get the bitmask from the @offset at ret_stack */
265259
static inline unsigned long
266260
get_bitmap_bits(struct task_struct *t, int offset)
267261
{
268262
return (t->ret_stack[offset] >> FGRAPH_INDEX_SHIFT) & FGRAPH_INDEX_MASK;
269263
}
270264

271-
/* For BITMAP type: set the bits in the bitmap bitmask at @offset on ret_stack */
272-
static inline void
273-
set_bitmap_bits(struct task_struct *t, int offset, unsigned long bitmap)
274-
{
275-
t->ret_stack[offset] |= (bitmap << FGRAPH_INDEX_SHIFT);
276-
}
277-
278265
/* Write the bitmap to the ret_stack at @offset (does index, offset and bitmask) */
279266
static inline void
280267
set_bitmap(struct task_struct *t, int offset, unsigned long bitmap)

0 commit comments

Comments
 (0)