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

nrf_51822.h: fix build on sparc #388

Merged
merged 1 commit into from Jul 20, 2021
Merged

nrf_51822.h: fix build on sparc #388

merged 1 commit into from Jul 20, 2021

Conversation

ffontaine
Copy link
Contributor

apple is not the only target that miss some defines, for example build fails on sparc with:

capture_nrf_51822.c: In function 'get_baud':
capture_nrf_51822.c:80:16: error: 'B2500000' undeclared (first use in this function); did you mean 'B2000000'?
   80 |         return B2500000;
      |                ^~~~~~~~
      |                B2000000
capture_nrf_51822.c:80:16: note: each undeclared identifier is reported only once for each function it appears in
capture_nrf_51822.c:82:16: error: 'B3000000' undeclared (first use in this function); did you mean 'B2000000'?
   82 |         return B3000000;
      |                ^~~~~~~~
      |                B2000000
capture_nrf_51822.c:84:16: error: 'B3500000' undeclared (first use in this function); did you mean 'B500000'?
   84 |         return B3500000;
      |                ^~~~~~~~
      |                B500000
capture_nrf_51822.c:86:16: error: 'B4000000' undeclared (first use in this function); did you mean 'B2000000'?
   86 |         return B4000000;
      |                ^~~~~~~~
      |                B2000000

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

apple is not the only target that miss some defines, for example build
fails on sparc with:

capture_nrf_51822.c: In function 'get_baud':
capture_nrf_51822.c:80:16: error: 'B2500000' undeclared (first use in this function); did you mean 'B2000000'?
   80 |         return B2500000;
      |                ^~~~~~~~
      |                B2000000
capture_nrf_51822.c:80:16: note: each undeclared identifier is reported only once for each function it appears in
capture_nrf_51822.c:82:16: error: 'B3000000' undeclared (first use in this function); did you mean 'B2000000'?
   82 |         return B3000000;
      |                ^~~~~~~~
      |                B2000000
capture_nrf_51822.c:84:16: error: 'B3500000' undeclared (first use in this function); did you mean 'B500000'?
   84 |         return B3500000;
      |                ^~~~~~~~
      |                B500000
capture_nrf_51822.c:86:16: error: 'B4000000' undeclared (first use in this function); did you mean 'B2000000'?
   86 |         return B4000000;
      |                ^~~~~~~~
      |                B2000000

Fixes:
 - http://autobuild.buildroot.org/results/38f20816a654894c0625f00b1360c92fdc251e8b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@kismetwireless kismetwireless merged commit b347fea into kismetwireless:master Jul 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.

None yet

2 participants