llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Linus Walleij <linus.walleij@linaro.org>
Subject: [linux-next:master 4117/5129] drivers/pinctrl/pinctrl-keembay.c:1630:16: error: no member named 'name' in 'struct function_desc'
Date: Thu, 13 Jun 2024 11:36:33 +0800	[thread overview]
Message-ID: <202406131133.WwdetfBL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   03d44168cbd7fc57d5de56a3730427db758fc7f6
commit: 15d34374182a52bcd72c5f4ba7105aed1b0b4558 [4117/5129] pinctrl: pinmux: Remove unused members from struct function_desc
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240613/202406131133.WwdetfBL-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 4403cdbaf01379de96f8d0d6ea4f51a085e37766)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240613/202406131133.WwdetfBL-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/202406131133.WwdetfBL-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/pinctrl/pinctrl-keembay.c:1630:16: error: no member named 'name' in 'struct function_desc'
    1630 |                         if (!fdesc->name) {
         |                              ~~~~~  ^
   1 error generated.


vim +1630 drivers/pinctrl/pinctrl-keembay.c

ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1598  
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1599  static int keembay_build_functions(struct keembay_pinctrl *kpc)
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1600  {
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1601  	struct function_desc *keembay_funcs, *new_funcs;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1602  	int i;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1603  
5d0674999cc5ca Rafał Miłecki      2021-12-16  1604  	/*
5d0674999cc5ca Rafał Miłecki      2021-12-16  1605  	 * Allocate maximum possible number of functions. Assume every pin
5d0674999cc5ca Rafał Miłecki      2021-12-16  1606  	 * being part of 8 (hw maximum) globally unique muxes.
5d0674999cc5ca Rafał Miłecki      2021-12-16  1607  	 */
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1608  	kpc->nfuncs = 0;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1609  	keembay_funcs = kcalloc(kpc->npins * 8, sizeof(*keembay_funcs), GFP_KERNEL);
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1610  	if (!keembay_funcs)
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1611  		return -ENOMEM;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1612  
5d0674999cc5ca Rafał Miłecki      2021-12-16  1613  	/* Setup 1 function for each unique mux */
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1614  	for (i = 0; i < kpc->npins; i++) {
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1615  		const struct pinctrl_pin_desc *pdesc = keembay_pins + i;
5d0674999cc5ca Rafał Miłecki      2021-12-16  1616  		struct keembay_mux_desc *mux;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1617  
5d0674999cc5ca Rafał Miłecki      2021-12-16  1618  		for (mux = pdesc->drv_data; mux->name; mux++) {
5d0674999cc5ca Rafał Miłecki      2021-12-16  1619  			struct function_desc *fdesc;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1620  
5d0674999cc5ca Rafał Miłecki      2021-12-16  1621  			/* Check if we already have function for this mux */
73ee52205e5a06 Andy Shevchenko    2024-05-30  1622  			for (fdesc = keembay_funcs; fdesc->func.name; fdesc++) {
73ee52205e5a06 Andy Shevchenko    2024-05-30  1623  				if (!strcmp(mux->name, fdesc->func.name)) {
73ee52205e5a06 Andy Shevchenko    2024-05-30  1624  					fdesc->func.ngroups++;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1625  					break;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1626  				}
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1627  			}
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1628  
5d0674999cc5ca Rafał Miłecki      2021-12-16  1629  			/* Setup new function for this mux we didn't see before */
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06 @1630  			if (!fdesc->name) {
73ee52205e5a06 Andy Shevchenko    2024-05-30  1631  				fdesc->func.name = mux->name;
73ee52205e5a06 Andy Shevchenko    2024-05-30  1632  				fdesc->func.ngroups = 1;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1633  				fdesc->data = &mux->mode;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1634  				kpc->nfuncs++;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1635  			}
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1636  		}
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1637  	}
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1638  
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1639  	/* Reallocate memory based on actual number of functions */
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1640  	new_funcs = krealloc(keembay_funcs, kpc->nfuncs * sizeof(*new_funcs), GFP_KERNEL);
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1641  	if (!new_funcs) {
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1642  		kfree(keembay_funcs);
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1643  		return -ENOMEM;
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1644  	}
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1645  
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1646  	return keembay_add_functions(kpc, new_funcs);
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1647  }
ffd4e739358be0 Lakshmi Sowjanya D 2021-08-06  1648  

:::::: The code at line 1630 was first introduced by commit
:::::: ffd4e739358be036377563a0c6c33702c700e3ee pinctrl: Add Intel Keem Bay pinctrl driver

:::::: TO: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-06-13  3:37 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=202406131133.WwdetfBL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).