All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Neil Armstrong <narmstrong@baylibre.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Jagan Teki <jagan@amarulasolutions.com>
Subject: [superna9999:amlogic/v5.18/g12-dsi-wip 13/14] drivers/gpu/drm/meson/meson_encoder_dsi.c:122:69: warning: variable 'ret' is uninitialized when used here
Date: Sat, 22 Jan 2022 02:50:45 +0800	[thread overview]
Message-ID: <202201220231.SSLn9QGA-lkp@intel.com> (raw)

tree:   https://github.com/superna9999/linux amlogic/v5.18/g12-dsi-wip
head:   fbcc0a7f53880919dc415da44339313dd59768f0
commit: 69065af6f6c3f3c1a6a29ab765c02e8371be3a42 [13/14] drm/meson: add DSI encoder
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220122/202201220231.SSLn9QGA-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/superna9999/linux/commit/69065af6f6c3f3c1a6a29ab765c02e8371be3a42
        git remote add superna9999 https://github.com/superna9999/linux
        git fetch --no-tags superna9999 amlogic/v5.18/g12-dsi-wip
        git checkout 69065af6f6c3f3c1a6a29ab765c02e8371be3a42
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/meson/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/meson/meson_encoder_dsi.c:122:69: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
                   dev_dbg(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);
                                                                                     ^~~
   include/linux/dev_printk.h:155:39: note: expanded from macro 'dev_dbg'
           dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                ^~~~~~~~~~~
   include/linux/dynamic_debug.h:167:19: note: expanded from macro 'dynamic_dev_dbg'
                              dev, fmt, ##__VA_ARGS__)
                                          ^~~~~~~~~~~
   include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call'
           __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
                                                                 ^~~~~~~~~~~
   include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call'
                   func(&id, ##__VA_ARGS__);               \
                               ^~~~~~~~~~~
   drivers/gpu/drm/meson/meson_encoder_dsi.c:107:9: note: initialize the variable 'ret' to silence this warning
           int ret;
                  ^
                   = 0
   1 warning generated.


vim +/ret +122 drivers/gpu/drm/meson/meson_encoder_dsi.c

   102	
   103	int meson_encoder_dsi_init(struct meson_drm *priv)
   104	{
   105		struct meson_encoder_dsi *meson_encoder_dsi;
   106		struct device_node *remote;
   107		int ret;
   108	
   109		meson_encoder_dsi = devm_kzalloc(priv->dev, sizeof(*meson_encoder_dsi), GFP_KERNEL);
   110		if (!meson_encoder_dsi)
   111			return -ENOMEM;
   112	
   113		/* DSI Transceiver Bridge */
   114		remote = of_graph_get_remote_node(priv->dev->of_node, 2, 0);
   115		if (!remote) {
   116			dev_err(priv->dev, "DSI transceiver device is disabled");
   117			return 0;
   118		}
   119	
   120		meson_encoder_dsi->next_bridge = of_drm_find_bridge(remote);
   121		if (!meson_encoder_dsi->next_bridge) {
 > 122			dev_dbg(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [superna9999:amlogic/v5.18/g12-dsi-wip 13/14] drivers/gpu/drm/meson/meson_encoder_dsi.c:122:69: warning: variable 'ret' is uninitialized when used here
Date: Sat, 22 Jan 2022 02:50:45 +0800	[thread overview]
Message-ID: <202201220231.SSLn9QGA-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3734 bytes --]

tree:   https://github.com/superna9999/linux amlogic/v5.18/g12-dsi-wip
head:   fbcc0a7f53880919dc415da44339313dd59768f0
commit: 69065af6f6c3f3c1a6a29ab765c02e8371be3a42 [13/14] drm/meson: add DSI encoder
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220122/202201220231.SSLn9QGA-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/superna9999/linux/commit/69065af6f6c3f3c1a6a29ab765c02e8371be3a42
        git remote add superna9999 https://github.com/superna9999/linux
        git fetch --no-tags superna9999 amlogic/v5.18/g12-dsi-wip
        git checkout 69065af6f6c3f3c1a6a29ab765c02e8371be3a42
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/meson/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/meson/meson_encoder_dsi.c:122:69: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
                   dev_dbg(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);
                                                                                     ^~~
   include/linux/dev_printk.h:155:39: note: expanded from macro 'dev_dbg'
           dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                ^~~~~~~~~~~
   include/linux/dynamic_debug.h:167:19: note: expanded from macro 'dynamic_dev_dbg'
                              dev, fmt, ##__VA_ARGS__)
                                          ^~~~~~~~~~~
   include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call'
           __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
                                                                 ^~~~~~~~~~~
   include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call'
                   func(&id, ##__VA_ARGS__);               \
                               ^~~~~~~~~~~
   drivers/gpu/drm/meson/meson_encoder_dsi.c:107:9: note: initialize the variable 'ret' to silence this warning
           int ret;
                  ^
                   = 0
   1 warning generated.


vim +/ret +122 drivers/gpu/drm/meson/meson_encoder_dsi.c

   102	
   103	int meson_encoder_dsi_init(struct meson_drm *priv)
   104	{
   105		struct meson_encoder_dsi *meson_encoder_dsi;
   106		struct device_node *remote;
   107		int ret;
   108	
   109		meson_encoder_dsi = devm_kzalloc(priv->dev, sizeof(*meson_encoder_dsi), GFP_KERNEL);
   110		if (!meson_encoder_dsi)
   111			return -ENOMEM;
   112	
   113		/* DSI Transceiver Bridge */
   114		remote = of_graph_get_remote_node(priv->dev->of_node, 2, 0);
   115		if (!remote) {
   116			dev_err(priv->dev, "DSI transceiver device is disabled");
   117			return 0;
   118		}
   119	
   120		meson_encoder_dsi->next_bridge = of_drm_find_bridge(remote);
   121		if (!meson_encoder_dsi->next_bridge) {
 > 122			dev_dbg(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

             reply	other threads:[~2022-01-21 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21 18:50 kernel test robot [this message]
2022-01-21 18:50 ` [superna9999:amlogic/v5.18/g12-dsi-wip 13/14] drivers/gpu/drm/meson/meson_encoder_dsi.c:122:69: warning: variable 'ret' is uninitialized when used here kernel test robot

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=202201220231.SSLn9QGA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jagan@amarulasolutions.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=narmstrong@baylibre.com \
    /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.