Fix regression where used code was marked as unused
Commit 5d1a444812
replaced __attribute__
((unused)) with unused_code but two instances of __attribute__ ((used))
were also incorrectly replaced. Add used_code/used_data and used them
instead.
This commit is contained in:
parent
4c2dd3924a
commit
da5659138b
@ -182,7 +182,7 @@ static int cxd56_farapidonehandler(int cpuid, int protoid,
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
unused_code
|
||||
used_code
|
||||
void farapi_main(int id, void *arg, struct modulelist_s *mlist)
|
||||
{
|
||||
struct farmsg_s msg;
|
||||
|
@ -76,7 +76,7 @@ uint8_t g_idle_stack[BL602_IDLESTACK_SIZE]
|
||||
* g_boot2_partition_table in linker script
|
||||
*/
|
||||
|
||||
static struct boot2_partition_table_s g_boot2_partition_table unused_data;
|
||||
static struct boot2_partition_table_s g_boot2_partition_table used_data;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
|
@ -186,10 +186,12 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The unsued code or data */
|
||||
/* The unused code or data */
|
||||
|
||||
# define unused_code __attribute__((unused))
|
||||
# define unused_data __attribute__((unused))
|
||||
# define used_code __attribute__((used))
|
||||
# define used_data __attribute__((used))
|
||||
|
||||
/* Some versions of GCC have a separate __syslog__ format.
|
||||
* http://mail-index.netbsd.org/source-changes/2015/10/14/msg069435.html
|
||||
@ -452,6 +454,8 @@
|
||||
|
||||
# define unused_code
|
||||
# define unused_data
|
||||
# define used_code
|
||||
# define used_data
|
||||
|
||||
# define formatlike(a)
|
||||
# define printflike(a, b)
|
||||
@ -591,6 +595,8 @@
|
||||
# define nostackprotect_function
|
||||
# define unused_code
|
||||
# define unused_data
|
||||
# define used_code
|
||||
# define used_data
|
||||
# define formatlike(a)
|
||||
# define printflike(a, b)
|
||||
# define sysloglike(a, b)
|
||||
@ -702,6 +708,8 @@
|
||||
# define nostackprotect_function
|
||||
# define unused_code
|
||||
# define unused_data
|
||||
# define used_code
|
||||
# define used_data
|
||||
# define formatlike(a)
|
||||
# define printflike(a, b)
|
||||
# define sysloglike(a, b)
|
||||
@ -768,6 +776,8 @@
|
||||
# define nostackprotect_function
|
||||
# define unused_code
|
||||
# define unused_data
|
||||
# define used_code
|
||||
# define used_data
|
||||
# define formatlike(a)
|
||||
# define printflike(a, b)
|
||||
# define sysloglike(a, b)
|
||||
|
Loading…
Reference in New Issue
Block a user