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

Fix this warning by removing a unneeded use of defined #3

Open
wants to merge 2 commits into
base: kitkat
Choose a base branch
from
Open

Fix this warning by removing a unneeded use of defined #3

wants to merge 2 commits into from

Conversation

desalesouche
Copy link

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

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>
@moddingg33k
Copy link
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

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.

None yet

2 participants