-
Notifications
You must be signed in to change notification settings - Fork 163
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
CMake changes from main branch [PR: #557, PR: #742] #803
CMake changes from main branch [PR: #557, PR: #742] #803
Conversation
…ectly from network packets
6625e59
to
12256f0
Compare
…k as they are not defined in kernel
/bot run uncrustify |
/bot run uncrustify |
8bbe140
to
edec1c9
Compare
/bot run uncrustify |
b22c45c
to
65d7121
Compare
/bot run uncrustify |
07f3255
to
e0b9162
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Tony for this PR.
I only have some minor comments, mostly about printf()
formats for logging and some casts.
/bot run uncrustify |
a4f9a46
to
c5dc60d
Compare
source/FreeRTOS_DHCPv6.c
Outdated
@@ -325,7 +325,7 @@ void vDHCPv6Process( BaseType_t xReset, | |||
} | |||
else | |||
{ | |||
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u byt4es\n", sizeof( *pxEndPoint->pxDHCPMessage ) ) ); | |||
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned ) sizeof( *pxEndPoint->pxDHCPMessage ) ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for consistency -
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned ) sizeof( *pxEndPoint->pxDHCPMessage ) ) ); | |
FreeRTOS_printf( ( "vDHCPv6Process: malloc failed %u bytes\n", ( unsigned int ) sizeof( *pxEndPoint->pxDHCPMessage ) ) ); | |
@@ -313,10 +313,9 @@ | |||
xSet.usPortNumber = usPort; | |||
xSet.ppxLastAddress = &( xSet.pxLastAddress ); | |||
|
|||
#if ( ipconfigUSE_LLMNR == 1 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the right change be to replace #ifndef _lint
with #if ( ipconfigUSE_LLMNR == 1 )
?
source/FreeRTOS_DNS_Parser.c
Outdated
@@ -1043,6 +1045,11 @@ | |||
NetworkEndPoint_t xEndPoint; | |||
BaseType_t xMustReply = pdFALSE; | |||
|
|||
/* Not used for now */ | |||
( void ) uxBufferLength; | |||
( void ) uxBytesNeeded; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove the local variables if they are not used.
source/FreeRTOS_TCP_Utils_IPV6.c
Outdated
@@ -56,6 +56,11 @@ | |||
void prvSocketSetMSS_IPV6( FreeRTOS_Socket_t * pxSocket ) | |||
{ | |||
uint32_t ulMSS = ipconfigTCP_MSS; | |||
|
|||
#if ( ipconfigHAS_DEBUG_PRINTF == 1 ) | |||
char cBuffer[ 40 ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would cIPv6Address be a better name?
|
||
#endif | ||
|
||
extern const struct xIPv6_Address FreeRTOS_in6addr_any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
test/build-combination/Common/main.c
Outdated
@@ -223,6 +232,17 @@ void vAssertCalled( const char * pcFile, | |||
} | |||
/*-----------------------------------------------------------*/ | |||
|
|||
void vLoggingPrintf( const char * pcFormat, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still needed as configPRINTF
is defined to empty?
test/build-combination/Common/main.c
Outdated
void vAssertCalled( const char * pcFile, | ||
uint32_t ulLine ) | ||
unsigned long ulLine ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this function needed given the configASEERT is not defined?
/bot run uncrustify |
7417153
to
6e056ee
Compare
…reeRTOS#803) * 556 Initial Cmake Module definition. FreeRTOS#557 * renaming variables that have conflicting names with MSC and *nix headers * fix build issue for posix port * Fix warning: -Waddress-of-packed-member when calculating checksum directly from network packets * fix warnings with prvInitialiseTCPFields declaration * removing macros that hides the structure fields * Updating build check enable all config to enable all config macros * CMake: Fix GIT_REPOSITORY and GIT_TAG (FreeRTOS#742) * moving ipTRUE_BOOL and ipFALSE_BOOL out of #ifndef pdTRUE_SIGNED check as they are not defined in kernel * minor fix to the cmake files and main file * Uncrustify: triggered by comment. * adding doxygen comments to new functions * Uncrustify: triggered by comment * Add more warnings check and fix warnings * Uncrustify: triggered by comment * fix review feedback and more debug printf warnings fix * more warnings fix * fix misra issues * Uncrustify: triggered by comment * replace sin_addr with sin_address.ulIP_IPv4 in +TCP demos * replace sin_addr6 with sin_address.xIP_IPv6 in +TCP demos * replace freertos_sockaddr6 with freertos_sockaddr in +TCP demos * review feedback changes * removing duplicate def for prvStreamBufferAdd from winpcap * fix more warnings from MSVC * Uncrustify: triggered by comment * review feedback changes * Uncrustify: triggered by comment --------- Co-authored-by: phelter <[email protected]> Co-authored-by: Nikhil Kamath <[email protected]> Co-authored-by: GitHub Action <[email protected]>
Description
This PR updates the cmake changes added to the main branch to the dev/IPv6_integration branch and related fix for warnings and build errors.
PRs:
Checklist:
Related Issue
Updating dev/IPv6_integration branch wrt. main.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.