[PATCH v6 1/2] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c
kbuild test robot
lkp at intel.com
Mon Oct 2 19:58:13 UTC 2017
Hi Meghana,
[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.14-rc3 next-20170929]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Meghana-Madhyastha/drm-tinydrm-drm_of_find_backlight-helper/20171003-011920
base: git://people.freedesktop.org/~airlied/linux.git drm-next
config: arm-sunxi_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/drm_of.c:283:26: error: redefinition of 'drm_of_find_backlight'
struct backlight_device *drm_of_find_backlight(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/drm_of.c:4:0:
include/linux/backlight.h:180:1: note: previous definition of 'drm_of_find_backlight' was here
drm_of_find_backlight(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~
vim +/drm_of_find_backlight +283 drivers/gpu/drm/drm_of.c
264
265 /**
266 * drm_of_find_backlight - Find backlight device in device-tree
267 * @dev: Device
268 *
269 * This function looks for a DT node pointed to by a property named 'backlight'
270 * and uses of_find_backlight_by_node() to get the backlight device.
271 * Additionally if the brightness property is zero, it is set to
272 * max_brightness.
273 *
274 * Note: It is the responsibility of the caller to call put_device() when
275 * releasing the resource.
276 *
277 * Returns:
278 * NULL if there's no backlight property.
279 * Error pointer -EPROBE_DEFER if the DT node is found, but no backlight device
280 * is found.
281 * If the backlight device is found, a pointer to the structure is returned.
282 */
> 283 struct backlight_device *drm_of_find_backlight(struct device *dev)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 23035 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171003/637028b0/attachment-0001.gz>
More information about the dri-devel
mailing list