diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-08-12 21:48:51 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-09-01 20:34:48 +0900 |
| commit | 4c2598e3b62102d5ea7f618e13d996b069cde27d (patch) | |
| tree | 36bea1b2d3c9904f2a00ff194ea3e460cd771dc6 /scripts/mod/modpost.h | |
| parent | kbuild: split x*alloc() functions in kconfig to scripts/include/xalloc.h (diff) | |
| download | linux-4c2598e3b62102d5ea7f618e13d996b069cde27d.tar.gz linux-4c2598e3b62102d5ea7f618e13d996b069cde27d.zip | |
modpost: replace the use of NOFAIL() with xmalloc() etc.
I think x*alloc() functions are cleaner.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mod/modpost.h')
| -rw-r--r-- | scripts/mod/modpost.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 54ba9431713f..7fa8bdd801a9 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h @@ -65,12 +65,8 @@ #define TO_NATIVE(x) \ (target_is_big_endian == host_is_big_endian ? x : bswap(x)) -#define NOFAIL(ptr) do_nofail((ptr), #ptr) - #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -void *do_nofail(void *ptr, const char *expr); - struct buffer { char *p; int pos; |
