* help with fixing code for 2.6.29-rc7
@ 2009-03-12 11:50 Norbert Preining
2009-03-12 13:41 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Norbert Preining @ 2009-03-12 11:50 UTC (permalink / raw)
To: linux-acpi
Hi everyone,
I am trying to fix some code for 2.6.29-rc7:
... acpi_handle handle ...
struct acpi_namespace_node *node;
union acpi_operand_object *operand;
1 node = (struct acpi_namespace_node *)handle;
2 operand = (union acpi_operand_object *)node->object;
3 printk(KERN_WARNING DRV_PFX "method: name: %4.4s, args %X\n", node->name.ascii,
4 (u32) operand->method.param_count);
Compiling that I get errors
error: dereferencing pointer to incomplete type
in line 2,3,4.
Any suggestion how to fix that?
Thanks a lot
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at> Vienna University of Technology
Debian Developer <preining@debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
RUNCORN (n.)
A peeble (q.v.) which is larger that a belper (q.v.)
--- Douglas Adams, The Meaning of Liff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with fixing code for 2.6.29-rc7
2009-03-12 11:50 help with fixing code for 2.6.29-rc7 Norbert Preining
@ 2009-03-12 13:41 ` Rafael J. Wysocki
2009-03-12 23:43 ` Norbert Preining
0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2009-03-12 13:41 UTC (permalink / raw)
To: Norbert Preining; +Cc: linux-acpi
On Thursday 12 March 2009, Norbert Preining wrote:
> Hi everyone,
>
> I am trying to fix some code for 2.6.29-rc7:
>
> ... acpi_handle handle ...
>
> struct acpi_namespace_node *node;
> union acpi_operand_object *operand;
>
> 1 node = (struct acpi_namespace_node *)handle;
> 2 operand = (union acpi_operand_object *)node->object;
>
> 3 printk(KERN_WARNING DRV_PFX "method: name: %4.4s, args %X\n", node->name.ascii,
> 4 (u32) operand->method.param_count);
>
> Compiling that I get errors
> error: dereferencing pointer to incomplete type
> in line 2,3,4.
>
> Any suggestion how to fix that?
Seemingly, struct acpi_namespace_node is undefined.
Thanks,
Rafael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help with fixing code for 2.6.29-rc7
2009-03-12 13:41 ` Rafael J. Wysocki
@ 2009-03-12 23:43 ` Norbert Preining
0 siblings, 0 replies; 3+ messages in thread
From: Norbert Preining @ 2009-03-12 23:43 UTC (permalink / raw)
To: linux-acpi
On Do, 12 Mär 2009, Rafael J. Wysocki wrote:
> Seemingly, struct acpi_namespace_node is undefined.
Thanks, good point. The problem is that they are used in the sony-laptop
module for Sony-Z series laptops. I copied the relevant three acpica/*.h
files to the build directory and added includes, now it compiles and
works fine.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at> Vienna University of Technology
Debian Developer <preining@debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
OCKLE (n.)
An electrical switch which appears to be off in both positions.
--- Douglas Adams, The Meaning of Liff
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-12 23:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12 11:50 help with fixing code for 2.6.29-rc7 Norbert Preining
2009-03-12 13:41 ` Rafael J. Wysocki
2009-03-12 23:43 ` Norbert Preining
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.