All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ti:ti-rt-linux-5.10.y 10089/10213] drivers/clocksource/timer-ti-dm-systimer.c:649:46: warning: passing argument 1 of 'irq_to_desc' makes integer from pointer without a cast
Date: Tue, 07 Dec 2021 17:29:31 +0800	[thread overview]
Message-ID: <202112071745.uRPiWx19-lkp@intel.com> (raw)

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

Hi Kevin,

FYI, the error/warning still remains.

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head:   541ec9a6995c3dd881d6f0b63cc714a08ded457d
commit: 6e260fc2770c157f81704b403e6e3d40e0e10f97 [10089/10213] clocksource/drivers/timer-ti-dm: ack pending interrupt during suspend
config: arm-omap2plus_defconfig (https://download.01.org/0day-ci/archive/20211207/202112071745.uRPiWx19-lkp(a)intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-rt-linux-5.10.y
        git checkout 6e260fc2770c157f81704b403e6e3d40e0e10f97
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/clocksource/

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 >>):

   drivers/clocksource/timer-ti-dm-systimer.c: In function 'dmtimer_clockevent_init':
>> drivers/clocksource/timer-ti-dm-systimer.c:649:46: warning: passing argument 1 of 'irq_to_desc' makes integer from pointer without a cast [-Wint-conversion]
     649 |                 clkev_irq_desc = irq_to_desc(&clkevt->dev.irq);
         |                                              ^~~~~~~~~~~~~~~~
         |                                              |
         |                                              int *
   In file included from include/linux/interrupt.h:10,
                    from drivers/clocksource/timer-ti-dm-systimer.c:6:
   include/linux/irqnr.h:9:50: note: expected 'unsigned int' but argument is of type 'int *'
       9 | extern struct irq_desc *irq_to_desc(unsigned int irq);
         |                                     ~~~~~~~~~~~~~^~~


vim +/irq_to_desc +649 drivers/clocksource/timer-ti-dm-systimer.c

   622	
   623	static int __init dmtimer_clockevent_init(struct device_node *np)
   624	{
   625		struct dmtimer_clockevent *clkevt;
   626		int error;
   627	
   628		clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL);
   629		if (!clkevt)
   630			return -ENOMEM;
   631	
   632		error = dmtimer_clkevt_init_common(clkevt, np,
   633						   CLOCK_EVT_FEAT_PERIODIC |
   634						   CLOCK_EVT_FEAT_ONESHOT,
   635						   cpu_possible_mask, "clockevent",
   636						   300);
   637		if (error)
   638			goto err_out_free;
   639	
   640		clockevents_config_and_register(&clkevt->dev, clkevt->t.rate,
   641						3, /* Timer internal resync latency */
   642						0xffffffff);
   643	
   644		if (of_machine_is_compatible("ti,am33xx") ||
   645		    of_machine_is_compatible("ti,am43")) {
   646			clkevt->dev.suspend = omap_clockevent_idle;
   647			clkevt->dev.resume = omap_clockevent_unidle;
   648	
 > 649			clkev_irq_desc = irq_to_desc(&clkevt->dev.irq);
   650			if (clkev_irq_desc)
   651				clkev_irq_chip = irq_desc_get_chip(clkev_irq_desc);
   652		}
   653	
   654		return 0;
   655	
   656	err_out_free:
   657		kfree(clkevt);
   658	
   659		return error;
   660	}
   661	

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

                 reply	other threads:[~2021-12-07  9:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202112071745.uRPiWx19-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.