Skip to content

nuttx/err.h add ERR_PTR IS_ERR IS_ERR_OR_NULL ERR_CAST PTR_ERR_OR_ZER…#10355

Closed
Otpvondoiats wants to merge 1 commit intoapache:masterfrom
Otpvondoiats:lk_err
Closed

nuttx/err.h add ERR_PTR IS_ERR IS_ERR_OR_NULL ERR_CAST PTR_ERR_OR_ZER…#10355
Otpvondoiats wants to merge 1 commit intoapache:masterfrom
Otpvondoiats:lk_err

Conversation

@Otpvondoiats
Copy link
Copy Markdown
Contributor

…O macro definition.

compiler.h:add likely/unlikely macro definition to nuttx/err.h file.

Summary

Impact

Testing

…O macro definition.

compiler.h:add likely/unlikely macro definition to nuttx/err.h file.

Signed-off-by: likun17 <likun17@xiaomi.com>

#define MAX_ERRNO 4095

#define IS_ERR_VALUE(x) predict_false((unsigned long)(FAR void *)(x) >= \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change all inline function to macros

* error and pointer decisions.
****************************************************************************/

#define MAX_ERRNO 4095
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to __MAXERROR and move to errno.h?

@Otpvondoiats Otpvondoiats deleted the lk_err branch September 4, 2023 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants