Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: Change the prototype of k_thread_access_grant. #12253

Merged

Commits on Jan 3, 2019

  1. include: misc: util: Added new util macros FOR_EACH_FIXED_ARG

    This new macro will be able to do FOR_EACH with a fixed argument.
    This fixed argument will always be called as the 2nd argument
    to the function call(_fn).
    
    Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
    AdithyaBaglody committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    d273e21 View commit details
    Browse the repository at this point in the history
  2. kernel: Change the prototype of k_thread_access_grant.

    This API was using variable number of arguments. Which is not
    allowed according to misra c guidelines(Rule 17.1). Hence making
    this API into a macro and using the util macro FOR_EACH_FIXED_ARG
    to get the same functionality.
    
    There is one deviation from the old function. The last argument
    shouldn't be NULL.
    
    Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
    AdithyaBaglody committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    18dd538 View commit details
    Browse the repository at this point in the history
  3. tests: Updated all the tests which use k_thread_access_grant.

    With the new implementation we do not need a NULL terminated list
    of kobjects. Therefore the list will only contain valid entries
    of kobjects.
    
    Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
    AdithyaBaglody committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    35ca98d View commit details
    Browse the repository at this point in the history