All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2024-06-10  2:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-10  2:19 UTC (permalink / raw)
  To: Nobuhiro Iwamatsu, Pavel Machek; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-10  2:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10  2:19 [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' kernel test robot

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.