All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-devel] [dm:for-next 10/11] drivers/md/dm-kcopyd.c:538:42: error: passing argument 2 of 'test_bit' from incompatible pointer type
@ 2021-05-26 19:59 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-26 19:59 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: dm-devel, kbuild-all, Mike Snitzer

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head:   02e71d9bee03399bac6869d9afba8665650ad20a
commit: 1e754b11d1c0c22516822481ba26592d5fb1ef9a [10/11] dm: improve kcopyd latency
config: sh-allmodconfig (attached as .config)
compiler: sh4-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?id=1e754b11d1c0c22516822481ba26592d5fb1ef9a
        git remote add dm https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
        git fetch --no-tags dm for-next
        git checkout 1e754b11d1c0c22516822481ba26592d5fb1ef9a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   drivers/md/dm-kcopyd.c: In function 'complete_io':
>> drivers/md/dm-kcopyd.c:538:42: error: passing argument 2 of 'test_bit' from incompatible pointer type [-Werror=incompatible-pointer-types]
     538 |   if (test_bit(DM_KCOPYD_EARLY_CALLBACK, &job->flags)) {
         |                                          ^~~~~~~~~~~
         |                                          |
         |                                          unsigned int *
   In file included from arch/sh/include/asm/bitops.h:24,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:12,
                    from include/asm-generic/bug.h:20,
                    from arch/sh/include/asm/bug.h:112,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/current.h:5,
                    from ./arch/sh/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from include/linux/blkdev.h:5,
                    from drivers/md/dm-kcopyd.c:14:
   include/asm-generic/bitops/non-atomic.h:104:66: note: expected 'const volatile long unsigned int *' but argument is of type 'unsigned int *'
     104 | static inline int test_bit(int nr, const volatile unsigned long *addr)
         |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/test_bit +538 drivers/md/dm-kcopyd.c

   516	
   517	static void complete_io(unsigned long error, void *context)
   518	{
   519		struct kcopyd_job *job = (struct kcopyd_job *) context;
   520		struct dm_kcopyd_client *kc = job->kc;
   521	
   522		io_job_finish(kc->throttle);
   523	
   524		if (error) {
   525			if (op_is_write(job->rw))
   526				job->write_err |= error;
   527			else
   528				job->read_err = 1;
   529	
   530			if (!(job->flags & BIT(DM_KCOPYD_IGNORE_ERROR))) {
   531				push(&kc->complete_jobs, job);
   532				wake(kc);
   533				return;
   534			}
   535		}
   536	
   537		if (op_is_write(job->rw)) {
 > 538			if (test_bit(DM_KCOPYD_EARLY_CALLBACK, &job->flags)) {
   539				job->fn(job->read_err, job->write_err, job->context);
   540				job->fn = null_completion;
   541			}
   542			push(&kc->complete_jobs, job);
   543		} else {
   544			job->rw = WRITE;
   545			push(&kc->io_jobs, job);
   546		}
   547	
   548		wake(kc);
   549	}
   550	

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

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

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

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dm:for-next 10/11] drivers/md/dm-kcopyd.c:538:42: error: passing argument 2 of 'test_bit' from incompatible pointer type
@ 2021-05-26 19:59 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-26 19:59 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head:   02e71d9bee03399bac6869d9afba8665650ad20a
commit: 1e754b11d1c0c22516822481ba26592d5fb1ef9a [10/11] dm: improve kcopyd latency
config: sh-allmodconfig (attached as .config)
compiler: sh4-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?id=1e754b11d1c0c22516822481ba26592d5fb1ef9a
        git remote add dm https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
        git fetch --no-tags dm for-next
        git checkout 1e754b11d1c0c22516822481ba26592d5fb1ef9a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

   drivers/md/dm-kcopyd.c: In function 'complete_io':
>> drivers/md/dm-kcopyd.c:538:42: error: passing argument 2 of 'test_bit' from incompatible pointer type [-Werror=incompatible-pointer-types]
     538 |   if (test_bit(DM_KCOPYD_EARLY_CALLBACK, &job->flags)) {
         |                                          ^~~~~~~~~~~
         |                                          |
         |                                          unsigned int *
   In file included from arch/sh/include/asm/bitops.h:24,
                    from include/linux/bitops.h:32,
                    from include/linux/kernel.h:12,
                    from include/asm-generic/bug.h:20,
                    from arch/sh/include/asm/bug.h:112,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/current.h:5,
                    from ./arch/sh/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from include/linux/blkdev.h:5,
                    from drivers/md/dm-kcopyd.c:14:
   include/asm-generic/bitops/non-atomic.h:104:66: note: expected 'const volatile long unsigned int *' but argument is of type 'unsigned int *'
     104 | static inline int test_bit(int nr, const volatile unsigned long *addr)
         |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/test_bit +538 drivers/md/dm-kcopyd.c

   516	
   517	static void complete_io(unsigned long error, void *context)
   518	{
   519		struct kcopyd_job *job = (struct kcopyd_job *) context;
   520		struct dm_kcopyd_client *kc = job->kc;
   521	
   522		io_job_finish(kc->throttle);
   523	
   524		if (error) {
   525			if (op_is_write(job->rw))
   526				job->write_err |= error;
   527			else
   528				job->read_err = 1;
   529	
   530			if (!(job->flags & BIT(DM_KCOPYD_IGNORE_ERROR))) {
   531				push(&kc->complete_jobs, job);
   532				wake(kc);
   533				return;
   534			}
   535		}
   536	
   537		if (op_is_write(job->rw)) {
 > 538			if (test_bit(DM_KCOPYD_EARLY_CALLBACK, &job->flags)) {
   539				job->fn(job->read_err, job->write_err, job->context);
   540				job->fn = null_completion;
   541			}
   542			push(&kc->complete_jobs, job);
   543		} else {
   544			job->rw = WRITE;
   545			push(&kc->io_jobs, job);
   546		}
   547	
   548		wake(kc);
   549	}
   550	

---
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: 54770 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-26 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 19:59 [dm-devel] [dm:for-next 10/11] drivers/md/dm-kcopyd.c:538:42: error: passing argument 2 of 'test_bit' from incompatible pointer type kernel test robot
2021-05-26 19:59 ` kernel test robot

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.