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

bugfix: stray error 'error: expected declaration specifiers or ‘...’ … #113

Closed
wants to merge 1 commit into from
Closed

bugfix: stray error 'error: expected declaration specifiers or ‘...’ … #113

wants to merge 1 commit into from

Conversation

mrigendrachaubey
Copy link

…before string constant'

Signed-off-by: Mrigendra Chaubey [email protected]

…before string constant'

Signed-off-by: Mrigendra Chaubey <[email protected]>
tavip pushed a commit to linux-kernel-labs/linux-kernel-labs.github.io that referenced this pull request Apr 8, 2019
@mrigendrachaubey
Copy link
Author

make build fails on 4.15.0-47-generic ubuntu16.04 LTS.

@@ -1,6 +1,5 @@
#include <linux/init.h>
#include <linux/kernel.h>
/* TODO: add missing kernel headers */
#include <linux/module.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is the correct fix? We intentionally added the TODO there. This exercises shows the reader what happens if the proper headers are not included.

Thanks for the contribution! But I think you should rethink your solution. If there is a stray character before the comment just remove that but please leave the comment there.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its a wrong fix definetly and I wasn't aware if it was an exercise, as I was also getting build failure in doing make docs :p

sphinx-doc/sphinx#6269

As I am getting my senses back I see this is wrong solution I have posted.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only thing that bothers me here is without using the comments I can compile it easily. So what headers we need, as error says nothing about header missing.

@dbaluta
Copy link
Member

dbaluta commented Apr 8, 2019

make build fails on 4.15.0-47-generic ubuntu16.04 LTS.

Yes, the build failure is as expected. There is an exercise which asks the students to fix the build failure.

@razvand @tavip Should we remove this exercise. It is confusing.

@razvand
Copy link

razvand commented Apr 21, 2019

@dbaluta, I think it's a good exercise. It'a a troubleshooting exercise showing what happens when you don't include all headers. We should make it more ambiguous in the exercise statement, but I wouldn't remove it. Please add an issue and close this pull request.

@dbaluta
Copy link
Member

dbaluta commented May 4, 2019

Added the following issue to find a better solution: #132

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.

3 participants