Subject: linux-next: manual merge of the efi tree with Linus' tree

From: Stephen Rothwell <[email-masked]>
Date: Mon, 20 Feb 2023 13:58:44 +1100

Hi all,

Today's linux-next merge of the efi tree got a conflict in:

  arch/arm64/include/asm/efi.h

between commit:

  8a9a1a18731e ("arm64: efi: Avoid workqueue to check whether EFI runtime is live")

from Linus' tree and commit:

  0e68b5517d37 ("arm64: efi: Make efi_rt_lock a raw_spinlock")

from the efi tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/arm64/include/asm/efi.h
index acaa39f6381a,1b81dd5554cb..000000000000
--- a/arch/arm64/include/asm/efi.h
+++ b/arch/arm64/include/asm/efi.h
@@@ -47,18 -48,9 +48,18 @@@ int efi_set_mapping_permissions(struct 
  	efi_virtmap_unload();						\
  })
  
- extern spinlock_t efi_rt_lock;
+ extern raw_spinlock_t efi_rt_lock;
 +extern u64 *efi_rt_stack_top;
  efi_status_t __efi_rt_asm_wrapper(void *, const char *, ...);
  
 +/*
 + * efi_rt_stack_top[-1] contains the value the stack pointer had before
 + * switching to the EFI runtime stack.
 + */
 +#define current_in_efi()						\
 +	(!preemptible() && efi_rt_stack_top != NULL &&			\
 +	 on_task_stack(current, READ_ONCE(efi_rt_stack_top[-1]), 1))
 +
  #define ARCH_EFI_IRQ_FLAGS_MASK (PSR_D_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT)
  
  /*