From: Len Brown <len.brown@intel.com>
To: linux-acpi@vger.kernel.org
Cc: Len Brown <len.brown@intel.com>
Subject: [PATCH 9/9] ACPI: IA64: fix %ll build warnings
Date: Tue, 20 Mar 2007 11:27:11 -0400 [thread overview]
Message-ID: <11744044391690-git-send-email-len.brown@intel.com> (raw)
Message-ID: <0cd4554df0c261f7ba74786e471ccaa0e3725fb9.1174404137.git.len.brown@intel.com> (raw)
In-Reply-To: <11744044381545-git-send-email-len.brown@intel.com>
In-Reply-To: <a1fdcc0d2714b6622e3fd5c00db1635213d6c41a.1174404136.git.len.brown@intel.com>
acpi_integer is 64-bits on all platforms, and so was defined as a u64.
i386 and x86_64 define u64 as unsigned long long.
ia64 defines u64 as long.
While these are all 64-bits, the kernel build warns about formating
a "long" with %ll:
drivers/ata/libata-acpi.c:176: warning: long long unsigned int format, acpi_integer arg (arg 5)
So skip using "u64" and define acpi_integer as "unsigned long long"
to make gcc happy with %ll.
Signed-off-by: Len Brown <len.brown@intel.com>
---
include/acpi/actypes.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index 72a6e2c..56bf492 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -344,7 +344,7 @@ typedef u32 acpi_integer;
/* 64-bit integers */
-typedef u64 acpi_integer;
+typedef unsigned long long acpi_integer;
#define ACPI_INTEGER_MAX ACPI_UINT64_MAX
#define ACPI_INTEGER_BIT_SIZE 64
#define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */
--
1.5.0.3.382.g34572
next prev parent reply other threads:[~2007-03-20 15:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-20 15:27 ACPI patches for release onto Linux-2.6.21-rc4 Len Brown
2007-03-20 15:27 ` [PATCH 1/9] ACPI: Add support to parse 2nd MADT Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 2/9] ACPI: resolve HP nx6125 S3 immediate wakeup regression Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 3/9] sony-laptop: MAINTAINERS fix entry, add L: and W: Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 4/9] ACPICA: revert "acpi_serialize" changes Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 5/9] ACPI: parse 2nd MADT by default Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 6/9] ACPI: ibm-acpi: allow module to load when acpi notifiers can't be set (v2) Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 7/9] ACPI: Only use IPI on known broken machines (AMD, Dothan/BaniasPentium M) Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` [PATCH 8/9] ACPI: IA64: fix allnoconfig build Len Brown
2007-03-20 15:27 ` Len Brown
2007-03-20 15:27 ` Len Brown [this message]
2007-03-20 15:27 ` [PATCH 9/9] ACPI: IA64: fix %ll build warnings Len Brown
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=11744044391690-git-send-email-len.brown@intel.com \
--to=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.