20 Jul, 2020

1 commit


24 Mar, 2020

3 commits

  • uuid_le_gen() is no used anymore, remove it for good.

    Reviewed-by: Christoph Hellwig
    Signed-off-by: Andy Shevchenko
    Signed-off-by: David Sterba

    Andy Shevchenko
     
  • In some cases we would like to generate a GUID and export it. Though it
    would require either casting to internal kernel types or an intermediate
    buffer. Instead we may achieve this by supplying a pointer to raw buffer
    and make a complimentary API to existing one for UUIDs.

    Reviewed-by: Christoph Hellwig
    Signed-off-by: Andy Shevchenko
    Signed-off-by: David Sterba

    Andy Shevchenko
     
  • Sometimes we may need to import UUID from or export to the raw buffer,
    which is provided outside of kernel and can't be declared as UUID type.
    With current API this operation will require an explicit casting
    to one of UUID types and length, that is always a constant derived as sizeof
    the certain UUID type.

    Provide a helpful set of inline helpers to minimize developer's effort
    in the cases when raw buffers are involved.

    Suggested-by: David Sterba
    Acked-by: Christoph Hellwig
    Signed-off-by: Andy Shevchenko
    Signed-off-by: David Sterba

    Andy Shevchenko
     

31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation this program is
    distributed in the hope that it will be useful but without any
    warranty without even the implied warranty of merchantability or
    fitness for a particular purpose see the gnu general public license
    for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 655 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

07 Feb, 2018

1 commit

  • Exported header doesn't use anything from ,
    it is which uses memcmp().

    Link: http://lkml.kernel.org/r/20171225171121.GA22754@avx2
    Signed-off-by: Alexey Dobriyan
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

24 Jul, 2017

1 commit


06 Jul, 2017

1 commit

  • Pull arm64 updates from Will Deacon:

    - RAS reporting via GHES/APEI (ACPI)

    - Indirect ftrace trampolines for modules

    - Improvements to kernel fault reporting

    - Page poisoning

    - Sigframe cleanups and preparation for SVE context

    - Core dump fixes

    - Sparse fixes (mainly relating to endianness)

    - xgene SoC PMU v3 driver

    - Misc cleanups and non-critical fixes

    * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (75 commits)
    arm64: fix endianness annotation for 'struct jit_ctx' and friends
    arm64: cpuinfo: constify attribute_group structures.
    arm64: ptrace: Fix incorrect get_user() use in compat_vfp_set()
    arm64: ptrace: Remove redundant overrun check from compat_vfp_set()
    arm64: ptrace: Avoid setting compat FP[SC]R to garbage if get_user fails
    arm64: fix endianness annotation for __apply_alternatives()/get_alt_insn()
    arm64: fix endianness annotation in get_kaslr_seed()
    arm64: add missing conversion to __wsum in ip_fast_csum()
    arm64: fix endianness annotation in acpi_parking_protocol.c
    arm64: use readq() instead of readl() to read 64bit entry_point
    arm64: fix endianness annotation for reloc_insn_movw() & reloc_insn_imm()
    arm64: fix endianness annotation for aarch64_insn_write()
    arm64: fix endianness annotation in aarch64_insn_read()
    arm64: fix endianness annotation in call_undef_hook()
    arm64: fix endianness annotation for debug-monitors.c
    ras: mark stub functions as 'inline'
    arm64: pass endianness info to sparse
    arm64: ftrace: fix !CONFIG_ARM64_MODULE_PLTS kernels
    arm64: signal: Allow expansion of the signal frame
    acpi: apei: check for pending errors when probing GHES entries
    ...

    Linus Torvalds
     

23 Jun, 2017

1 commit

  • The UEFI spec includes non-standard section type support in the
    Common Platform Error Record. This is defined in section N.2.3 of
    UEFI version 2.5.

    Currently if the CPER section's type (UUID) does not match any
    section type that the kernel knows how to parse, a trace event is
    not generated.

    Generate a trace event which contains the raw error data for
    non-standard section type error records.

    Signed-off-by: Tyler Baicar
    CC: Jonathan (Zhixiong) Zhang
    Tested-by: Shiju Jose
    Signed-off-by: Will Deacon

    Tyler Baicar
     

20 Jun, 2017

1 commit


05 Jun, 2017

5 commits

  • Hoist the libnvdimm helper as an inline helper to linux/uuid.h
    using an auxiliary const variable uuid_null in lib/uuid.c.

    [hch: also add the guid variant. Both do the same but I'd like
    to keep casts to a minimum]

    The common helper uses the new abstract type uuid_t * instead of
    u8 *.

    Suggested-by: Christoph Hellwig
    Signed-off-by: Amir Goldstein
    [hch: added guid_is_null]
    Signed-off-by: Christoph Hellwig
    Acked-by: Dan Williams
    Reviewed-by: Andy Shevchenko

    Christoph Hellwig
     
  • These helper are used to compare and copy two uuid_t type objects.

    Signed-off-by: Amir Goldstein
    [hch: also provide the respective guid_ versions]
    Signed-off-by: Christoph Hellwig
    Reviewed-by: Andy Shevchenko

    Christoph Hellwig
     
  • Our "little endian" UUID really is a Wintel GUID, so rename it and its
    helpers such (guid_t). The big endian UUID is the only true one, so
    give it the name uuid_t. The uuid_le and uuid_be names are retained for
    now, but will hopefully go away soon. The exception to that are the _cmp
    helpers that will be replaced by better primitives ASAP and thus don't
    get the new names.

    Also the _to_bin helpers are named to match the better named uuid_parse
    routine in userspace.

    Also remove the existing typedef in XFS that's now been superceeded by
    the generic type name.

    Signed-off-by: Christoph Hellwig
    [andy: also update the UUID_LE/UUID_BE macros including fallout]
    Signed-off-by: Andy Shevchenko
    Reviewed-by: Amir Goldstein
    Reviewed-by: Darrick J. Wong
    Reviewed-by: Andy Shevchenko

    Signed-off-by: Christoph Hellwig

    Christoph Hellwig
     
  • We don't use uuid_be and the UUID_BE constants in any uapi headers, so make
    them private to the kernel.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Amir Goldstein
    Reviewed-by: Andy Shevchenko

    Christoph Hellwig
     
  • This essentially is a partial revert of commit ff548773
    ("afs: Move UUID struct to linux/uuid.h") and moves struct uuid_v1 back into
    fs/afs as struct afs_uuid. It however keeps it as big endian structure
    so that we can use the normal uuid generation helpers when casting to/from
    struct afs_uuid.

    The V1 uuid intrepretation in struct form isn't really useful to the
    rest of the kernel, and not really compatible to it either, so move it
    back to AFS instead of polluting the global uuid.h.

    Signed-off-by: Christoph Hellwig
    Acked-by: David Howells

    Christoph Hellwig
     

11 Feb, 2017

1 commit

  • Move the afs_uuid struct to linux/uuid.h, rename it to uuid_v1 and change
    the u16/u32 fields to __be16/__be32 instead so that the structure can be
    cast to a 16-octet network-order buffer.

    Signed-off-by: David Howells
    Reviewed-by: Arnd Bergmann <arnd@arndb.de

    David Howells
     

21 May, 2016

3 commits

  • There is no point in keeping an address in the file since it's subject
    to change.

    While here, update Intel Copyright years.

    Signed-off-by: Andy Shevchenko
    Reviewed-by: Matt Fleming
    Cc: Dmitry Kasatkin
    Cc: Mimi Zohar
    Cc: Rasmus Villemoes
    Cc: Arnd Bergmann
    Cc: "Theodore Ts'o"
    Cc: Al Viro
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • There are new helpers in this patch:

    uuid_is_valid checks if a UUID is valid
    uuid_be_to_bin converts from string to binary (big endian)
    uuid_le_to_bin converts from string to binary (little endian)

    They will be used in future, i.e. in the following patches in the series.

    This also moves the indices arrays to lib/uuid.c to be shared accross
    modules.

    [andriy.shevchenko@linux.intel.com: fix typo]
    Signed-off-by: Andy Shevchenko
    Reviewed-by: Matt Fleming
    Cc: Dmitry Kasatkin
    Cc: Mimi Zohar
    Cc: Rasmus Villemoes
    Cc: Arnd Bergmann
    Cc: "Theodore Ts'o"
    Cc: Al Viro
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • Let's gather the UUID related functions under one hood.

    Signed-off-by: Andy Shevchenko
    Reviewed-by: Matt Fleming
    Cc: Dmitry Kasatkin
    Cc: Mimi Zohar
    Cc: Rasmus Villemoes
    Cc: Arnd Bergmann
    Cc: "Theodore Ts'o"
    Cc: Al Viro
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     

13 Oct, 2012

1 commit


10 May, 2012

1 commit


20 May, 2010

1 commit

  • There are many different UUID/GUID definitions in kernel, such as that
    in EFI, many file systems, some drivers, etc. Every kernel components
    need UUID/GUID has its own definition. This patch provides a unified
    definition for UUID/GUID.

    UUID is defined via typedef. This makes that UUID appears more like a
    preliminary type, and makes the data type explicit (comparing with
    implicit "u8 uuid[16]").

    The binary representation of UUID/GUID can be little-endian (used by
    EFI, etc) or big-endian (defined by RFC4122), so both is defined.

    Signed-off-by: Huang Ying
    Signed-off-by: Andi Kleen
    Signed-off-by: Len Brown

    Huang Ying