-
Notifications
You must be signed in to change notification settings - Fork 28
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
03 module task #119
base: Maryna.Malakhova
Are you sure you want to change the base?
03 module task #119
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please base your PRs on your branch at point which already includes task commit.
Task should be included via merge from master.
In this particular case you should merge 158b7e8 into https://github.com/Kernel-GL-HRK/gl-kernel-training-2021/commits/Maryna.Malakhova and rebase this PR onto that point.
The same is relevant for other PRs as well.
#include <linux/module.h> // Core header for loading LKMs into the kernel | ||
#include <linux/kernel.h> // Contains types, macros, functions for the kernel | ||
#include <linux/module.h> // Core header for loading LKMs into the kernel | ||
#include <linux/kernel.h> // Contains types, macros, functions for the kernel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I'd ask to fix codestyle in place, but as this is a separate point of task, lets keep such fixup commit.
- You still have inconsistent indentation of comments (in includes block);
- Add
Fixes
line in commit message per kernel standard;
9b871ff
to
9d76817
Compare
Thank you for the review. I think. that I've fixed |
645cd60
to
6353ce6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase onto 158b7e8, as we agreed.
$(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) modules | ||
|
||
clean: | ||
$(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makefile expects BUILD_KERNEL
being defined in environment,
but neither code, nor commit message don't explain this.
6353ce6
to
b88d68a
Compare
Thanks for the review, I`ve fixed |
Add Makefile, source file according to the lecture Module has been compiled and checked on Beaglebone BBB kernel has been made on the linux-stable 14.9y base Variable BUILD_KERNEL should be set in the environment for building BUILD_KERNEL should define path to the linux kernel source folder Signed-off-by: Maryna Malakhova <[email protected]>
Added parameter to module init and it is provided as a result Signed-off-by: Maryna Malakhova <[email protected]>
Init could return 0 or negative values Signed-off-by: Maryna Malakhova <[email protected]>
Add log file of module's output Signed-off-by: Maryna Malakhova <[email protected]>
b88d68a
to
da90cc1
Compare
Add a simple module realization and it`s log output from BBboard