[PATCH 1/3] ampere/arm64: Add a fixup handler for alignment faults in aarch64 code

kernel test robot lkp at intel.com
Thu Aug 29 18:43:12 PDT 2024


Hi Alex,

kernel test robot noticed the following build warnings:

[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on pci/next pci/for-linus arnd-asm-generic/master akpm-mm/mm-everything kvmarm/next soc/for-next linus/master arm/for-next arm/fixes v6.11-rc5 next-20240829]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Alex-Benn-e/ampere-arm64-Add-a-fixup-handler-for-alignment-faults-in-aarch64-code/20240827-211409
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link:    https://lore.kernel.org/r/20240827130829.43632-2-alex.bennee%40linaro.org
patch subject: [PATCH 1/3] ampere/arm64: Add a fixup handler for alignment faults in aarch64 code
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20240830/202408300927.4oarShZN-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/202408300927.4oarShZN-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408300927.4oarShZN-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm64/mm/fault_neon.c:17:5: warning: no previous prototype for '__arm64_get_vn_dt' [-Wmissing-prototypes]
      17 | u64 __arm64_get_vn_dt(int n, int t) {
         |     ^~~~~~~~~~~~~~~~~
>> arch/arm64/mm/fault_neon.c:41:6: warning: no previous prototype for '__arm64_set_vn_dt' [-Wmissing-prototypes]
      41 | void __arm64_set_vn_dt(int n, int t, u64 val) {
         |      ^~~~~~~~~~~~~~~~~


vim +/__arm64_get_vn_dt +17 arch/arm64/mm/fault_neon.c

    16	
  > 17	u64 __arm64_get_vn_dt(int n, int t) {
    18		u64 res;
    19	
    20		switch (n) {
    21	#define V(n)						\
    22		case n:						\
    23			asm("cbnz %w1, 1f\n\t"			\
    24			    "mov %0, v"#n".d[0]\n\t"		\
    25			    "b 2f\n\t"				\
    26			    "1: mov %0, v"#n".d[1]\n\t"		\
    27			    "2:" : "=r" (res) : "r" (t));	\
    28			break
    29		V( 0); V( 1); V( 2); V( 3); V( 4); V( 5); V( 6); V( 7);
    30		V( 8); V( 9); V(10); V(11); V(12); V(13); V(14); V(15);
    31		V(16); V(17); V(18); V(19); V(20); V(21); V(22); V(23);
    32		V(24); V(25); V(26); V(27); V(28); V(29); V(30); V(31);
    33	#undef V
    34		default:
    35			res = 0;
    36			break;
    37		}
    38		return res;
    39	}
    40	
  > 41	void __arm64_set_vn_dt(int n, int t, u64 val) {

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list