[PATCH] fixed warning related to spstdc17

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 27 05:40:29 UTC 2023



On 27.10.23 03:43, zack leung wrote:
> ping
> 
> On Tue, 24 Oct 2023 at 22:17, zack leung <zakthertemsdev at gmail.com 
> <mailto:zakthertemsdev at gmail.com>> wrote:
> 
>     that didn't work but i'm thinking of defining a char array that is 
>     equal to the size of the processor lock and the isr lock? 

This is a bit complicated and still leads to a size increase.

> i figured 
>     that the processor lock is 64 bits and isr lock is a one bit?
>     I'm confused on how to make an api define do you have a file i can
>     look at?

Maybe you try to fix the Scheduler_Context warning first. It is easier 
to fix. I am pretty sure that this approach works:

Get rid of the empty structures is to just provide typedefs, for example:

#if defined(RTEMS_SMP)
typedef struct Scheduler_Context {
    ...
} Scheduler_Context;
#else
typedef struct Scheduler_Context Scheduler_Context;
#endif

Then you have to make sure that #if !defined(RTEMS_SMP) no objects of 
this type are used.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list