linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Remove get_task_comm() and print task comm directly
@ 2024-12-19  2:34 Yafang Shao
  2024-12-19  2:34 ` [PATCH v2 1/5] kernel: " Yafang Shao
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Yafang Shao @ 2024-12-19  2:34 UTC (permalink / raw)
  To: akpm
  Cc: torvalds, pmladek, kvalo, bp, andriy.shevchenko, linux-mm,
	linux-kernel, linux-security-module, x86, linux-snps-arc,
	linux-wireless, intel-gfx, intel-xe, nouveau, dri-devel,
	ocfs2-devel, Yafang Shao

Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.

v1->v2:
- Don't add "%pTN" (Petr, Kalle, Borislav, Andy, Linus)

v1: https://lore.kernel.org/all/20241213054610.55843-1-laoar.shao@gmail.com/

Yafang Shao (5):
  kernel: Remove get_task_comm() and print task comm directly
  arch: Remove get_task_comm() and print task comm directly
  net: Remove get_task_comm() and print task comm directly
  security: Remove get_task_comm() and print task comm directly
  drivers: Remove get_task_comm() and print task comm directly

 arch/arc/kernel/unaligned.c                         |  5 ++---
 arch/x86/kernel/vm86_32.c                           |  5 ++---
 drivers/accel/habanalabs/common/context.c           |  3 +--
 drivers/accel/habanalabs/common/habanalabs_ioctl.c  | 11 +++--------
 drivers/gpu/drm/i915/display/intel_display_driver.c |  6 ++----
 drivers/gpu/drm/nouveau/nouveau_chan.c              |  4 +---
 drivers/gpu/drm/nouveau/nouveau_drm.c               |  5 ++---
 drivers/tty/tty_io.c                                |  3 +--
 kernel/capability.c                                 |  8 ++------
 kernel/futex/waitwake.c                             |  3 +--
 net/wireless/wext-core.c                            |  4 +---
 security/yama/yama_lsm.c                            |  4 +---
 12 files changed, 19 insertions(+), 42 deletions(-)

-- 
2.43.5



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-19  2:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19  2:34 [PATCH v2 0/5] Remove get_task_comm() and print task comm directly Yafang Shao
2024-12-19  2:34 ` [PATCH v2 1/5] kernel: " Yafang Shao
2024-12-19  2:34 ` [PATCH v2 2/5] arch: " Yafang Shao
2024-12-19  2:34 ` [PATCH v2 3/5] net: " Yafang Shao
2024-12-19  2:34 ` [PATCH v2 4/5] security: " Yafang Shao
2024-12-19  2:34 ` [PATCH v2 5/5] drivers: " Yafang Shao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox