All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Hongchen Zhang <zhanghongchen@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 19206/30000] drivers/gpu/drm/inspur/inspur_drm_drv.c:30:13: warning: no previous prototype for 'inspur_drm_interrupt'
Date: Sat, 14 Sep 2024 08:21:10 +0800	[thread overview]
Message-ID: <202409140804.IiV0APec-lkp@intel.com> (raw)

Hi Hongchen,

FYI, the error/warning still remains.

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   5a1d9701155c6908c76c68951170f10279685143
commit: b9d65551a3adfa87a7c5d33391187ee60a1b501d [19206/30000] drm: add inspur drm driver support
config: arm64-randconfig-002-20240914 (https://download.01.org/0day-ci/archive/20240914/202409140804.IiV0APec-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409140804.IiV0APec-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409140804.IiV0APec-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/inspur/inspur_drm_drv.c:30:13: warning: no previous prototype for 'inspur_drm_interrupt' [-Wmissing-prototypes]
      30 | irqreturn_t inspur_drm_interrupt(int irq, void *arg)
         |             ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/inspur/inspur_drm_drv.c: In function 'inspur_pci_probe':
   drivers/gpu/drm/inspur/inspur_drm_drv.c:379:36: warning: unused variable 'priv' [-Wunused-variable]
     379 |         struct inspur_drm_private *priv;
         |                                    ^~~~


vim +/inspur_drm_interrupt +30 drivers/gpu/drm/inspur/inspur_drm_drv.c

    27	
    28	
    29	DEFINE_DRM_GEM_FOPS(inspur_fops);
  > 30	irqreturn_t inspur_drm_interrupt(int irq, void *arg)
    31	{
    32		struct drm_device *dev = (struct drm_device *)arg;
    33		struct inspur_drm_private *priv =
    34			(struct inspur_drm_private *)dev->dev_private;
    35		u32 status;
    36	
    37		status = readl(priv->mmio + INSPUR_RAW_INTERRUPT);
    38	
    39		if (status & INSPUR_RAW_INTERRUPT_VBLANK(1)) {
    40			writel(INSPUR_RAW_INTERRUPT_VBLANK(1),
    41			       priv->mmio + INSPUR_RAW_INTERRUPT);
    42			drm_handle_vblank(dev, 0);
    43		}
    44	
    45		return IRQ_HANDLED;
    46	}
    47	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-09-14  0:21 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=202409140804.IiV0APec-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=zhanghongchen@loongson.cn \
    /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.