lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201807190922.hZdtQ9mP%fengguang.wu@intel.com>
Date:   Thu, 19 Jul 2018 09:18:08 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Todd Poynor <toddpoynor@...il.com>
Cc:     kbuild-all@...org, Rob Springer <rspringer@...gle.com>,
        John Joseph <jnjoseph@...gle.com>,
        Ben Chan <benchan@...omium.org>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Zhongze Hu <frankhu@...omium.org>,
        Simon Que <sque@...omium.org>,
        Dmitry Torokhov <dtor@...omium.org>,
        Guenter Roeck <groeck@...omium.org>,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
        Todd Poynor <toddpoynor@...gle.com>,
        Todd Poynor <toddpoynor@...il.com>
Subject: Re: [PATCH resend] staging: gasket: remove X86 Kconfig restriction

Hi Todd,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on next-20180718]
[cannot apply to v4.18-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Todd-Poynor/staging-gasket-remove-X86-Kconfig-restriction/20180716-031056
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
        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
        GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   In file included from drivers/staging/gasket/gasket_page_table.h:19,
                    from drivers/staging/gasket/gasket_page_table.c:34:
   drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_read_64':
>> drivers/staging/gasket/gasket_core.h:651:9: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
     return readq(&gasket_dev->bar_data[bar].virt_base[location]);
            ^~~~~
            readl
   drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_write_64':
>> drivers/staging/gasket/gasket_core.h:657:2: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
     writeq(value, &dev->bar_data[bar].virt_base[location]);
     ^~~~~~
     writel
   drivers/staging/gasket/gasket_page_table.c: In function 'gasket_is_extended_dev_addr_bad':
   drivers/staging/gasket/gasket_page_table.c:1373:11: warning: right shift count >= width of type [-Wshift-count-overflow]
     if (addr >> (GASKET_EXTENDED_LVL0_WIDTH + GASKET_EXTENDED_LVL0_SHIFT)) {
              ^~
   drivers/staging/gasket/gasket_page_table.c: In function 'gasket_alloc_coherent_memory':
   drivers/staging/gasket/gasket_page_table.c:1679:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (u64)mem + j * PAGE_SIZE;
       ^
   cc1: some warnings being treated as errors
--
   In file included from drivers/staging/gasket/gasket_sysfs.h:21,
                    from drivers/staging/gasket/gasket_sysfs.c:3:
   drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_read_64':
>> drivers/staging/gasket/gasket_core.h:651:9: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
     return readq(&gasket_dev->bar_data[bar].virt_base[location]);
            ^~~~~
            readl
   drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_write_64':
>> drivers/staging/gasket/gasket_core.h:657:2: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
     writeq(value, &dev->bar_data[bar].virt_base[location]);
     ^~~~~~
     writel
   cc1: some warnings being treated as errors
--
   In file included from drivers/staging/gasket/gasket_ioctl.h:6,
                    from drivers/staging/gasket/gasket_ioctl.c:4:
   drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_read_64':
>> drivers/staging/gasket/gasket_core.h:651:9: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
     return readq(&gasket_dev->bar_data[bar].virt_base[location]);
            ^~~~~
            readl
   drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_write_64':
>> drivers/staging/gasket/gasket_core.h:657:2: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
     writeq(value, &dev->bar_data[bar].virt_base[location]);
     ^~~~~~
     writel
   drivers/staging/gasket/gasket_ioctl.c: In function 'gasket_config_coherent_allocator':
>> drivers/staging/gasket/gasket_ioctl.c:434:27: error: passing argument 3 of 'gasket_alloc_coherent_memory' from incompatible pointer type [-Werror=incompatible-pointer-types]
       gasket_dev, ibuf.size, &ibuf.dma_address,
                              ^~~~~~~~~~~~~~~~~
   In file included from drivers/staging/gasket/gasket_ioctl.c:9:
   drivers/staging/gasket/gasket_page_table.h:227:18: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type 'u64 *' {aka 'long long unsigned int *'}
         dma_addr_t *dma_address, uint64_t index);
         ~~~~~~~~~~~~^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +651 drivers/staging/gasket/gasket_core.h

9a69f508 Simon Que 2018-06-29  620  
9a69f508 Simon Que 2018-06-29  621  /*
9a69f508 Simon Que 2018-06-29  622   * Memory management functions. These will likely be spun off into their own
9a69f508 Simon Que 2018-06-29  623   * file in the future.
9a69f508 Simon Que 2018-06-29  624   */
9a69f508 Simon Que 2018-06-29  625  
9a69f508 Simon Que 2018-06-29  626  /* Unmaps the specified mappable region from a VMA. */
9a69f508 Simon Que 2018-06-29  627  int gasket_mm_unmap_region(
9a69f508 Simon Que 2018-06-29  628  	const struct gasket_dev *gasket_dev, struct vm_area_struct *vma,
9a69f508 Simon Que 2018-06-29  629  	const struct gasket_mappable_region *map_region);
9a69f508 Simon Que 2018-06-29  630  
9a69f508 Simon Que 2018-06-29  631  /*
9a69f508 Simon Que 2018-06-29  632   * Get the ioctl permissions callback.
9a69f508 Simon Que 2018-06-29  633   * @gasket_dev: Gasket device structure.
9a69f508 Simon Que 2018-06-29  634   */
9a69f508 Simon Que 2018-06-29  635  gasket_ioctl_permissions_cb_t gasket_get_ioctl_permissions_cb(
9a69f508 Simon Que 2018-06-29  636  	struct gasket_dev *gasket_dev);
9a69f508 Simon Que 2018-06-29  637  
9a69f508 Simon Que 2018-06-29  638  /**
9a69f508 Simon Que 2018-06-29  639   * Lookup a name by number in a num_name table.
9a69f508 Simon Que 2018-06-29  640   * @num: Number to lookup.
9a69f508 Simon Que 2018-06-29  641   * @table: Array of num_name structures, the table for the lookup.
9a69f508 Simon Que 2018-06-29  642   *
9a69f508 Simon Que 2018-06-29  643   */
9a69f508 Simon Que 2018-06-29  644  const char *gasket_num_name_lookup(
9a69f508 Simon Que 2018-06-29  645  	uint num, const struct gasket_num_name *table);
9a69f508 Simon Que 2018-06-29  646  
9a69f508 Simon Que 2018-06-29  647  /* Handy inlines */
9a69f508 Simon Que 2018-06-29  648  static inline ulong gasket_dev_read_64(
9a69f508 Simon Que 2018-06-29  649  	struct gasket_dev *gasket_dev, int bar, ulong location)
9a69f508 Simon Que 2018-06-29  650  {
9a69f508 Simon Que 2018-06-29 @651  	return readq(&gasket_dev->bar_data[bar].virt_base[location]);
9a69f508 Simon Que 2018-06-29  652  }
9a69f508 Simon Que 2018-06-29  653  
9a69f508 Simon Que 2018-06-29  654  static inline void gasket_dev_write_64(
9a69f508 Simon Que 2018-06-29  655  	struct gasket_dev *dev, u64 value, int bar, ulong location)
9a69f508 Simon Que 2018-06-29  656  {
9a69f508 Simon Que 2018-06-29 @657  	writeq(value, &dev->bar_data[bar].virt_base[location]);
9a69f508 Simon Que 2018-06-29  658  }
9a69f508 Simon Que 2018-06-29  659  

:::::: The code at line 651 was first introduced by commit
:::::: 9a69f5087ccc20bb411025decab455836df04168 drivers/staging: Gasket driver framework + Apex driver

:::::: TO: Simon Que <sque@...omium.org>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

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

Download attachment ".config.gz" of type "application/gzip" (54122 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ