CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Ramji Jiyani <[email protected]>

Hi Ramji,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on asm-generic/master]
[also build test WARNING on soc/for-next linus/master v5.14-rc7 next-20210824]
[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/Ramji-Jiyani/aio-Add-support-for-the-POLLFREE/20210825-015639
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git 
master
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
config: sparc64-randconfig-s031-20210824 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # 
https://github.com/0day-ci/linux/commit/c3d339812a4a780fff12fbe04114ed3a5eee8997
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review 
Ramji-Jiyani/aio-Add-support-for-the-POLLFREE/20210825-015639
        git checkout c3d339812a4a780fff12fbe04114ed3a5eee8997
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 
SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   fs/aio.c:588:24: sparse: sparse: incorrect type in argument 1 (different 
address spaces) @@     expected void [noderef] __percpu *__pdata @@     got 
struct kioctx_cpu *cpu @@
   fs/aio.c:588:24: sparse:     expected void [noderef] __percpu *__pdata
   fs/aio.c:588:24: sparse:     got struct kioctx_cpu *cpu
   fs/aio.c:755:18: sparse: sparse: incorrect type in assignment (different 
address spaces) @@     expected struct kioctx_cpu *cpu @@     got struct 
kioctx_cpu [noderef] __percpu * @@
   fs/aio.c:755:18: sparse:     expected struct kioctx_cpu *cpu
   fs/aio.c:755:18: sparse:     got struct kioctx_cpu [noderef] __percpu *
   fs/aio.c:802:24: sparse: sparse: incorrect type in argument 1 (different 
address spaces) @@     expected void [noderef] __percpu *__pdata @@     got 
struct kioctx_cpu *cpu @@
   fs/aio.c:802:24: sparse:     expected void [noderef] __percpu *__pdata
   fs/aio.c:802:24: sparse:     got struct kioctx_cpu *cpu
   fs/aio.c:907:16: sparse: sparse: incorrect type in initializer (different 
address spaces) @@     expected void const [noderef] __percpu *__vpp_verify @@  
   got struct kioctx_cpu * @@
   fs/aio.c:907:16: sparse:     expected void const [noderef] __percpu 
*__vpp_verify
   fs/aio.c:907:16: sparse:     got struct kioctx_cpu *
   fs/aio.c:925:16: sparse: sparse: incorrect type in initializer (different 
address spaces) @@     expected void const [noderef] __percpu *__vpp_verify @@  
   got struct kioctx_cpu * @@
   fs/aio.c:925:16: sparse:     expected void const [noderef] __percpu 
*__vpp_verify
   fs/aio.c:925:16: sparse:     got struct kioctx_cpu *
>> fs/aio.c:1702:17: sparse: sparse: context imbalance in 'aio_poll_wake' - 
>> different lock contexts for basic block

vim +/aio_poll_wake +1702 fs/aio.c

bfe4037e722ec6 Christoph Hellwig 2018-07-16  1671  
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1672  static int 
aio_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync,
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1673               void *key)
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1674  {
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1675       struct poll_iocb *req = 
container_of(wait, struct poll_iocb, wait);
e8693bcfa0b4a5 Christoph Hellwig 2018-07-16  1676       struct aio_kiocb *iocb 
= container_of(req, struct aio_kiocb, poll);
c3d339812a4a78 Ramji Jiyani      2021-08-24  1677       struct kioctx *ctx = 
iocb->ki_ctx;
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1678       __poll_t mask = 
key_to_poll(key);
d3d6a18d7d351c Bart Van Assche   2019-02-08  1679       unsigned long flags;
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1680  
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1681       /* for instances that 
support it check for an event match first: */
af5c72b1fc7a00 Al Viro           2019-03-07  1682       if (mask && !(mask & 
req->events))
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1683               return 0;
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1684  
af5c72b1fc7a00 Al Viro           2019-03-07  1685       
list_del_init(&req->wait.entry);
af5c72b1fc7a00 Al Viro           2019-03-07  1686  
d3d6a18d7d351c Bart Van Assche   2019-02-08  1687       /*
c3d339812a4a78 Ramji Jiyani      2021-08-24  1688        * Use 
irqsave/irqrestore because not all filesystems (e.g. fuse)
c3d339812a4a78 Ramji Jiyani      2021-08-24  1689        * call this function 
with IRQs disabled and because IRQs have to
c3d339812a4a78 Ramji Jiyani      2021-08-24  1690        * be disabled before 
ctx_lock is obtained.
d3d6a18d7d351c Bart Van Assche   2019-02-08  1691        */
c3d339812a4a78 Ramji Jiyani      2021-08-24  1692       if (mask & POLLFREE) {
c3d339812a4a78 Ramji Jiyani      2021-08-24  1693               /* Force 
complete iocb inline to remove refs to deleted entry */
c3d339812a4a78 Ramji Jiyani      2021-08-24  1694               
spin_lock_irqsave(&ctx->ctx_lock, flags);
c3d339812a4a78 Ramji Jiyani      2021-08-24  1695       } else if (!(mask && 
spin_trylock_irqsave(&ctx->ctx_lock, flags))) {
c3d339812a4a78 Ramji Jiyani      2021-08-24  1696               /* Can't 
complete iocb inline; schedule for later */
c3d339812a4a78 Ramji Jiyani      2021-08-24  1697               
schedule_work(&req->work);
c3d339812a4a78 Ramji Jiyani      2021-08-24  1698               return 1;
c3d339812a4a78 Ramji Jiyani      2021-08-24  1699       }
c3d339812a4a78 Ramji Jiyani      2021-08-24  1700  
c3d339812a4a78 Ramji Jiyani      2021-08-24  1701       /* complete iocb inline 
*/
e8693bcfa0b4a5 Christoph Hellwig 2018-07-16 @1702       
list_del(&iocb->ki_list);
af5c72b1fc7a00 Al Viro           2019-03-07  1703       iocb->ki_res.res = 
mangle_poll(mask);
af5c72b1fc7a00 Al Viro           2019-03-07  1704       req->done = true;
01d7a356872eec Jens Axboe        2020-02-03  1705       if (iocb->ki_eventfd && 
eventfd_signal_count()) {
01d7a356872eec Jens Axboe        2020-02-03  1706               iocb = NULL;
01d7a356872eec Jens Axboe        2020-02-03  1707               
INIT_WORK(&req->work, aio_poll_put_work);
01d7a356872eec Jens Axboe        2020-02-03  1708               
schedule_work(&req->work);
01d7a356872eec Jens Axboe        2020-02-03  1709       }
01d7a356872eec Jens Axboe        2020-02-03  1710       
spin_unlock_irqrestore(&ctx->ctx_lock, flags);
01d7a356872eec Jens Axboe        2020-02-03  1711       if (iocb)
af5c72b1fc7a00 Al Viro           2019-03-07  1712               iocb_put(iocb);
c3d339812a4a78 Ramji Jiyani      2021-08-24  1713  
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1714       return 1;
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1715  }
bfe4037e722ec6 Christoph Hellwig 2018-07-16  1716  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to