Fix this warning by removing a unneeded use of defined#3
Open
desalesouche wants to merge 2 commits intodazjo:kitkatfrom
DESHONOR:kitkat
Open
Fix this warning by removing a unneeded use of defined#3desalesouche wants to merge 2 commits intodazjo:kitkatfrom DESHONOR:kitkat
desalesouche wants to merge 2 commits intodazjo:kitkatfrom
DESHONOR:kitkat
Conversation
TIMEC kernel/timeconst.h defined(@array) is deprecated at kernel/timeconst.pl line 373. (Maybe you should just omit the defined()?) http://linux-kernel.2935.n7.nabble.com/PATCH-1-5-kbuild-remove-deprecated-use-of-defined-in-timeconst-pl-td556009.html
This patch fixes the following warning: arch/arm/mm/alignment.c: In function 'do_alignment': arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used uninitialized in this function [-Wmaybe-uninitialized] arch/arm/mm/alignment.c:749:21: note: 'offset.un' was declared here The fix is to promote the initialization of offset into do_alignment(). Signed-off-by: Cyril Chemparathy <cy...@ti.com>
Contributor
|
The correct fix for the "offset.un" warning should rather look like this: https://www.codeaurora.org/cgit/quic/la/kernel/msm/commit/arch/arm/mm/alignment.c?h=msm-3.4&id=7d1716597cc9049da73ece31c67f2c1e6879ee6d |
This file contains hidden or 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
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.
TIMEC kernel/timeconst.h
defined(@array) is deprecated at kernel/timeconst.pl line 373.
(Maybe you should just omit the defined()?)
http://linux-kernel.2935.n7.nabble.com/PATCH-1-5-kbuild-remove-deprecated-use-of-defined-in-timeconst-pl-td556009.html