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

login
register
mail settings
Submitter Colin King
Date March 2, 2012, 9:30 a.m.
Message ID <1330680658-12937-3-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/144166/
State Accepted
Headers show

Comments

Colin King - March 2, 2012, 9:30 a.m.
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(-)
Keng-Yu Lin - March 5, 2012, 8 a.m.
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.
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>

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;