From: kernel test robot <lkp@intel.com>
To: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
Pavel Machek <pavel@denx.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [cip:linux-5.10.y-cip 8/10] drivers/soc/renesas/pwc-rzv2m.c:111:11: error: no member named 'of_node' in 'struct gpio_chip'
Date: Mon, 10 Jun 2024 10:19:35 +0800 [thread overview]
Message-ID: <202406101042.GHzToyPP-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git linux-5.10.y-cip
head: 9b6b51fe8dad7c7e6e091bd99901171e42b1b80c
commit: 173ce1029d0279450c67d72286625014fa30c3e1 [8/10] soc: renesas: Add PWC support for RZ/V2M
config: hexagon-randconfig-002-20240610 (https://download.01.org/0day-ci/archive/20240610/202406101042.GHzToyPP-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240610/202406101042.GHzToyPP-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406101042.GHzToyPP-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/soc/renesas/pwc-rzv2m.c:8:
In file included from include/linux/kallsyms.h:12:
In file included from include/linux/mm.h:1527:
include/linux/vmstat.h:431:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
431 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> drivers/soc/renesas/pwc-rzv2m.c:111:11: error: no member named 'of_node' in 'struct gpio_chip'
111 | priv->gp.of_node = pdev->dev.of_node;
| ~~~~~~~~ ^
1 warning and 1 error generated.
vim +111 drivers/soc/renesas/pwc-rzv2m.c
86
87 static int rzv2m_pwc_probe(struct platform_device *pdev)
88 {
89 struct rzv2m_pwc_priv *priv;
90 int ret;
91
92 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
93 if (!priv)
94 return -ENOMEM;
95
96 priv->base = devm_platform_ioremap_resource(pdev, 0);
97 if (IS_ERR(priv->base))
98 return PTR_ERR(priv->base);
99
100 /*
101 * The register used by this driver cannot be read, therefore set the
102 * outputs to their default values and initialize priv->ch_en_bits
103 * accordingly. BIT 16 enables write to BIT 0, BIT 17 enables write to
104 * BIT 1, and the default value of both BIT 0 and BIT 1 is 0.
105 */
106 writel(BIT(17) | BIT(16), priv->base + PWC_GPIO);
107 bitmap_zero(priv->ch_en_bits, 2);
108
109 priv->gp = rzv2m_pwc_gc;
110 priv->gp.parent = pdev->dev.parent;
> 111 priv->gp.of_node = pdev->dev.of_node;
112
113 ret = devm_gpiochip_add_data(&pdev->dev, &priv->gp, priv);
114 if (ret)
115 return ret;
116
117 if (device_property_read_bool(&pdev->dev, "renesas,rzv2m-pwc-power")) {
118 if (pm_power_off) {
119 char symname[KSYM_NAME_LEN];
120
121 lookup_symbol_name((ulong)pm_power_off, symname);
122 dev_err(&pdev->dev, "pm_power_off already claimed %p %s",
123 pm_power_off, symname);
124 return -EBUSY;
125
126 }
127 priv_pwc = priv;
128 pm_power_off = rzv2m_pwc_poweroff;
129 }
130
131 return ret;
132 }
133
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-06-10 2:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202406101042.GHzToyPP-lkp@intel.com \
--to=lkp@intel.com \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pavel@denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.