]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Centralize stub size calculations
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 27 Aug 2025 00:57:03 +0000 (08:57 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Sep 2025 12:23:52 +0000 (14:23 +0200)
commite047f9af9d6948728614f7eea41ba53d5b767e9f
tree42bda26d92b48016f25c9445dd509406e55fe0ab
parentb765d69a1adf83b969f1f0c8353b80c3c18ef2f7
um: Centralize stub size calculations

Currently, the stub size is calculated in multiple places. Define
a macro that performs the calculation so that the code is easier
to read and maintain.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/as-layout.h
arch/um/kernel/um_arch.c
arch/x86/um/shared/sysdep/stub_32.h
arch/x86/um/shared/sysdep/stub_64.h