From: kernel test robot <lkp@intel.com>
To: Yuesong Li <liyuesong@vivo.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC] reset: Provide new devm_reset helpers for get and deassert reset control
Date: Mon, 2 Sep 2024 17:22:45 +0800 [thread overview]
Message-ID: <202409021638.nWWDOU2d-lkp@intel.com> (raw)
In-Reply-To: <20240830033351.233263-1-liyuesong@vivo.com>
Hi Yuesong,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on pza/reset/next]
[also build test ERROR on pza/imx-drm/next linus/master v6.11-rc6 next-20240830]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Yuesong-Li/reset-Provide-new-devm_reset-helpers-for-get-and-deassert-reset-control/20240830-113607
base: https://git.pengutronix.de/git/pza/linux reset/next
patch link: https://lore.kernel.org/r/20240830033351.233263-1-liyuesong%40vivo.com
patch subject: [PATCH RFC] reset: Provide new devm_reset helpers for get and deassert reset control
config: i386-buildonly-randconfig-005-20240902 (https://download.01.org/0day-ci/archive/20240902/202409021638.nWWDOU2d-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240902/202409021638.nWWDOU2d-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/202409021638.nWWDOU2d-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/renesas/rcar-du/rzg2l_mipi_dsi.c:16:
>> include/linux/reset.h:817:30: error: 'devm_reset_control_get_deassert' defined but not used [-Werror=unused-function]
817 | static struct reset_control *devm_reset_control_get_deassert(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from sound/soc/codecs/sti-sas.c:11:
include/linux/reset.h: In function 'devm_reset_control_get_deassert':
>> include/linux/reset.h:831:15: error: implicit declaration of function 'devm_add_action_or_reset' [-Werror=implicit-function-declaration]
831 | ret = devm_add_action_or_reset(dev, (void *)reset_control_assert, (void *)reset);
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/reset.h: At top level:
include/linux/reset.h:817:30: warning: 'devm_reset_control_get_deassert' defined but not used [-Wunused-function]
817 | static struct reset_control *devm_reset_control_get_deassert(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/devm_reset_control_get_deassert +817 include/linux/reset.h
808
809 /**
810 * devm_reset_control_get_deassert - resource managed
811 * @dev: device to be reset by the controller
812 * @index: index of the reset controller
813 *
814 * A helper function to automatically handle return value of
815 * devm_reset_control_get_exclusive() and reset_control_deassert().
816 */
> 817 static struct reset_control *devm_reset_control_get_deassert(
818 struct device *dev, const char *id)
819 {
820 int ret;
821 struct reset_control *reset;
822
823 reset = devm_reset_control_get_exclusive(dev, id);
824 if (IS_ERR(reset))
825 return reset;
826
827 ret = reset_control_deassert(reset);
828 if (ret)
829 return ERR_PTR(ret);
830
> 831 ret = devm_add_action_or_reset(dev, (void *)reset_control_assert, (void *)reset);
832 if (ret)
833 return ERR_PTR(ret);
834
835 return reset;
836 }
837
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-09-02 9:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-30 3:33 [PATCH RFC] reset: Provide new devm_reset helpers for get and deassert reset control Yuesong Li
2024-09-02 8:00 ` kernel test robot
2024-09-02 8:20 ` kernel test robot
2024-09-02 9:22 ` kernel test robot [this message]
2024-09-02 9:52 ` Yuesong Li
2024-09-02 10:44 ` Philipp Zabel
2024-09-03 3:17 ` Yuesong Li
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=202409021638.nWWDOU2d-lkp@intel.com \
--to=lkp@intel.com \
--cc=liyuesong@vivo.com \
--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 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.