-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
nuttx/uorb: Fix build error #13540
Merged
xiaoxiang781216
merged 2 commits into
apache:master
from
JianyuWang0623:br_wjy_fix_sensor_ops_s_member
Sep 19, 2024
Merged
nuttx/uorb: Fix build error #13540
xiaoxiang781216
merged 2 commits into
apache:master
from
JianyuWang0623:br_wjy_fix_sensor_ops_s_member
Sep 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Experimental Bot, please feedback here] Squash The Commits: This PR contains 2 Commits. Please Squash the Multiple Commits into a Single Commit. NuttX PR Requirements ReviewThis PR appears incomplete and does not meet the NuttX requirements. Here's why: Summary:
Impact:
Testing:
Recommendations:
By addressing these points, you'll significantly improve the PR's quality and facilitate a smoother review process. |
xiaoxiang781216
approved these changes
Sep 19, 2024
…or_ops_s` Related change: .flush : 4034693 .get_info : 703bb7e Error Log: 1153 Building NuttX... 1154Error: sensors/bme680_uorb.c:428:3: error: initialization of 'int (*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int)' from incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, int, long unsigned int)' [-Werror=incompatible-pointer-types] 1155 428 | bme680_control /* control */ 1156 | ^~~~~~~~~~~~~~ Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
Related: b17c074 Log: Error: sensors/ms56xx_uorb.c:145:20: error: initialization of 'int (*)(struct sensor_lowerhalf_s *, struct file *, uint32_t *)' {aka 'int (*)(struct sensor_lowerhalf_s *, struct file *, unsigned int *)'} from incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int *)' [-Werror=incompatible-pointer-types] 145 | .set_interval = ms56xx_set_interval, | ^~~~~~~~~~~~~~~~~~~ sensors/ms56xx_uorb.c:145:20: note: (near initialization for 'g_sensor_ops.set_interval') cc1: all warnings being treated as errors Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
JianyuWang0623
force-pushed
the
br_wjy_fix_sensor_ops_s_member
branch
from
September 19, 2024 09:57
4cc1726
to
c71df76
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
New member added to
struct sensor_ops_s
, and type changed, but not update all existed code, for details, please see "Related change" below.Impact
drivers/sensors
Testing
esp32-devkitc:ms5611
andesp32-sparrow-kit:nsh
compiled ok, but failed in link stage(maybe because of abnormal local env), waiting for result of CI(xtensa-01).