All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: devel@driverdev.osuosl.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	kbuild-all@01.org
Subject: [driver-core:driver-core-testing 84/85] drivers/s390/cio/device.c:1660:9: warning: assignment discards 'const' qualifier from pointer target type
Date: Tue, 25 Jun 2019 22:28:55 +0800	[thread overview]
Message-ID: <201906252228.SQ5Vvv4y%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head:   65b66682344a15ba2069d4dd8d0cc39cc3aed7e9
commit: 92ce7e83b4e5c86687d748ba53cb755acdce1256 [84/85] driver_find_device: Unify the match function with class_find_device()
config: s390-debug_defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 92ce7e83b4e5c86687d748ba53cb755acdce1256
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=s390 

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

All warnings (new ones prefixed by >>):

   drivers/s390/cio/device.c: In function '__ccwdev_check_busid':
>> drivers/s390/cio/device.c:1660:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     bus_id = id;
            ^
--
   drivers/s390/cio/ccwgroup.c: In function '__ccwgroupdev_check_busid':
>> drivers/s390/cio/ccwgroup.c:613:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     char *bus_id = id;
                    ^~

vim +/const +1660 drivers/s390/cio/device.c

^1da177e Linus Torvalds   2005-04-16  1651  
^1da177e Linus Torvalds   2005-04-16  1652  /*
^1da177e Linus Torvalds   2005-04-16  1653   * get ccw_device matching the busid, but only if owned by cdrv
^1da177e Linus Torvalds   2005-04-16  1654   */
b0744bd2 Cornelia Huck    2005-06-25  1655  static int
92ce7e83 Suzuki K Poulose 2019-06-14  1656  __ccwdev_check_busid(struct device *dev, const void *id)
b0744bd2 Cornelia Huck    2005-06-25  1657  {
b0744bd2 Cornelia Huck    2005-06-25  1658  	char *bus_id;
b0744bd2 Cornelia Huck    2005-06-25  1659  
12975aef Cornelia Huck    2006-10-11 @1660  	bus_id = id;
b0744bd2 Cornelia Huck    2005-06-25  1661  
98df67b3 Kay Sievers      2008-12-25  1662  	return (strcmp(bus_id, dev_name(dev)) == 0);
b0744bd2 Cornelia Huck    2005-06-25  1663  }
b0744bd2 Cornelia Huck    2005-06-25  1664  

:::::: The code at line 1660 was first introduced by commit
:::::: 12975aef62836e9f3e179afaaded8045f8a25ac4 [S390] cio: remove casts from/to (void *).

:::::: TO: Cornelia Huck <cornelia.huck@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

             reply	other threads:[~2019-06-25 14:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-25 14:28 kbuild test robot [this message]
2019-06-26  1:22 ` [driver-core:driver-core-testing 84/85] drivers/s390/cio/device.c:1660:9: warning: assignment discards 'const' qualifier from pointer target type Greg Kroah-Hartman
2019-06-26  8:46   ` [PATCH] drivers: s390/cio: Fix compilation warning about const qualifiers Suzuki K Poulose
2019-06-26  8:46     ` Suzuki K Poulose

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=201906252228.SQ5Vvv4y%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@01.org \
    --cc=suzuki.poulose@arm.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.