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

drivers: console: uart_mux: fix build issues #35491

Closed

Conversation

hwilmers
Copy link
Contributor

With logging enabled, building of uart_mux.c fails with an error
message indicating that struct gsm_dlci is undefined. In fact,
struct gsm_dlci is declared in gsm_mux.h, but defined in gsm_mux.c.

The build error is caused by calls to LOG_DBG, which displays a
pointer to struct gsm_dlci as a generic pointer.

The error is resolved by typecasts to (void *).

Fixes #35489

Signed-off-by: Hans Wilmers hans@wilmers.no

With logging enabled, building of uart_mux.c fails with an error
message indicating that struct gsm_dlci is undefined. In fact,
struct gsm_dlci is declared in gsm_mux.h, but defined in gsm_mux.c.

The build error is caused by calls to LOG_DBG, which displays a
pointer to struct gsm_dlci as a generic pointer.

The error is resolved by typecasts to (void *).

Fixes zephyrproject-rtos#35489

Signed-off-by: Hans Wilmers <hans@wilmers.no>
@hwilmers hwilmers requested a review from jukkar as a code owner May 20, 2021 08:34
@hwilmers
Copy link
Contributor Author

Closing, since this is already fixed in pr35330

@hwilmers hwilmers closed this May 20, 2021
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.

samples: net: gsm_modem: build fails if CONFIG_GSM_MUX=y
1 participant