All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-4.4.y 8364/9999] drivers/clocksource/asm9260_timer.c:201:10: warning: 'return' with a value, in function returning void
@ 2021-02-20  3:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-20  3:22 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head:   95a3867e897abd7811196123f81a119a75aba863
commit: d0eba4f1059ca1b99ad2e8eded69d7b3bb0e8116 [8364/9999] clocksource/drivers/asm9260: Add a check for of_clk_get
config: arm-randconfig-r014-20210220 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.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/stable/linux-stable-rc.git/commit/?id=d0eba4f1059ca1b99ad2e8eded69d7b3bb0e8116
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-4.4.y
        git checkout d0eba4f1059ca1b99ad2e8eded69d7b3bb0e8116
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/cpumask.h:11:0,
                    from include/linux/interrupt.h:9,
                    from drivers/clocksource/asm9260_timer.c:12:
   include/linux/bitmap.h: In function 'bitmap_empty':
   include/linux/bitmap.h:292:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     return find_first_bit(src, nbits) == nbits;
                                       ^~
   include/linux/bitmap.h: In function 'bitmap_full':
   include/linux/bitmap.h:300:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     return find_first_zero_bit(src, nbits) == nbits;
                                            ^~
   drivers/clocksource/asm9260_timer.c: In function 'asm9260_timer_init':
>> drivers/clocksource/asm9260_timer.c:201:10: warning: 'return' with a value, in function returning void
      return PTR_ERR(clk);
             ^~~~~~~~~~~~
   drivers/clocksource/asm9260_timer.c:187:20: note: declared here
    static void __init asm9260_timer_init(struct device_node *np)
                       ^~~~~~~~~~~~~~~~~~


vim +/return +201 drivers/clocksource/asm9260_timer.c

   181	
   182	/*
   183	 * ---------------------------------------------------------------------------
   184	 * Timer initialization
   185	 * ---------------------------------------------------------------------------
   186	 */
   187	static void __init asm9260_timer_init(struct device_node *np)
   188	{
   189		int irq;
   190		struct clk *clk;
   191		int ret;
   192		unsigned long rate;
   193	
   194		priv.base = of_io_request_and_map(np, 0, np->name);
   195		if (IS_ERR(priv.base))
   196			panic("%s: unable to map resource", np->name);
   197	
   198		clk = of_clk_get(np, 0);
   199		if (IS_ERR(clk)) {
   200			pr_err("Failed to get clk!\n");
 > 201			return PTR_ERR(clk);

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-20  3:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20  3:22 [linux-stable-rc:linux-4.4.y 8364/9999] drivers/clocksource/asm9260_timer.c:201:10: warning: 'return' with a value, in function returning void 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.