Skip to content

Task5#152

Open
ant112342 wants to merge 3 commits into
Kernel-GL-HRK:anton.kotsiubailofrom
ant112342:task5
Open

Task5#152
ant112342 wants to merge 3 commits into
Kernel-GL-HRK:anton.kotsiubailofrom
ant112342:task5

Conversation

@ant112342

Copy link
Copy Markdown

Done task05

@ant112342 ant112342 requested a review from alexposukhov March 25, 2021 15:48
Implemented proc and sys convering word into uppercase
and lower case

Signed-off-by: Anton Kotsiubailo <antohakotsubailo@gmail.com>
Comment thread 05_debug/task05_proc.c Outdated
Comment thread 05_debug/task05_sys.c Outdated
Comment thread 05_debug/task05_sys.c Outdated
return -EINVAL;
}

res = class_create_file(x_class, &class_attr_total_characters_processed);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Checkpatch complains on this line as too long. Please split it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed

Comment thread 05_debug/task05_sys.c Outdated
class_remove_file(x_class, &class_attr_xxx);
class_destroy(x_class);

return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove this return, remove then empty line

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have minor comments, all other works for me

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

@alexposukhov alexposukhov added Change requested Change requested and removed Ready for review Ready for review labels Mar 25, 2021
Performed refactoring of existed code

Signed-off-by: Anton Kotsiubailo <antohakotsubailo@gmail.com>
@ant112342 ant112342 added Ready for review Ready for review and removed Change requested Change requested labels Mar 25, 2021
Comment thread README.md Outdated


Please refer to wiki for details.
=======

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This file should NOT be modified.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I didn't

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is in YOUR pull request, so it somehow happened, probably by mistake.
Now you need to remove this extra change.
In order to do it - you have to inspect all your commits and find the problematic one.
Then do interactive rebase with stop on the problematic commit and fix it.

@Anton-Soroka Anton-Soroka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry, I can't check your task without Makefile
Please do following:

  1. Add Makefile
  2. Cherry-pick commit with task description
  3. Remove modifications in README file
  4. Fix code according to comments
  5. Ensure that make and checkpatch shows zero warnings.

Comment thread 05_debug/task05_sys.c
Comment on lines +119 to +132
pr_err("bad file 'total_characters_processed' create\n");
return -EINVAL;
}

res = class_create_file(x_class, &class_attr_total_calls);
if (res != 0) {
pr_err("bad file 'total_calls' create\n");
return -EINVAL;
}

res = class_create_file(x_class, &class_attr_characters_converted);
if (res != 0) {
pr_err("bad file 'characters_converted' create\n");
return -EINVAL;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In case of error - Need to destroy previously created files and classes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done, but I think README was changed, because previous this branch was deleted
I don't know why

@Anton-Soroka Anton-Soroka Mar 28, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Still not done :(
Please read previous comment carefully!

Comment thread 05_debug/task05_proc.c Outdated
@Anton-Soroka Anton-Soroka added Change requested Change requested and removed Ready for review Ready for review labels Mar 27, 2021
@ant112342 ant112342 added Ready for review Ready for review and removed Change requested Change requested labels Mar 28, 2021
Comment thread 05_debug/Makefile Outdated
else
# normal makefile

obj-m := task05_sys.o

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You have two modules in this task.
Need to do following: either add line for second module here or add a separate makefile for each module.

@Anton-Soroka Anton-Soroka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Previous comments still not resolved.
Please read carefully.

@Anton-Soroka Anton-Soroka added Change requested Change requested and removed Ready for review Ready for review labels Mar 28, 2021
Implemented Makefile and added it to task05.

Signed-off-by: Anton Kotsiubailo <antohakotsubailo@gmail.com>
@ant112342 ant112342 added Ready for review Ready for review and removed Change requested Change requested labels Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants