• Home
  • Raw
  • Download

Lines Matching +full:unused +full:- +full:variable

1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Implementation of linker-generated arrays
25 * contains a constant initialized variable which holds the entry's
33 * and the C variable name is
37 * This ensures uniqueness for both input section and C variable name.
40 * section and "_" for the variable, so that the linker cannot confuse
80 * is the sub-list name. Iterators for the whole list should use the
81 * global list name ("outer"); iterators for only a sub-list should use
82 * the full sub-list name ("outer_2_inner").
85 * named "drivers", two sub-lists named "i2c" and "pci", and iterators
86 * defined for the whole list and each sub-list:
104 * llsym() - Access a linker-generated array entry
108 * in a C variable name!
114 * ll_entry_declare() - Declare linker-generated array entry
118 * in a C variable name!
120 * This macro declares a variable that is placed into a linker-generated
121 * array. This is a basic building block for more advanced use of linker-
125 * A variable declared using this macro must be compile-time initialized.
150 __attribute__((unused, \
154 * ll_entry_declare_list() - Declare a list of link-generated array entries
158 * in a C variable name!
171 __attribute__((unused, \
175 * We need a 0-byte-size type for iterator symbols, and the compiler
179 * thing: zero-sized arrays, which are both 0-byte-size and exempt from
184 * ll_entry_start() - Point to first entry of linker-generated array
189 * linker-generated array placed into subsection of .u_boot_list section
200 static char start[0] __aligned(4) __attribute__((unused, \
206 * ll_entry_end() - Point after last entry of linker-generated array
212 * a linker-generated array placed into subsection of .u_boot_list
223 static char end[0] __aligned(4) __attribute__((unused, \
228 * ll_entry_count() - Return the number of elements in linker-generated array
232 * This function returns the number of elements of a linker-generated array
241 * printf("Entry %i, x=%i y=%i\n", i, msc->x, msc->y);
247 unsigned int _ll_result = end - start; \
252 * ll_entry_get() - Retrieve entry from linker-generated array by name
257 * This function returns a pointer to a particular entry in linker-generated
278 * ll_start() - Point to first entry of first linker-generated array
282 * the very first linker-generated array.
284 * Since this macro defines the start of the linker-generated arrays,
292 static char start[0] __aligned(4) __attribute__((unused, \
298 * ll_end() - Point after last entry of last linker-generated array
302 * the very last linker-generated array.
304 * Since this macro defines the end of the linker-generated arrays,
312 static char end[0] __aligned(4) __attribute__((unused, \