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

CONFIG_BMM150_SET_ATTR not defined (and now removed), giving dead code #7848

Closed
ulfalizer opened this issue May 24, 2018 · 6 comments
Closed
Assignees
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@ulfalizer
Copy link
Collaborator

ulfalizer commented May 24, 2018

drivers/sensor/bmm150/Kconfig has no definition for BMM150_SET_ATTR, which is set by samples/sensor/bmm150/prj.conf.

drivers/sensor/bmm150/bmm150.c has a bunch of #if defined(BMM150_SET_ATTR) (and some #if defined(BMM150_SET_ATTR_REP)), which are probably dead code. If those are meant to be Kconfig symbols, they'll need Kconfig definitions (and a CONFIG_ prefix in the #ifdefs).

@ulfalizer
Copy link
Collaborator Author

CC @punitvara

I'm trying to get rid of all assignments to undefined Kconfig symbols, so it can be turned into an error during testing.

@MaureenHelm MaureenHelm added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: Sensors Sensors labels May 24, 2018
ulfalizer added a commit to ulfalizer/zephyr that referenced this issue May 25, 2018
This symbol never existed, and has some dead code associated with it:
zephyrproject-rtos#7848

Just remove the assignment to the undefined Kconfig symbol for now. The
associated code could be removed separately if it isn't needed anymore.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
@ulfalizer ulfalizer changed the title CONFIG_BMM150_SET_ATTR not defined, giving dead code CONFIG_BMM150_SET_ATTR not defined (and now removed), giving dead code May 25, 2018
@ulfalizer
Copy link
Collaborator Author

I'm removing just the CONFIG_BMM150_SET_ATTR assignment in #7935. Remove the code as well if it isn't needed.

galak pushed a commit that referenced this issue May 25, 2018
This symbol never existed, and has some dead code associated with it:
#7848

Just remove the assignment to the undefined Kconfig symbol for now. The
associated code could be removed separately if it isn't needed anymore.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
@punitvara
Copy link
Contributor

@ulfalizer Extra code could be useful when interrupt functionality will be added. @ulfalizer @MaureenHelm Do you suggest to remove extra code as of now ?

@punitvara
Copy link
Contributor

@ulfalizer ??

@ulfalizer
Copy link
Collaborator Author

@punitvara
Sorry, missed it.

No panic to remove it on my part, if you think it might get used.

@punitvara
Copy link
Contributor

Ok no problem @ulfalizer Closing this issue as code is reusable to enable interrupt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants