On Thu, Feb 02, 2023 at 11:23:41AM +0100, Kevin Brodsky wrote:
On 31/01/2023 12:25, Beata Michalska wrote:
To avoid some ungraceful #ifdef'ing in morello_setup_signal_return(), morello_sentry_unsealcap is now always defined, as the overhead is insignificant (a 16-byte global and a few instructions on startup).
Minor: You can use IS_ENABLED instead of #ifdef'ing, though I do not mind the change.
I don't think so, IS_ENABLED() doesn't remove the need for the whole expression to be parsable, which requires morello_sentry_unsealcap to be at least declared.
I was thinkin about skipping the unseal call but that one is already guarded by is_pure_task so you are right, that is not an option. My bad.
--- BR B.
Kevin