mbox series

[0/2] efi: efivars: drop kobject from efivars_register()

Message ID 20230117124310.16594-1-johan+linaro@kernel.org
Headers show
Series efi: efivars: drop kobject from efivars_register() | expand

Message

Johan Hovold Jan. 17, 2023, 12:43 p.m. UTC
Since the removal of the deprecated efivars sysfs interface there are
no users of the efivars kobject, which can be removed.

Included is also a related patch changing the return type of
efivar_supports_writes() to match the new efivar_is_available()
function.

Note that I intend to use efivar_is_available() in a driver with
optional EFI support (hence the dummy implementation) and the removal of
the kobject will simplify the upcoming Qualcomm UEFI Secure Application
driver somewhat too.

Johan


Johan Hovold (2):
  efi: efivars: drop kobject from efivars_register()
  efi: efivars: make efivar_supports_writes() return bool

 drivers/firmware/efi/efi.c     |  2 +-
 drivers/firmware/efi/vars.c    | 21 +++++++--------------
 drivers/firmware/google/gsmi.c |  2 +-
 fs/efivarfs/super.c            |  2 +-
 include/linux/efi.h            | 13 ++++++++-----
 5 files changed, 18 insertions(+), 22 deletions(-)

Comments

Ard Biesheuvel Jan. 17, 2023, 4:11 p.m. UTC | #1
On Tue, 17 Jan 2023 at 13:46, Johan Hovold <johan+linaro@kernel.org> wrote:
>
> Since the removal of the deprecated efivars sysfs interface there are
> no users of the efivars kobject, which can be removed.
>
> Included is also a related patch changing the return type of
> efivar_supports_writes() to match the new efivar_is_available()
> function.
>
> Note that I intend to use efivar_is_available() in a driver with
> optional EFI support (hence the dummy implementation) and the removal of
> the kobject will simplify the upcoming Qualcomm UEFI Secure Application
> driver somewhat too.
>
> Johan
>
>
> Johan Hovold (2):
>   efi: efivars: drop kobject from efivars_register()
>   efi: efivars: make efivar_supports_writes() return bool
>

Thanks, I've queued these up now


>  drivers/firmware/efi/efi.c     |  2 +-
>  drivers/firmware/efi/vars.c    | 21 +++++++--------------
>  drivers/firmware/google/gsmi.c |  2 +-
>  fs/efivarfs/super.c            |  2 +-
>  include/linux/efi.h            | 13 ++++++++-----
>  5 files changed, 18 insertions(+), 22 deletions(-)
>
> --
> 2.38.2
>