From: kernel test robot <lkp@intel.com> To: Bartosz Golaszewski <brgl@bgdev.pl> Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org Subject: Re: [PATCH v10 2/5] gpio: sim: new testing module Date: Thu, 25 Nov 2021 04:29:45 +0800 [thread overview] Message-ID: <202111250402.c73il0rL-lkp@intel.com> (raw) In-Reply-To: <20211124114257.19878-3-brgl@bgdev.pl> Hi Bartosz, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.16-rc2] [cannot apply to shuah-kselftest/next linusw-gpio/for-next next-20211124] [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] url: https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/gpio-sim-configfs-based-GPIO-simulator/20211124-194521 base: 136057256686de39cc3a07c2e39ef6bc43003ff6 config: i386-buildonly-randconfig-r001-20211124 (https://download.01.org/0day-ci/archive/20211125/202111250402.c73il0rL-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 67a1c45def8a75061203461ab0060c75c864df1c) 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 # https://github.com/0day-ci/linux/commit/6e279d2416d71b602a9d97147e762c9ed38d484a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Bartosz-Golaszewski/gpio-sim-configfs-based-GPIO-simulator/20211124-194521 git checkout 6e279d2416d71b602a9d97147e762c9ed38d484a # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 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/gpio/gpio-sim.c:1085:2: warning: variable 'repr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ drivers/gpio/gpio-sim.c:1090:31: note: uninitialized use occurs here return sprintf(page, "%s\n", repr); ^~~~ drivers/gpio/gpio-sim.c:1068:12: note: initialize the variable 'repr' to silence this warning char *repr; ^ = NULL 1 warning generated. vim +/repr +1085 drivers/gpio/gpio-sim.c 1063 1064 static ssize_t gpio_sim_config_hog_direction_show(struct config_item *item, 1065 char *page) 1066 { 1067 struct gpio_sim_line_ctx *ctx = gpio_sim_hog_item_to_line_ctx(item); 1068 char *repr; 1069 int dir; 1070 1071 mutex_lock(&ctx->parent->lock); 1072 dir = ctx->hog_dir; 1073 mutex_unlock(&ctx->parent->lock); 1074 1075 switch (dir) { 1076 case GPIOD_IN: 1077 repr = "input"; 1078 break; 1079 case GPIOD_OUT_HIGH: 1080 repr = "output-high"; 1081 break; 1082 case GPIOD_OUT_LOW: 1083 repr = "output-low"; 1084 break; > 1085 default: 1086 WARN(1, "Unexpected hog direction value: %d", dir); 1087 break; 1088 } 1089 1090 return sprintf(page, "%s\n", repr); 1091 } 1092 --- 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: Re: [PATCH v10 2/5] gpio: sim: new testing module Date: Thu, 25 Nov 2021 04:29:45 +0800 [thread overview] Message-ID: <202111250402.c73il0rL-lkp@intel.com> (raw) In-Reply-To: <20211124114257.19878-3-brgl@bgdev.pl> [-- Attachment #1: Type: text/plain, Size: 3143 bytes --] Hi Bartosz, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.16-rc2] [cannot apply to shuah-kselftest/next linusw-gpio/for-next next-20211124] [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] url: https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/gpio-sim-configfs-based-GPIO-simulator/20211124-194521 base: 136057256686de39cc3a07c2e39ef6bc43003ff6 config: i386-buildonly-randconfig-r001-20211124 (https://download.01.org/0day-ci/archive/20211125/202111250402.c73il0rL-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 67a1c45def8a75061203461ab0060c75c864df1c) 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 # https://github.com/0day-ci/linux/commit/6e279d2416d71b602a9d97147e762c9ed38d484a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Bartosz-Golaszewski/gpio-sim-configfs-based-GPIO-simulator/20211124-194521 git checkout 6e279d2416d71b602a9d97147e762c9ed38d484a # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 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/gpio/gpio-sim.c:1085:2: warning: variable 'repr' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~~~~~ drivers/gpio/gpio-sim.c:1090:31: note: uninitialized use occurs here return sprintf(page, "%s\n", repr); ^~~~ drivers/gpio/gpio-sim.c:1068:12: note: initialize the variable 'repr' to silence this warning char *repr; ^ = NULL 1 warning generated. vim +/repr +1085 drivers/gpio/gpio-sim.c 1063 1064 static ssize_t gpio_sim_config_hog_direction_show(struct config_item *item, 1065 char *page) 1066 { 1067 struct gpio_sim_line_ctx *ctx = gpio_sim_hog_item_to_line_ctx(item); 1068 char *repr; 1069 int dir; 1070 1071 mutex_lock(&ctx->parent->lock); 1072 dir = ctx->hog_dir; 1073 mutex_unlock(&ctx->parent->lock); 1074 1075 switch (dir) { 1076 case GPIOD_IN: 1077 repr = "input"; 1078 break; 1079 case GPIOD_OUT_HIGH: 1080 repr = "output-high"; 1081 break; 1082 case GPIOD_OUT_LOW: 1083 repr = "output-low"; 1084 break; > 1085 default: 1086 WARN(1, "Unexpected hog direction value: %d", dir); 1087 break; 1088 } 1089 1090 return sprintf(page, "%s\n", repr); 1091 } 1092 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2021-11-24 20:30 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-24 11:42 [PATCH v10 0/5] gpio-sim: configfs-based GPIO simulator Bartosz Golaszewski 2021-11-24 11:42 ` [PATCH v10 1/5] gpiolib: provide gpiod_remove_hogs() Bartosz Golaszewski 2021-11-24 11:42 ` [PATCH v10 2/5] gpio: sim: new testing module Bartosz Golaszewski 2021-11-24 20:29 ` kernel test robot [this message] 2021-11-24 20:29 ` kernel test robot 2021-11-25 13:14 ` Bartosz Golaszewski 2021-11-26 2:23 ` Kent Gibson 2021-11-26 10:26 ` Bartosz Golaszewski 2021-11-26 18:54 ` [RFC PATCH] gpio: sim: gpio_sim_config_hog_item_ops can be static kernel test robot 2021-11-26 19:02 ` [PATCH v10 2/5] gpio: sim: new testing module kernel test robot 2021-11-24 11:42 ` [PATCH v10 3/5] selftests: gpio: provide a helper for reading chip info Bartosz Golaszewski 2021-11-24 11:42 ` [PATCH v10 4/5] selftests: gpio: add a helper for reading GPIO line names Bartosz Golaszewski 2021-11-24 11:42 ` [PATCH v10 5/5] selftests: gpio: add test cases for gpio-sim Bartosz Golaszewski
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=202111250402.c73il0rL-lkp@intel.com \ --to=lkp@intel.com \ --cc=brgl@bgdev.pl \ --cc=kbuild-all@lists.01.org \ --cc=llvm@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: linkBe 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.