From: kbuild test robot <lkp@intel.com>
To: Jernej Skrabec <jernej.skrabec@siol.net>
Cc: kbuild-all@01.org, maxime.ripard@bootlin.com, wens@csie.org,
robh+dt@kernel.org, airlied@linux.ie, mark.rutland@arm.com,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com
Subject: Re: [PATCH v2 04/18] drm/sun4i: tcon-top: Cleanup clock handling
Date: Wed, 11 Jul 2018 07:20:07 +0800 [thread overview]
Message-ID: <201807110632.6k3QA7Vs%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180710203511.18454-5-jernej.skrabec@siol.net>
[-- Attachment #1: Type: text/plain, Size: 4047 bytes --]
Hi Jernej,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20180710]
[cannot apply to sunxi/sunxi/for-next drm/drm-next robh/for-next v4.18-rc4 v4.18-rc3 v4.18-rc2 v4.18-rc4]
[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/Jernej-Skrabec/Allwinner-R40-HDMI-refactoring/20180711-043932
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
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
GCC_VERSION=7.2.0 make.cross ARCH=arm64
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:10:0,
from include/linux/list.h:9,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu//drm/sun4i/sun8i_tcon_top.c:4:
drivers/gpu//drm/sun4i/sun8i_tcon_top.c: In function 'sun8i_tcon_top_register_gate':
include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
^
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
>> drivers/gpu//drm/sun4i/sun8i_tcon_top.c:56:6: note: in expansion of macro 'IS_ERR_VALUE'
if (IS_ERR_VALUE(index))
^~~~~~~~~~~~
vim +/IS_ERR_VALUE +56 drivers/gpu//drm/sun4i/sun8i_tcon_top.c
3
> 4 #include <drm/drmP.h>
5
6 #include <dt-bindings/clock/sun8i-tcon-top.h>
7
8 #include <linux/bitfield.h>
9 #include <linux/component.h>
10 #include <linux/device.h>
11 #include <linux/module.h>
12 #include <linux/of_graph.h>
13 #include <linux/platform_device.h>
14
15 #include "sun8i_tcon_top.h"
16
17 static int sun8i_tcon_top_get_connected_ep_id(struct device_node *node,
18 int port_id)
19 {
20 struct device_node *ep, *remote, *port;
21 struct of_endpoint endpoint;
22
23 port = of_graph_get_port_by_id(node, port_id);
24 if (!port)
25 return -ENOENT;
26
27 for_each_available_child_of_node(port, ep) {
28 remote = of_graph_get_remote_port_parent(ep);
29 if (!remote)
30 continue;
31
32 if (of_device_is_available(remote)) {
33 of_graph_parse_endpoint(ep, &endpoint);
34
35 of_node_put(remote);
36
37 return endpoint.id;
38 }
39
40 of_node_put(remote);
41 }
42
43 return -ENOENT;
44 }
45
46 static struct clk_hw *sun8i_tcon_top_register_gate(struct device *dev,
47 const char *parent,
48 void __iomem *regs,
49 spinlock_t *lock,
50 u8 bit, int name_index)
51 {
52 const char *clk_name, *parent_name;
53 int ret, index;
54
55 index = of_property_match_string(dev->of_node, "clock-names", parent);
> 56 if (IS_ERR_VALUE(index))
57 return ERR_PTR(index);
58
59 parent_name = of_clk_get_parent_name(dev->of_node, index);
60
61 ret = of_property_read_string_index(dev->of_node,
62 "clock-output-names", name_index,
63 &clk_name);
64 if (ret)
65 return ERR_PTR(ret);
66
67 return clk_hw_register_gate(dev, clk_name, parent_name,
68 CLK_SET_RATE_PARENT,
69 regs + TCON_TOP_GATE_SRC_REG,
70 bit, 0, lock);
71 };
72
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60979 bytes --]
next prev parent reply other threads:[~2018-07-10 23:21 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-10 20:34 [PATCH v2 00/18] Allwinner R40 HDMI refactoring Jernej Skrabec
2018-07-10 20:34 ` [PATCH v2 01/18] dt-bindings: display: sun4i-drm: Add R40 display engine compatible Jernej Skrabec
2018-07-10 20:34 ` [PATCH v2 02/18] drm/sun4i: " Jernej Skrabec
2018-07-10 20:34 ` [PATCH v2 03/18] ARM: dts: sun8i: r40: Remove fallback " Jernej Skrabec
2018-07-10 20:34 ` [PATCH v2 04/18] drm/sun4i: tcon-top: Cleanup clock handling Jernej Skrabec
2018-07-10 23:20 ` kbuild test robot [this message]
2018-07-11 2:54 ` Chen-Yu Tsai
2018-07-10 20:34 ` [PATCH v2 05/18] drm/sun4i: tcon: Release node when traversing of graph Jernej Skrabec
2018-07-10 20:34 ` [PATCH v2 06/18] dt-bindings: display: sun4i-drm: Add R40 TV TCON description Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 07/18] drm/sun4i: DW HDMI: Release nodes if error happens during CRTC search Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 08/18] ARM: dts: sun8i: r40: Add mixer ids to TCON TOP Jernej Skrabec
2018-07-11 2:55 ` Chen-Yu Tsai
2018-07-10 20:35 ` [PATCH v2 09/18] drm/sun4i: mixer: Order includes alphabetically Jernej Skrabec
2018-07-11 2:56 ` Chen-Yu Tsai
2018-07-10 20:35 ` [PATCH v2 10/18] drm/sun4i: mixer: Read id from DT Jernej Skrabec
2018-07-11 3:11 ` Chen-Yu Tsai
2018-07-11 7:10 ` Jernej Škrabec
2018-07-11 7:11 ` Chen-Yu Tsai
2018-07-10 20:35 ` [PATCH v2 11/18] drm/sun4i: tcon-top: Add helpers for mux switching Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 12/18] drm/sun4i: tcon: Add another way for matching mixers with tcon Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 13/18] drm/sun4i: tcon: Add support for R40 TCON Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 14/18] ARM: dts: sun8i: r40: Remove fallback compatible for TCON TV Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 15/18] ARM: dts: sun8i: r40: Add missing TCON-TOP - TCON connections Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 16/18] ARM: dts: sun8i: r40: Disable TCONs by default Jernej Skrabec
2018-07-10 20:35 ` [PATCH v2 17/18] drm/sun4i: tcon-top: Remove mux configuration at probe time Jernej Skrabec
2018-07-11 3:15 ` Chen-Yu Tsai
2018-07-10 20:35 ` [PATCH v2 18/18] dt-bindings: display: sun4i-drm: Fix order of DW HDMI PHY compatibles Jernej Skrabec
2018-07-11 8:30 ` [PATCH v2 00/18] Allwinner R40 HDMI refactoring Maxime Ripard
2018-07-11 8:37 ` Chen-Yu Tsai
2018-07-11 8:41 ` Jernej Škrabec
2018-07-11 9:30 ` Maxime Ripard
2018-07-11 9:34 ` [linux-sunxi] " Jernej Škrabec
2018-07-11 13:36 ` Maxime Ripard
2018-07-22 14:43 ` Jernej Škrabec
2018-07-24 12:37 ` Maxime Ripard
2018-07-24 16:04 ` Icenowy Zheng
2018-07-24 17:20 ` [linux-sunxi] " Jernej Škrabec
2018-07-24 17:23 ` Icenowy Zheng
2018-08-14 5:43 ` Icenowy Zheng
2018-08-14 5:47 ` [linux-sunxi] " Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201807110632.6k3QA7Vs%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=airlied@linux.ie \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@siol.net \
--cc=kbuild-all@01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=robh+dt@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®