All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: John Keller <jpk@sgi.com>
Cc: linux-acpi@vger.kernel.org, ayoung@sgi.com,
	linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] -  acpi_unload_table_id() always returns error
Date: Thu, 15 Feb 2007 23:29:55 -0500	[thread overview]
Message-ID: <200702152329.55535.lenb@kernel.org> (raw)
In-Reply-To: <20070215200830.1822.98901.sendpatchset@attica.americas.sgi.com>

Thanks for the fix, John.
Do you grant Intel permission to apply it to the upstream ACPICA tree (with its non-GPL license)?

-Len

On Thursday 15 February 2007 15:08, John Keller wrote:
> acpi_unload_table_id() is always returning an error status.
> Also, once the matching table is found, don't bother looking
> for another match.
> 
> 
> Signed-off-by: John Keller <jpk@sgi.com>
> ---
> 
> 
> Index: release/drivers/acpi/tables/tbxface.c
> ===================================================================
> --- release.orig/drivers/acpi/tables/tbxface.c	2007-02-13 08:20:42.000000000 -0600
> +++ release/drivers/acpi/tables/tbxface.c	2007-02-15 14:04:07.855248010 -0600
> @@ -338,9 +338,9 @@ acpi_status acpi_unload_table_id(acpi_ow
>  	int i;
>  	acpi_status status = AE_NOT_EXIST;
>  
> -	ACPI_FUNCTION_TRACE(acpi_unload_table);
> +	ACPI_FUNCTION_TRACE(acpi_unload_table_id);
>  
> -	/* Find table from the requested type list */
> +	/* Find table in the global table list */
>  	for (i = 0; i < acpi_gbl_root_table_list.count; ++i) {
>  		if (id != acpi_gbl_root_table_list.tables[i].owner_id) {
>  			continue;
> @@ -352,8 +352,9 @@ acpi_status acpi_unload_table_id(acpi_ow
>  		* simply a position within the hierarchy
>  		*/
>  		acpi_tb_delete_namespace_by_owner(i);
> -		acpi_tb_release_owner_id(i);
> +		status = acpi_tb_release_owner_id(i);
>  		acpi_tb_set_table_loaded_flag(i, FALSE);
> +		break;
>  	}
>  	return_ACPI_STATUS(status);
>  }
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

WARNING: multiple messages have this Message-ID (diff)
From: Len Brown <lenb@kernel.org>
To: John Keller <jpk@sgi.com>
Cc: linux-acpi@vger.kernel.org, ayoung@sgi.com,
	linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] -  acpi_unload_table_id() always returns error
Date: Fri, 16 Feb 2007 04:29:55 +0000	[thread overview]
Message-ID: <200702152329.55535.lenb@kernel.org> (raw)
In-Reply-To: <20070215200830.1822.98901.sendpatchset@attica.americas.sgi.com>

Thanks for the fix, John.
Do you grant Intel permission to apply it to the upstream ACPICA tree (with its non-GPL license)?

-Len

On Thursday 15 February 2007 15:08, John Keller wrote:
> acpi_unload_table_id() is always returning an error status.
> Also, once the matching table is found, don't bother looking
> for another match.
> 
> 
> Signed-off-by: John Keller <jpk@sgi.com>
> ---
> 
> 
> Index: release/drivers/acpi/tables/tbxface.c
> =================================> --- release.orig/drivers/acpi/tables/tbxface.c	2007-02-13 08:20:42.000000000 -0600
> +++ release/drivers/acpi/tables/tbxface.c	2007-02-15 14:04:07.855248010 -0600
> @@ -338,9 +338,9 @@ acpi_status acpi_unload_table_id(acpi_ow
>  	int i;
>  	acpi_status status = AE_NOT_EXIST;
>  
> -	ACPI_FUNCTION_TRACE(acpi_unload_table);
> +	ACPI_FUNCTION_TRACE(acpi_unload_table_id);
>  
> -	/* Find table from the requested type list */
> +	/* Find table in the global table list */
>  	for (i = 0; i < acpi_gbl_root_table_list.count; ++i) {
>  		if (id != acpi_gbl_root_table_list.tables[i].owner_id) {
>  			continue;
> @@ -352,8 +352,9 @@ acpi_status acpi_unload_table_id(acpi_ow
>  		* simply a position within the hierarchy
>  		*/
>  		acpi_tb_delete_namespace_by_owner(i);
> -		acpi_tb_release_owner_id(i);
> +		status = acpi_tb_release_owner_id(i);
>  		acpi_tb_set_table_loaded_flag(i, FALSE);
> +		break;
>  	}
>  	return_ACPI_STATUS(status);
>  }
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2007-02-16  4:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-15 20:08 [PATCH 1/1] - acpi_unload_table_id() always returns error John Keller
2007-02-15 20:08 ` John Keller
2007-02-16  4:29 ` Len Brown [this message]
2007-02-16  4:29   ` Len Brown
2007-02-16 13:53   ` John Keller
2007-02-16 13:53     ` John Keller
2007-02-16 13:53     ` John Keller

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=200702152329.55535.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=ayoung@sgi.com \
    --cc=jpk@sgi.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@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.