Skip to content

Commit

Permalink
powerpc: Fallout from sysdev API changes
Browse files Browse the repository at this point in the history
A struct sysdev_attribute * parameter was added to the show routine by
commit 4a0b2b4 "sysdev: Pass the
attribute to the low level sysdev show/store function".

This eliminates a warning:

arch/powerpc/kernel/sysfs.c:538: warning: initialization from incompatible pointer type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
sfrothwell authored and ozbenh committed Jul 25, 2008
1 parent 9115d13 commit 00bf6e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ static void register_nodes(void)
#endif

/* Only valid if CPU is present. */
static ssize_t show_physical_id(struct sys_device *dev, char *buf)
static ssize_t show_physical_id(struct sys_device *dev,
struct sysdev_attribute *attr, char *buf)
{
struct cpu *cpu = container_of(dev, struct cpu, sysdev);

Expand Down

0 comments on commit 00bf6e9

Please sign in to comment.