From: Andy Shevchenko Date: Fri, 16 Jun 2017 18:13:38 +0000 (+0300) Subject: uuid: Take const on input of uuid_is_null() and guid_is_null() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63709fd4296221aa4ebd06230bce3eed70ddd927;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git uuid: Take const on input of uuid_is_null() and guid_is_null() The null check functions do not and must not modify contents of the UUID or GUID supplied. Mark argument explicitly to reflect that. Signed-off-by: Andy Shevchenko Signed-off-by: Christoph Hellwig --- diff --git a/include/linux/uuid.h b/include/linux/uuid.h index 75f7182d5360..d1defe4ab167 100644 --- a/include/linux/uuid.h +++ b/include/linux/uuid.h @@ -48,7 +48,7 @@ static inline void guid_copy(guid_t *dst, const guid_t *src) memcpy(dst, src, sizeof(guid_t)); } -static inline bool guid_is_null(guid_t *guid) +static inline bool guid_is_null(const guid_t *guid) { return guid_equal(guid, &guid_null); } @@ -63,7 +63,7 @@ static inline void uuid_copy(uuid_t *dst, const uuid_t *src) memcpy(dst, src, sizeof(uuid_t)); } -static inline bool uuid_is_null(uuid_t *uuid) +static inline bool uuid_is_null(const uuid_t *uuid) { return uuid_equal(uuid, &uuid_null); }