From: Alexander Beregalov <hidden> Date: 2008-07-30 21:04:19
From: Alexander Beregalov <redacted>
atyfb_base.c: fix warning
drivers/video/aty/atyfb_base.c:2663: warning: 'aty_resume_chip' defined
but not used
Signed-off-by: Alexander Beregalov <redacted>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Antonino A. Daplas <redacted>
---
drivers/video/aty/atyfb_base.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
From: M. Asselstine <hidden> Date: 2008-07-31 01:15:10
On Wed, Jul 30, 2008 at 5:03 PM, Alexander Beregalov
[off-list ref] wrote:
From: Alexander Beregalov <redacted>
atyfb_base.c: fix warning
drivers/video/aty/atyfb_base.c:2663: warning: 'aty_resume_chip' defined
but not used
Signed-off-by: Alexander Beregalov <redacted>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Antonino A. Daplas <redacted>
Looks good, should you maybe move the aty_resume_chip() up into the
existing #if defined(CONFIG_PM) &&... that atyfb_pci_resume() is in?
Not sure, just a thought.
Reviewed-by: Mark Asselstine <redacted>
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Andrew Morton <akpm@linux-foundation.org> Date: 2008-07-31 09:16:59
On Thu, 31 Jul 2008 01:03:52 +0400 Alexander Beregalov [off-list ref] wrote:
quoted hunk
From: Alexander Beregalov <redacted>
atyfb_base.c: fix warning
drivers/video/aty/atyfb_base.c:2663: warning: 'aty_resume_chip' defined
but not used
Signed-off-by: Alexander Beregalov <redacted>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Antonino A. Daplas <redacted>
---
drivers/video/aty/atyfb_base.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
OK...
We don't strictly need the first ifdef - it's OK to declare a
non-existent function, and ifdefs are ugly.
But we can reorganise the code a bit more and remove the forward
declaration altogether and remove a whole ifdef block too.
How does this look?
drivers/video/aty/atyfb_base.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff -puN drivers/video/aty/atyfb_base.c~atyfb_basec-fix-warning drivers/video/aty/atyfb_base.c
_
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
From: M. Asselstine <hidden> Date: 2008-07-31 12:48:13
On Thu, Jul 31, 2008 at 5:15 AM, Andrew Morton
[off-list ref] wrote:
On Thu, 31 Jul 2008 01:03:52 +0400 Alexander Beregalov [off-list ref] wrote:
quoted
From: Alexander Beregalov <redacted>
atyfb_base.c: fix warning
drivers/video/aty/atyfb_base.c:2663: warning: 'aty_resume_chip' defined
but not used
Signed-off-by: Alexander Beregalov <redacted>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Antonino A. Daplas <redacted>
---
drivers/video/aty/atyfb_base.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
OK...
We don't strictly need the first ifdef - it's OK to declare a
non-existent function, and ifdefs are ugly.
But we can reorganise the code a bit more and remove the forward
declaration altogether and remove a whole ifdef block too.
How does this look?
Ah. Much better, this is definitely the way to go.
Mark
_
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/