All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] RFC : mikroBUS driver for add-on boards
Date: Sat, 25 Jul 2020 00:06:05 +0800	[thread overview]
Message-ID: <202007250055.L6Vf7IS8%lkp@intel.com> (raw)
In-Reply-To: <20200724120637.GA427284@vaishnav-VirtualBox>

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

Hi Vaishnav,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linux/master soc/for-next linus/master v5.8-rc6 next-20200724]
[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/Vaishnav-M-A/RFC-mikroBUS-driver-for-add-on-boards/20200724-201058
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 92ca3dd4867bafbfd026b06d53737d61ded1bd27
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

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/misc/mikrobus/mikrobus_manifest.c: In function 'mikrobus_manifest_parse':
>> drivers/misc/mikrobus/mikrobus_manifest.c:344:6: warning: variable 'dev_count' set but not used [-Wunused-but-set-variable]
     344 |  int dev_count;
         |      ^~~~~~~~~

vim +/dev_count +344 drivers/misc/mikrobus/mikrobus_manifest.c

   336	
   337	bool mikrobus_manifest_parse(struct addon_board_info *info, void *data,
   338								 size_t size)
   339	{
   340		struct greybus_manifest *manifest;
   341		struct greybus_manifest_header *header;
   342		struct greybus_descriptor *desc;
   343		u16 manifest_size;
 > 344		int dev_count;
   345		int desc_size;
   346	
   347		if (WARN_ON(!list_empty(&info->manifest_descs)))
   348			return false;
   349		if (size < sizeof(*header))
   350			return false;
   351		manifest = data;
   352		header = &manifest->header;
   353		manifest_size = le16_to_cpu(header->size);
   354		if (manifest_size != size)
   355			return false;
   356		if (header->version_major > MIKROBUS_VERSION_MAJOR)
   357			return false;
   358		desc = manifest->descriptors;
   359		size -= sizeof(*header);
   360		while (size) {
   361			desc_size = identify_descriptor(info, desc, size);
   362			if (desc_size < 0) {
   363				pr_err("invalid manifest descriptor");
   364			return -EINVAL;
   365			}
   366			desc = (struct greybus_descriptor *)((char *)desc + desc_size);
   367			size -= desc_size;
   368		}
   369		mikrobus_state_get(info);
   370		dev_count = mikrobus_manifest_parse_devices(info);
   371		pr_info(" %s manifest parsed with %d device(s)\n", info->name,
   372			info->num_devices);
   373		release_manifest_descriptors(info);
   374		return true;
   375	}
   376	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65063 bytes --]

  reply	other threads:[~2020-07-24 16:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24 12:06 [PATCH] RFC : mikroBUS driver for add-on boards Vaishnav M A
2020-07-24 16:06 ` kernel test robot [this message]
2020-07-24 20:02 ` Christopher Friedt
2020-07-25  6:17 ` kernel test robot
2020-07-26 12:48 ` [greybus-dev] " Alex Elder
2020-07-26 17:37   ` Vaishnav M A
2020-07-26 15:04 ` Alex Elder
2020-07-26 19:12   ` Vaishnav M A
2020-07-26 21:54     ` Alex Elder

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=202007250055.L6Vf7IS8%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.