tree:   https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git 
rtc-next
head:   ef062a45ec9c2b6d15ddd9f76f897219334c7cd2
commit: 44db35cb9bf31163d17bee2c9748e1570b81be26 [15/17] rtc: tps6586x: move to 
use request_irq by IRQF_NO_AUTOEN flag
config: arm64-randconfig-r022-20210416 (attached as .config)
compiler: aarch64-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/abelloni/linux.git/commit/?id=44db35cb9bf31163d17bee2c9748e1570b81be26
        git remote add abelloni 
https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git
        git fetch --no-tags abelloni rtc-next
        git checkout 44db35cb9bf31163d17bee2c9748e1570b81be26
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 
ARCH=arm64 

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

All errors (new ones prefixed by >>):

   drivers/rtc/rtc-tps6586x.c: In function 'tps6586x_rtc_probe':
>> drivers/rtc/rtc-tps6586x.c:273:20: error: 'IRQF_NO_AUTOEN' undeclared (first 
>> use in this function); did you mean 'IRQ_NOAUTOEN'?
     273 |     IRQF_ONESHOT | IRQF_NO_AUTOEN,
         |                    ^~~~~~~~~~~~~~
         |                    IRQ_NOAUTOEN
   drivers/rtc/rtc-tps6586x.c:273:20: note: each undeclared identifier is 
reported only once for each function it appears in


vim +273 drivers/rtc/rtc-tps6586x.c

   233  
   234  static int tps6586x_rtc_probe(struct platform_device *pdev)
   235  {
   236          struct device *tps_dev = to_tps6586x_dev(&pdev->dev);
   237          struct tps6586x_rtc *rtc;
   238          int ret;
   239  
   240          rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL);
   241          if (!rtc)
   242                  return -ENOMEM;
   243  
   244          rtc->dev = &pdev->dev;
   245          rtc->irq = platform_get_irq(pdev, 0);
   246  
   247          /* 1 kHz tick mode, enable tick counting */
   248          ret = tps6586x_update(tps_dev, RTC_CTRL,
   249                  RTC_ENABLE | OSC_SRC_SEL |
   250                  ((TPS6586X_RTC_CL_SEL_1_5PF << CL_SEL_POS) & 
CL_SEL_MASK),
   251                  RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK);
   252          if (ret < 0) {
   253                  dev_err(&pdev->dev, "unable to start counter\n");
   254                  return ret;
   255          }
   256  
   257          device_init_wakeup(&pdev->dev, 1);
   258  
   259          platform_set_drvdata(pdev, rtc);
   260          rtc->rtc = devm_rtc_allocate_device(&pdev->dev);
   261          if (IS_ERR(rtc->rtc)) {
   262                  ret = PTR_ERR(rtc->rtc);
   263                  goto fail_rtc_register;
   264          }
   265  
   266          rtc->rtc->ops = &tps6586x_rtc_ops;
   267          rtc->rtc->range_max = (1ULL << 30) - 1; /* 30-bit seconds */
   268          rtc->rtc->start_secs = mktime64(2009, 1, 1, 0, 0, 0);
   269          rtc->rtc->set_start_time = true;
   270  
   271          ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
   272                                  tps6586x_rtc_irq,
 > 273                                  IRQF_ONESHOT | IRQF_NO_AUTOEN,
   274                                  dev_name(&pdev->dev), rtc);
   275          if (ret < 0) {
   276                  dev_err(&pdev->dev, "request IRQ(%d) failed with ret 
%d\n",
   277                                  rtc->irq, ret);
   278                  goto fail_rtc_register;
   279          }
   280  
   281          ret = devm_rtc_register_device(rtc->rtc);
   282          if (ret)
   283                  goto fail_rtc_register;
   284  
   285          return 0;
   286  
   287  fail_rtc_register:
   288          tps6586x_update(tps_dev, RTC_CTRL, 0,
   289                  RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK);
   290          return ret;
   291  };
   292  

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

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups 
"rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rtc-linux/202104171059.09KHcyHi-lkp%40intel.com.

Attachment: .config.gz
Description: application/gzip

Reply via email to