[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <09cdab76-ee1a-45da-699f-a66bf7148579@gmail.com>
Date: Wed, 18 Jan 2017 12:53:55 +0100
From: Frédéric Danis <frederic.danis.oss@...il.com>
To: Rob Herring <robh@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Marcel Holtmann <marcel@...tmann.org>,
Jiri Slaby <jslaby@...e.com>,
Sebastian Reichel <sre@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
"Dr . H . Nikolaus Schaller" <hns@...delico.com>,
Peter Hurley <peter@...leysoftware.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Alan Cox <gnomes@...rguk.ukuu.org.uk>
Cc: Loic Poulain <loic.poulain@...el.com>, Pavel Machek <pavel@....cz>,
NeilBrown <neil@...wn.name>,
Linus Walleij <linus.walleij@...aro.org>,
linux-bluetooth@...r.kernel.org, linux-serial@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 7/9] serdev: Introduce new bus for serial attached
devices
Hello,
Le 16/01/2017 à 23:54, Rob Herring a écrit :
> ---
> v2:
> - Add modalias sysfs attr and uevent hook
...
> +static int serdev_uevent(struct device *dev, struct kobj_uevent_env *env)
> +{
> + /* TODO: ACPI and platform modalias */
> + return of_device_uevent_modalias(dev, env);
> +}
...
> +static ssize_t modalias_show(struct device *dev,
> + struct device_attribute *attr, char *buf)
> +{
> + ssize_t len = of_device_get_modalias(dev, buf, PAGE_SIZE - 2);
> + buf[len] = '\n';
> + buf[len+1] = 0;
> + return len+1;
> +}
This prevents from building serdev as a module with following errors:
ERROR: "of_device_uevent_modalias" [drivers/tty/serdev/serdev.ko]
undefined!
ERROR: "of_device_get_modalias" [drivers/tty/serdev/serdev.ko] undefined!
Currently, those symbols are not exported in drivers/of/device.c
Frédéric Danis
Powered by blists - more mailing lists