All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: chengang@emindsoft.com.cn
Cc: kbuild-all@01.org, akpm@linux-foundation.org, minchan@kernel.org,
	vbabka@suse.cz, gi-oh.kim@profitbricks.com,
	iamjoonsoo.kim@lge.com, hillf.zj@alibaba-inc.com,
	mgorman@techsingularity.net, mhocko@suse.com,
	rientjes@google.com, linux-kernel@vger.kernel.org,
	rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com,
	vgupta@synopsys.com, linux@armlinux.org.uk,
	catalin.marinas@arm.com, will.deacon@arm.com,
	hskinnemoen@gmail.com, egtvedt@samfundet.no, realmz6@gmail.com,
	ysato@users.sourceforge.jp, rkuo@codeaurora.org,
	tony.luck@intel.com, fenghua.yu@intel.com, geert@linux-m68k.org,
	james.hogan@imgtec.com, ralf@linux-mips.org, dhowells@redhat.com,
	deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org,
	mpe@ellerman.id.au, schwidefsky@de.ibm.com,
	heiko.carstens@de.ibm.com, dalias@libc.org, davem@davemloft.net,
	cmetcalf@mellanox.com, chris@zankel.net, jcmvbkbc@gmail.com,
	arnd@arndb.de, noamc@ezchip.com, brueckner@linux.vnet.ibm.com,
	mingo@kernel.org, peterz@infradead.org,
	linux-arch@vger.kernel.org, Chen Gang <gang.chen.5i5j@gmail.com>
Subject: Re: [PATCH v2] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions
Date: Mon, 29 Aug 2016 04:21:48 +0800	[thread overview]
Message-ID: <201608290420.Q8M6EJJv%fengguang.wu@intel.com> (raw)
In-Reply-To: <1472396129-28665-1-git-send-email-chengang@emindsoft.com.cn>

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

Hi Chen,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.8-rc3 next-20160825]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/chengang-emindsoft-com-cn/arch-all-include-asm-bitops-Use-bool-instead-of-int-for-all-bit-test-functions/20160828-230301
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/isdn/hardware/mISDN/hfcsusb.c:33:
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'hfcusb_l2l1D':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hardware/mISDN/hfcsusb.c:324:5: note: in expansion of macro 'test_and_set_bit'
        test_and_set_bit(FLG_L2_ACTIVATED,
        ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hardware/mISDN/hfcsusb.c:337:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:352:4: note: in expansion of macro 'test_and_clear_bit'
       test_and_clear_bit(FLG_TX_BUSY, &dch->Flags);
       ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'hfc_l1callback':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:401:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_TX_BUSY, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:404:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_ACTIVE, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:409:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
      ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'open_dchannel':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:436:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_ACTIVE, &hw->dch.Flags);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:437:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_ACTIVE, &hw->ech.Flags);
     ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'ph_state_nt':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:641:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:642:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:663:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_ACTIVE, &dch->Flags);
      ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'rx_iso_complete':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> include/linux/mISDNhw.h:83:6: note: in expansion of macro 'test_and_set_bit'
         test_and_set_bit(ev, &((s)->Flags)); \
         ^
>> drivers/isdn/hardware/mISDN/hfcsusb.c:1068:4: note: in expansion of macro 'schedule_event'
       schedule_event(&hw->dch, FLG_PHCHANGE);
       ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'rx_int_complete':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> include/linux/mISDNhw.h:83:6: note: in expansion of macro 'test_and_set_bit'
         test_and_set_bit(ev, &((s)->Flags)); \
         ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:1139:4: note: in expansion of macro 'schedule_event'
       schedule_event(&hw->dch, FLG_PHCHANGE);
       ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'tx_iso_complete':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> include/linux/mISDNhw.h:83:6: note: in expansion of macro 'test_and_set_bit'
         test_and_set_bit(ev, &((s)->Flags)); \
         ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:1368:5: note: in expansion of macro 'schedule_event'
        schedule_event(&hw->dch, FLG_PHCHANGE);
        ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'hfc_bctrl':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:1814:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_OPEN, &bch->Flags);
      ^
--
   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/timer.h:4,
                    from drivers/isdn/hisax/config.c:19:
   drivers/isdn/hisax/config.c: In function 'hisax_cs_new':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/config.c:1051:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_TWO_DCHAN, &cs->HW_Flags);
      ^
   drivers/isdn/hisax/config.c: In function 'hisax_b_l1l2':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/hisax.h:972:36: note: in expansion of macro 'test_and_set_bit'
    #define schedule_event(s, ev) do { test_and_set_bit(ev, &s->event); schedule_work(&s->tqueue); } while (0)
                                       ^
>> drivers/isdn/hisax/config.c:1764:4: note: in expansion of macro 'schedule_event'
       schedule_event(bcs, B_ACKPENDING);
       ^
   drivers/isdn/hisax/config.c: In function 'hisax_b_l2l1':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hisax/config.c:1844:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag);
      ^
--
   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/asm-generic/bug.h:13,
                    from arch/m68k/include/asm/bug.h:28,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from drivers/isdn/hisax/isdnl1.c:22:
   drivers/isdn/hisax/isdnl1.c: In function 'L1deactivated':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hisax/isdnl1.c:182:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_deact_req_s':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/isdnl1.c:480:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_power_up_s':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:492:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags);
      ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_info4_ind':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:541:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L1_ACTTIMER, &st->l1.Flags);
      ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_timer3':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:550:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_timer_act':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:568:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_ACTTIMER, &st->l1.Flags);
     ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:569:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L1_ACTIVATED, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_timer_deact':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:578:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:579:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_ACTIVATED, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_activate_no':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:598:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags);
      ^
   drivers/isdn/hisax/isdnl1.c: In function 'dch_l2l1':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:818:4: note: in expansion of macro 'test_and_set_bit'
       test_and_set_bit(FLG_L1_ACTIVATING, &st->l1.Flags);
       ^
--
   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/asm-generic/bug.h:13,
                    from arch/m68k/include/asm/bug.h:28,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from drivers/isdn/hisax/isdnl2.c:19:
   drivers/isdn/hisax/isdnl2.c: In function 'set_peer_busy':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/isdnl2.c:111:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_PEER_BUSY, &l2->flag);
     ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:114:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L2BLOCK, &l2->flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'clear_peer_busy':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hisax/isdnl2.c:120:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L2BLOCK, &l2->flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'clear_exception':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:177:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_ACK_PEND, &l2->flag);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:178:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_REJEXC, &l2->flag);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:179:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_OWN_BUSY, &l2->flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'start_t200':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:460:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_T200_RUN, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'restart_t200':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:467:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_T200_RUN, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'establishlink':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:510:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_PEND_REL, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_mdl_error_dm':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:538:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L3_INIT, &st->l2.flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_st8_mdl_error_dm':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:554:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_establish':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:638:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_discard_i_setl3':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:647:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:648:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_PEND_REL, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_l3_reestablish':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:658:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_pend_rel':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:674:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_PEND_REL, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_reestablish':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:844:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'enquiry_response':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
..

vim +/test_and_set_bit +324 drivers/isdn/hardware/mISDN/hfcsusb.c

69f52adb Karsten Keil 2009-01-09  318  				_queue_data(&dch->dev.D,
69f52adb Karsten Keil 2009-01-09  319  					    PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
69f52adb Karsten Keil 2009-01-09  320  					    NULL, GFP_ATOMIC);
69f52adb Karsten Keil 2009-01-09  321  			} else {
69f52adb Karsten Keil 2009-01-09  322  				hfcsusb_ph_command(hw,
69f52adb Karsten Keil 2009-01-09  323  						   HFC_L1_ACTIVATE_NT);
69f52adb Karsten Keil 2009-01-09 @324  				test_and_set_bit(FLG_L2_ACTIVATED,
69f52adb Karsten Keil 2009-01-09  325  						 &dch->Flags);
69f52adb Karsten Keil 2009-01-09  326  			}
69f52adb Karsten Keil 2009-01-09  327  		} else {
69f52adb Karsten Keil 2009-01-09  328  			hfcsusb_ph_command(hw, HFC_L1_ACTIVATE_TE);
69f52adb Karsten Keil 2009-01-09  329  			ret = l1_event(dch->l1, hh->prim);
69f52adb Karsten Keil 2009-01-09  330  		}
69f52adb Karsten Keil 2009-01-09  331  		break;
69f52adb Karsten Keil 2009-01-09  332  
69f52adb Karsten Keil 2009-01-09  333  	case PH_DEACTIVATE_REQ:
69f52adb Karsten Keil 2009-01-09  334  		if (debug & DBG_HFC_CALL_TRACE)
69f52adb Karsten Keil 2009-01-09  335  			printk(KERN_DEBUG "%s: %s: PH_DEACTIVATE_REQ\n",
69f52adb Karsten Keil 2009-01-09  336  			       hw->name, __func__);
69f52adb Karsten Keil 2009-01-09 @337  		test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
69f52adb Karsten Keil 2009-01-09  338  
69f52adb Karsten Keil 2009-01-09  339  		if (hw->protocol == ISDN_P_NT_S0) {
69f52adb Karsten Keil 2009-01-09  340  			hfcsusb_ph_command(hw, HFC_L1_DEACTIVATE_NT);

:::::: The code at line 324 was first introduced by commit
:::::: 69f52adb2d534afc41fcc658f155e01f0b322f9e mISDN: Add HFC USB driver

:::::: TO: Karsten Keil <kkeil@suse.de>
:::::: CC: Karsten Keil <kkeil@suse.de>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 37476 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: chengang@emindsoft.com.cn
Cc: kbuild-all@01.org, akpm@linux-foundation.org, minchan@kernel.org,
	vbabka@suse.cz, gi-oh.kim@profitbricks.com,
	iamjoonsoo.kim@lge.com, hillf.zj@alibaba-inc.com,
	mgorman@techsingularity.net, mhocko@suse.com,
	rientjes@google.com, linux-kernel@vger.kernel.org,
	rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com,
	vgupta@synopsys.com, linux@armlinux.org.uk,
	catalin.marinas@arm.com, will.deacon@arm.com,
	hskinnemoen@gmail.com, egtvedt@samfundet.no, realmz6@gmail.com,
	ysato@users.sourceforge.jp, rkuo@codeaurora.org,
	tony.luck@intel.com, fenghua.yu@intel.com, geert@linux-m68k.org,
	james.hogan@imgtec.com, ralf@linux-mips.org, dhowells@redhat.com,
	deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org,
	mpe@ellerman.id.au, schwidefsky@de.ibm.com,
	heiko.carstens@de.ibm.com, dalias@l
Subject: Re: [PATCH v2] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions
Date: Mon, 29 Aug 2016 04:21:48 +0800	[thread overview]
Message-ID: <201608290420.Q8M6EJJv%fengguang.wu@intel.com> (raw)
In-Reply-To: <1472396129-28665-1-git-send-email-chengang@emindsoft.com.cn>

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

Hi Chen,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.8-rc3 next-20160825]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/chengang-emindsoft-com-cn/arch-all-include-asm-bitops-Use-bool-instead-of-int-for-all-bit-test-functions/20160828-230301
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/isdn/hardware/mISDN/hfcsusb.c:33:
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'hfcusb_l2l1D':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hardware/mISDN/hfcsusb.c:324:5: note: in expansion of macro 'test_and_set_bit'
        test_and_set_bit(FLG_L2_ACTIVATED,
        ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hardware/mISDN/hfcsusb.c:337:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:352:4: note: in expansion of macro 'test_and_clear_bit'
       test_and_clear_bit(FLG_TX_BUSY, &dch->Flags);
       ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'hfc_l1callback':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:401:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_TX_BUSY, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:404:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_ACTIVE, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:409:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
      ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'open_dchannel':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:436:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_ACTIVE, &hw->dch.Flags);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:437:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_ACTIVE, &hw->ech.Flags);
     ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'ph_state_nt':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:641:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_ACTIVE, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:642:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
      ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:663:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_ACTIVE, &dch->Flags);
      ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'rx_iso_complete':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> include/linux/mISDNhw.h:83:6: note: in expansion of macro 'test_and_set_bit'
         test_and_set_bit(ev, &((s)->Flags)); \
         ^
>> drivers/isdn/hardware/mISDN/hfcsusb.c:1068:4: note: in expansion of macro 'schedule_event'
       schedule_event(&hw->dch, FLG_PHCHANGE);
       ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'rx_int_complete':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> include/linux/mISDNhw.h:83:6: note: in expansion of macro 'test_and_set_bit'
         test_and_set_bit(ev, &((s)->Flags)); \
         ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:1139:4: note: in expansion of macro 'schedule_event'
       schedule_event(&hw->dch, FLG_PHCHANGE);
       ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'tx_iso_complete':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> include/linux/mISDNhw.h:83:6: note: in expansion of macro 'test_and_set_bit'
         test_and_set_bit(ev, &((s)->Flags)); \
         ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:1368:5: note: in expansion of macro 'schedule_event'
        schedule_event(&hw->dch, FLG_PHCHANGE);
        ^
   drivers/isdn/hardware/mISDN/hfcsusb.c: In function 'hfc_bctrl':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hardware/mISDN/hfcsusb.c:1814:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_OPEN, &bch->Flags);
      ^
--
   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/timer.h:4,
                    from drivers/isdn/hisax/config.c:19:
   drivers/isdn/hisax/config.c: In function 'hisax_cs_new':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/config.c:1051:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_TWO_DCHAN, &cs->HW_Flags);
      ^
   drivers/isdn/hisax/config.c: In function 'hisax_b_l1l2':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/hisax.h:972:36: note: in expansion of macro 'test_and_set_bit'
    #define schedule_event(s, ev) do { test_and_set_bit(ev, &s->event); schedule_work(&s->tqueue); } while (0)
                                       ^
>> drivers/isdn/hisax/config.c:1764:4: note: in expansion of macro 'schedule_event'
       schedule_event(bcs, B_ACKPENDING);
       ^
   drivers/isdn/hisax/config.c: In function 'hisax_b_l2l1':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hisax/config.c:1844:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag);
      ^
--
   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/asm-generic/bug.h:13,
                    from arch/m68k/include/asm/bug.h:28,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from drivers/isdn/hisax/isdnl1.c:22:
   drivers/isdn/hisax/isdnl1.c: In function 'L1deactivated':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hisax/isdnl1.c:182:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_DBUSY, &cs->HW_Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_deact_req_s':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/isdnl1.c:480:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_power_up_s':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:492:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags);
      ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_info4_ind':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:541:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L1_ACTTIMER, &st->l1.Flags);
      ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_timer3':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:550:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_timer_act':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:568:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_ACTTIMER, &st->l1.Flags);
     ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:569:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L1_ACTIVATED, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_timer_deact':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:578:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:579:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L1_ACTIVATED, &st->l1.Flags);
     ^
   drivers/isdn/hisax/isdnl1.c: In function 'l1_activate_no':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl1.c:598:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags);
      ^
   drivers/isdn/hisax/isdnl1.c: In function 'dch_l2l1':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl1.c:818:4: note: in expansion of macro 'test_and_set_bit'
       test_and_set_bit(FLG_L1_ACTIVATING, &st->l1.Flags);
       ^
--
   In file included from include/linux/bitops.h:36:0,
                    from include/linux/kernel.h:10,
                    from include/asm-generic/bug.h:13,
                    from arch/m68k/include/asm/bug.h:28,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from drivers/isdn/hisax/isdnl2.c:19:
   drivers/isdn/hisax/isdnl2.c: In function 'set_peer_busy':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
>> drivers/isdn/hisax/isdnl2.c:111:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_PEER_BUSY, &l2->flag);
     ^
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:114:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L2BLOCK, &l2->flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'clear_peer_busy':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
>> drivers/isdn/hisax/isdnl2.c:120:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L2BLOCK, &l2->flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'clear_exception':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:177:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_ACK_PEND, &l2->flag);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:178:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_REJEXC, &l2->flag);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:179:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_OWN_BUSY, &l2->flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'start_t200':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:460:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_T200_RUN, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'restart_t200':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:467:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_T200_RUN, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'establishlink':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:510:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_PEND_REL, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_mdl_error_dm':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:538:3: note: in expansion of macro 'test_and_clear_bit'
      test_and_clear_bit(FLG_L3_INIT, &st->l2.flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_st8_mdl_error_dm':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:554:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_establish':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:638:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_discard_i_setl3':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:647:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
                                                ^
   drivers/isdn/hisax/isdnl2.c:648:2: note: in expansion of macro 'test_and_clear_bit'
     test_and_clear_bit(FLG_PEND_REL, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_l3_reestablish':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:658:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_pend_rel':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:674:2: note: in expansion of macro 'test_and_set_bit'
     test_and_set_bit(FLG_PEND_REL, &st->l2.flag);
     ^
   drivers/isdn/hisax/isdnl2.c: In function 'l2_reestablish':
   arch/m68k/include/asm/bitops.h:201:43: warning: value computed is not used [-Wunused-value]
         bset_mem_test_and_set_bit(nr, vaddr) : \
                                              ^
   drivers/isdn/hisax/isdnl2.c:844:3: note: in expansion of macro 'test_and_set_bit'
      test_and_set_bit(FLG_L3_INIT, &st->l2.flag);
      ^
   drivers/isdn/hisax/isdnl2.c: In function 'enquiry_response':
   arch/m68k/include/asm/bitops.h:251:45: warning: value computed is not used [-Wunused-value]
         bclr_mem_test_and_clear_bit(nr, vaddr) : \
..

vim +/test_and_set_bit +324 drivers/isdn/hardware/mISDN/hfcsusb.c

69f52adb Karsten Keil 2009-01-09  318  				_queue_data(&dch->dev.D,
69f52adb Karsten Keil 2009-01-09  319  					    PH_ACTIVATE_IND, MISDN_ID_ANY, 0,
69f52adb Karsten Keil 2009-01-09  320  					    NULL, GFP_ATOMIC);
69f52adb Karsten Keil 2009-01-09  321  			} else {
69f52adb Karsten Keil 2009-01-09  322  				hfcsusb_ph_command(hw,
69f52adb Karsten Keil 2009-01-09  323  						   HFC_L1_ACTIVATE_NT);
69f52adb Karsten Keil 2009-01-09 @324  				test_and_set_bit(FLG_L2_ACTIVATED,
69f52adb Karsten Keil 2009-01-09  325  						 &dch->Flags);
69f52adb Karsten Keil 2009-01-09  326  			}
69f52adb Karsten Keil 2009-01-09  327  		} else {
69f52adb Karsten Keil 2009-01-09  328  			hfcsusb_ph_command(hw, HFC_L1_ACTIVATE_TE);
69f52adb Karsten Keil 2009-01-09  329  			ret = l1_event(dch->l1, hh->prim);
69f52adb Karsten Keil 2009-01-09  330  		}
69f52adb Karsten Keil 2009-01-09  331  		break;
69f52adb Karsten Keil 2009-01-09  332  
69f52adb Karsten Keil 2009-01-09  333  	case PH_DEACTIVATE_REQ:
69f52adb Karsten Keil 2009-01-09  334  		if (debug & DBG_HFC_CALL_TRACE)
69f52adb Karsten Keil 2009-01-09  335  			printk(KERN_DEBUG "%s: %s: PH_DEACTIVATE_REQ\n",
69f52adb Karsten Keil 2009-01-09  336  			       hw->name, __func__);
69f52adb Karsten Keil 2009-01-09 @337  		test_and_clear_bit(FLG_L2_ACTIVATED, &dch->Flags);
69f52adb Karsten Keil 2009-01-09  338  
69f52adb Karsten Keil 2009-01-09  339  		if (hw->protocol == ISDN_P_NT_S0) {
69f52adb Karsten Keil 2009-01-09  340  			hfcsusb_ph_command(hw, HFC_L1_DEACTIVATE_NT);

:::::: The code at line 324 was first introduced by commit
:::::: 69f52adb2d534afc41fcc658f155e01f0b322f9e mISDN: Add HFC USB driver

:::::: TO: Karsten Keil <kkeil@suse.de>
:::::: CC: Karsten Keil <kkeil@suse.de>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 37476 bytes --]

  reply	other threads:[~2016-08-28 20:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-28 14:55 [PATCH v2] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions chengang
2016-08-28 14:55 ` chengang
2016-08-28 20:21 ` kbuild test robot [this message]
2016-08-28 20:21   ` kbuild test robot
2016-09-04  0:07 ` kbuild test robot
2016-09-04  0:07   ` kbuild test robot
2016-09-04  0:27 ` kbuild test robot
2016-09-04  0:27   ` kbuild test robot
2016-09-06 19:27   ` Andrew Morton
2016-09-06 19:27     ` Andrew Morton
2016-09-07  1:52     ` Fengguang Wu
2016-09-07  1:52       ` Fengguang Wu
2016-09-07 15:39       ` Chen Gang
2016-09-07 15:39         ` Chen Gang
2016-09-17  6:33         ` Chen Gang
2016-09-17  6:33           ` Chen Gang

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=201608290420.Q8M6EJJv%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=benh@kernel.crashing.org \
    --cc=brueckner@linux.vnet.ibm.com \
    --cc=catalin.marinas@arm.com \
    --cc=chengang@emindsoft.com.cn \
    --cc=chris@zankel.net \
    --cc=cmetcalf@mellanox.com \
    --cc=dalias@libc.org \
    --cc=davem@davemloft.net \
    --cc=deller@gmx.de \
    --cc=dhowells@redhat.com \
    --cc=egtvedt@samfundet.no \
    --cc=fenghua.yu@intel.com \
    --cc=gang.chen.5i5j@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=gi-oh.kim@profitbricks.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hillf.zj@alibaba-inc.com \
    --cc=hskinnemoen@gmail.com \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=ink@jurassic.park.msu.ru \
    --cc=james.hogan@imgtec.com \
    --cc=jcmvbkbc@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mattst88@gmail.com \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@suse.com \
    --cc=minchan@kernel.org \
    --cc=mingo@kernel.org \
    --cc=mpe@ellerman.id.au \
    --cc=noamc@ezchip.com \
    --cc=paulus@samba.org \
    --cc=peterz@infradead.org \
    --cc=ralf@linux-mips.org \
    --cc=realmz6@gmail.com \
    --cc=rientjes@google.com \
    --cc=rkuo@codeaurora.org \
    --cc=rth@twiddle.net \
    --cc=schwidefsky@de.ibm.com \
    --cc=tony.luck@intel.com \
    --cc=vbabka@suse.cz \
    --cc=vgupta@synopsys.com \
    --cc=will.deacon@arm.com \
    --cc=ysato@users.sourceforge.jp \
    /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.