mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Felipe Contreras <felipe.contreras@gmail.com>,
	Len Brown <lenb@kernel.org>, Len Brown <len.brown@intel.com>,
	Lin Ming <ming.m.lin@intel.com>,
	Bob Moore <robert.moore@intel.com>,
	Andi Kleen <ak@linux.intel.com>,
	linux-acpi@vger.kernel.org
Subject: [PATCH 4/5] acpi: fix trivial warning
Date: Sun, 13 Sep 2009 22:38:26 +0300	[thread overview]
Message-ID: <1252870707-4824-5-git-send-email-felipe.contreras@gmail.com> (raw)
In-Reply-To: <1252870707-4824-4-git-send-email-felipe.contreras@gmail.com>

drivers/acpi/acpica/tbfadt.c: In function ‘acpi_tb_create_local_fadt’:
arch/x86/include/asm/string_32.h:74: warning: array subscript is above array bounds

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 include/acpi/actypes.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index 37ba576..e312be7 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -438,8 +438,8 @@ typedef unsigned long long acpi_integer;
 
 #define ACPI_SET_BIT(target,bit)        ((target) |= (bit))
 #define ACPI_CLEAR_BIT(target,bit)      ((target) &= ~(bit))
-#define ACPI_MIN(a,b)                   (((a)<(b))?(a):(b))
-#define ACPI_MAX(a,b)                   (((a)>(b))?(a):(b))
+#define ACPI_MIN(a,b)                   min(a, b)
+#define ACPI_MAX(a,b)                   max(a, b)
 
 /* Size calculation */
 
-- 
1.6.5.rc1


  reply	other threads:[~2009-09-13 19:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13 19:38 [PATCH 0/5] Trivial warning cleanups Felipe Contreras
2009-09-13 19:38 ` [PATCH 1/5] Trivial whitespace cleanups Felipe Contreras
2009-09-13 19:38   ` [PATCH 2/5] kbuild: fix warning when domainname is not available Felipe Contreras
2009-09-13 19:38     ` [PATCH 3/5] kbuild: mkcompile_h: trivial cleanups Felipe Contreras
2009-09-13 19:38       ` Felipe Contreras [this message]
2009-09-13 19:38         ` [PATCH 5/5] acpi: fix trivial warnings caused by previous commmit Felipe Contreras
2009-09-14 13:55         ` [PATCH 4/5] acpi: fix trivial warning Daniel Walker
2009-09-14 14:34           ` Felipe Contreras
2009-09-14 15:02             ` Daniel Walker
2009-11-12  0:23               ` Felipe Contreras
2009-11-13 17:43                 ` Daniel Walker
2009-11-13 20:28                   ` Felipe Contreras
2009-11-13 20:37                     ` Thiago Farina
2009-11-15 17:15                     ` Daniel Walker
2009-11-15 17:27                       ` Felipe Contreras
2009-11-15 17:32                         ` Daniel Walker
2009-11-15 17:54                           ` Alexey Starikovskiy
2009-11-15 17:58                             ` Daniel Walker
2009-11-15 18:10                               ` Alexey Starikovskiy
2009-11-15 18:09                                 ` Daniel Walker
2009-11-16  1:27                         ` Lin Ming
2009-09-13 21:12     ` [PATCH 2/5] kbuild: fix warning when domainname is not available Mike Frysinger
2009-09-13 21:42       ` Felipe Contreras
2009-09-13 21:58         ` Mike Frysinger
2009-09-13 22:04           ` Felipe Contreras
2009-09-14  4:46             ` Sam Ravnborg
2009-09-14  8:25               ` Felipe Contreras
2009-09-14 13:43                 ` Mike Frysinger
2009-09-15  8:38                   ` Felipe Contreras

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=1252870707-4824-5-git-send-email-felipe.contreras@gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=ak@linux.intel.com \
    --cc=len.brown@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.m.lin@intel.com \
    --cc=robert.moore@intel.com \
    /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

all inboxes | Powered by JetHome®