All of lore.kernel.org
 help / color / mirror / Atom feed
To: devel@acpica.org
Subject: [Devel] Why are empty packages invalid for predefined ACPI objects?
Date: Sat, 06 Nov 2010 16:23:30 +0100	[thread overview]
Message-ID: <4CD572F2.8010805@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

Hi,

The package validation function AcpiNsCheckPackage() in file nspredef.c
requires that packages be non-empty:

     /* The package must have at least one element, else invalid */

     if (!Count)
     {
         ACPI_WARN_PREDEFINED ((AE_INFO, Data->Pathname, Data->NodeFlags,
             "Return Package has no elements (empty)"));

         return (AE_AML_OPERAND_VALUE);
     }

I don't see, from the ACPI specification, why packages for predefined
ACPI objects must be non-empty.

Where does this requirement come from?

Best regards,

Grégoire Sutre

             reply	other threads:[~2010-11-06 15:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-06 15:23  [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-11-08  4:12 [Devel] Why are empty packages invalid for predefined ACPI objects? Moore, Robert
2010-11-08  4:23 Moore, Robert
2010-11-08  9:54 
2010-11-08 21:10 Moore, Robert

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=4CD572F2.8010805@gmail.com \
    --to=devel@acpica.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.