diff options
| author | Tom Rini <[email protected]> | 2025-04-03 16:54:59 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-03 16:54:59 -0600 |
| commit | 1aa8b03c01f72cefee31039571f2de2f4ccfe0eb (patch) | |
| tree | 06e5b9076311df8043ff67124427c1dee11e952c /include/asm-generic/global_data.h | |
| parent | 1f2a3d066c99f57675162ce09586e9de30407f1b (diff) | |
| parent | da8694a7d2cc9fdfd67e8a039ba1e70bdd543d0b (diff) | |
Merge patch series "membuff: Add tests and update to support a flag for empty/full"
Simon Glass <[email protected]> says:
The membuff implementation curently has no tests. It also assumes that
head and tail can never correspond unless the buffer is empty.
This series provides a compile-time flag to support a 'full' flag. It
also adds some tests of the main routines.
The data structure is also renamed to membuf which fits better with
U-Boot.
There may be some cases in the code which could be optimised a little,
but the implementation is functional.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/asm-generic/global_data.h')
| -rw-r--r-- | include/asm-generic/global_data.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 789adf2c3f9..506ee51cdb0 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -23,7 +23,7 @@ #include <board_f.h> #include <event_internal.h> #include <fdtdec.h> -#include <membuff.h> +#include <membuf.h> #include <linux/list.h> #include <linux/build_bug.h> #include <asm-offsets.h> @@ -316,14 +316,14 @@ struct global_data { * * This buffer is used to collect output during console recording. */ - struct membuff console_out; + struct membuf console_out; /** * @console_in: input buffer for console recording * * If console recording is activated, this buffer can be used to * emulate input. */ - struct membuff console_in; + struct membuf console_in; #endif #if CONFIG_IS_ENABLED(VIDEO) /** |
