Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00bf6e90 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Benjamin Herrenschmidt
Browse files

powerpc: Fallout from sysdev API changes



A struct sysdev_attribute * parameter was added to the show routine by
commit 4a0b2b4d "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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 9115d134
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -529,7 +529,8 @@ static void register_nodes(void)
#endif
#endif


/* Only valid if CPU is present. */
/* 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);
	struct cpu *cpu = container_of(dev, struct cpu, sysdev);