summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorZijun Hu <quic_zijuhu@quicinc.com>2025-04-07 19:44:16 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-05-11 17:54:06 -0700
commit3eff6a3e574c2f704f9be1f4867c3d0b3d804435 (patch)
treeab0878810d73192dcb7353e57d1794f2bba62359 /scripts/gdb/linux/utils.py
parentae5b3500856fb9a565470d83033bb91786ec16f1 (diff)
errseq: eliminate special limitation for macro MAX_ERRNO
Current errseq implementation depends on a very special precondition that macro MAX_ERRNO must be (2^n - 1). Eliminate the limitation by - redefining macro ERRSEQ_SHIFT - defining a new macro ERRNO_MASK instead of MAX_ERRNO for errno mask. There is no plan to change the value of MAX_ERRNO, but this makes the implementation more generic and eliminates the BUILD_BUG_ON(). Link: https://lkml.kernel.org/r/20250407-improve_errseq-v1-1-7b27cbeb8298@quicinc.com Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions