From: "Luiz Fernando N. Capitulino" <lcapitulino@mandriva.com.br>
To: Claudio Scordino <claudio@evidence.eu.com>
Cc: linux-mm@kvack.org, philb@gnu.org
Subject: Re: Warning message when compiling ioremap.c
Date: Wed, 3 Sep 2008 14:01:40 -0300 [thread overview]
Message-ID: <20080903140140.333bc137@doriath.conectiva> (raw)
In-Reply-To: <48BCED2A.6030109@evidence.eu.com>
Em Tue, 02 Sep 2008 09:37:14 +0200
Claudio Scordino <claudio@evidence.eu.com> escreveu:
| Hi,
|
| I'm not skilled with MM at all, so sorry if I'm saying something
| stupid.
|
| When compiling Linux (latest kernel from Linus' git) on ARM, I noticed
| the following warning:
|
| CC arch/arm/mm/ioremap.o
| arch/arm/mm/ioremap.c: In function '__arm_ioremap_pfn':
| arch/arm/mm/ioremap.c:83: warning: control may reach end of non-void
| function 'remap_area_pte' being inlined
|
| According to the message in the printk, we go to "bad" when the page
| already exists.
You see that right before the return you have added there is a
BUG() macro? That macro will call panic(), this means that this
function will never return if it reaches that point.
If all you want is to silent gcc, you should remove the goto and
move the bad label contents there.
This is minor, but I see no need for the goto.
--
Luiz Fernando N. Capitulino
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-09-03 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-02 7:37 Claudio Scordino
2008-09-03 17:01 ` Luiz Fernando N. Capitulino [this message]
2008-09-08 13:11 ` Claudio Scordino
2008-09-08 13:19 ` Phil Blundell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080903140140.333bc137@doriath.conectiva \
--to=lcapitulino@mandriva.com.br \
--cc=claudio@evidence.eu.com \
--cc=linux-mm@kvack.org \
--cc=philb@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox