mirror of https://gitee.com/openkylin/linux.git
powerpc: Fallout from sysdev API changes
A struct sysdev_attribute * parameter was added to the show routine by
commit 4a0b2b4dbe
"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>
This commit is contained in:
parent
9115d13453
commit
00bf6e9061
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue