lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <78D4077EFBEB1663+20250208080221.1083810-1-wangyuli@uniontech.com>
Date: Sat,  8 Feb 2025 16:02:18 +0800
From: WangYuli <wangyuli@...ontech.com>
To: chenhuacai@...nel.org,
	kernel@...0n.name,
	guanwentao@...ontech.com,
	jiaxun.yang@...goat.com,
	wangyuli@...ontech.com
Cc: loongarch@...ts.linux.dev,
	linux-kernel@...r.kernel.org,
	zhanjun@...onetch.com,
	chenlinxuan@...ontech.com
Subject: [PATCH 0/3] LoongArch: Remove the deprecated notifier hook mechanism

The notifier hook mechanism in proc and cpuinfo is actually unnecessary
for LoongArch because it's not used anywhere.
    
It was originally added to the MIPS code in commit d6d3c9afaab4 ("MIPS:
MT: proc: Add support for printing VPE and TC ids"), and LoongArch
then inherited it.
    
But as the kernel code stands now, this notifier hook mechanism doesn't
really make sense for either LoongArch or MIPS.

In the process, we identified one instance where a hardcoded print message
could be changed to utilize the str_yes_no() helper function.

Furthermore, the declaration of seq_file in cpuinfo.h should also be
removed along with the deprecated notifier hook mechanism.

However, it needs to be added back in a different location to ensure
the code compiles and functions correctly.

WangYuli (3):
  LoongArch: kernel: proc: Use str_yes_no() helper function
  LoongArch: Remove the deprecated notifier hook mechanism
  LoongArch: Relocate the seq_file declaration to the correct place

 arch/loongarch/include/asm/cpu-info.h | 21 -------------------
 arch/loongarch/include/asm/smp.h      |  2 ++
 arch/loongarch/kernel/proc.c          | 29 +++------------------------
 3 files changed, 5 insertions(+), 47 deletions(-)

-- 
2.47.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ