diff mbox

[2/2] acpi: dmar: make seg a uint16_t rather than an int

Message ID 1330680658-12937-3-git-send-email-colin.king@canonical.com
State Accepted
Headers show

Commit Message

Colin Ian King March 2, 2012, 9:30 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpi/dmar/dmar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Keng-Yu Lin March 5, 2012, 8 a.m. UTC | #1
On Fri, Mar 2, 2012 at 5:30 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/acpi/dmar/dmar.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/acpi/dmar/dmar.c b/src/acpi/dmar/dmar.c
> index baab3df..7fa1a60 100644
> --- a/src/acpi/dmar/dmar.c
> +++ b/src/acpi/dmar/dmar.c
> @@ -128,7 +128,7 @@ static int read_pci_device_secondary_bus_number(const uint8_t seg,
>  }
>
>  static int acpi_parse_one_dev_scope(fwts_framework *fw,
> -       struct acpi_dev_scope *scope, const int seg)
> +       struct acpi_dev_scope *scope, const uint16_t seg)
>  {
>        struct acpi_pci_path *path;
>        int count;
> @@ -187,7 +187,7 @@ error:
>  }
>
>  static int acpi_parse_dev_scope(fwts_framework *fw,
> -       void *start, void *end, const int seg)
> +       void *start, void *end, const uint16_t seg)
>  {
>        struct acpi_dev_scope *scope;
>        int ret;
> --
> 1.7.9
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>
Alex Hung March 7, 2012, 1:19 p.m. UTC | #2
On 12-03-02 05:30 PM, Colin King wrote:
> From: Colin Ian King<colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King<colin.king@canonical.com>
> ---
>   src/acpi/dmar/dmar.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/acpi/dmar/dmar.c b/src/acpi/dmar/dmar.c
> index baab3df..7fa1a60 100644
> --- a/src/acpi/dmar/dmar.c
> +++ b/src/acpi/dmar/dmar.c
> @@ -128,7 +128,7 @@ static int read_pci_device_secondary_bus_number(const uint8_t seg,
>   }
>
>   static int acpi_parse_one_dev_scope(fwts_framework *fw,
> -	struct acpi_dev_scope *scope, const int seg)
> +	struct acpi_dev_scope *scope, const uint16_t seg)
>   {
>   	struct acpi_pci_path *path;
>   	int count;
> @@ -187,7 +187,7 @@ error:
>   }
>
>   static int acpi_parse_dev_scope(fwts_framework *fw,
> -	void *start, void *end, const int seg)
> +	void *start, void *end, const uint16_t seg)
>   {
>   	struct acpi_dev_scope *scope;
>   	int ret;
Acked-by: Alex Hung <alex.hung@canonical.com>
diff mbox

Patch

diff --git a/src/acpi/dmar/dmar.c b/src/acpi/dmar/dmar.c
index baab3df..7fa1a60 100644
--- a/src/acpi/dmar/dmar.c
+++ b/src/acpi/dmar/dmar.c
@@ -128,7 +128,7 @@  static int read_pci_device_secondary_bus_number(const uint8_t seg,
 }
 
 static int acpi_parse_one_dev_scope(fwts_framework *fw,
-	struct acpi_dev_scope *scope, const int seg)
+	struct acpi_dev_scope *scope, const uint16_t seg)
 {
 	struct acpi_pci_path *path;
 	int count;
@@ -187,7 +187,7 @@  error:
 }
 
 static int acpi_parse_dev_scope(fwts_framework *fw,
-	void *start, void *end, const int seg)
+	void *start, void *end, const uint16_t seg)
 {
 	struct acpi_dev_scope *scope;
 	int ret;