diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2024-11-11 16:36:41 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-11-11 10:32:45 +0100 |
commit | 50f9259befe1b94ee991ae390b7c84b21f4dbb88 (patch) | |
tree | fe5f75bc73ca5c241a158d8e4c9ec9519652e382 /ubifs-utils/common/sign.c | |
parent | 898499314c7073bbf6851db6542858921aeb6580 (diff) |
ubifs-utils: Add compiler attributes implementations
Add compiler attributes implementations, such as __packed, __unused,
__const, etc., which could be used in linux kernel libs. Besides, change
some existing attributes into linux kernel style.
This is a preparation for replacing implementation of UBIFS utils with
linux kernel libs.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/common/sign.c')
-rw-r--r-- | ubifs-utils/common/sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ubifs-utils/common/sign.c b/ubifs-utils/common/sign.c index 9c53e67..7530503 100644 --- a/ubifs-utils/common/sign.c +++ b/ubifs-utils/common/sign.c @@ -28,6 +28,7 @@ #include <openssl/conf.h> #include <err.h> +#include "compiler_attributes.h" #include "sign.h" #include "defs.h" #include "ubifs.h" @@ -116,8 +117,7 @@ static void drain_openssl_errors(void) static const char *key_pass; -static int pem_pw_cb(char *buf, int len, __attribute__((unused)) int w, - __attribute__((unused)) void *v) +static int pem_pw_cb(char *buf, int len, __unused int w, __unused void *v) { int pwlen; |