All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] [RFC] ALSA: control - add generic LED API to sound core routines
Date: Mon, 08 Feb 2021 05:45:25 +0800	[thread overview]
Message-ID: <202102080543.pWOQy11w-lkp@intel.com> (raw)
In-Reply-To: <20210207201157.869972-1-perex@perex.cz>

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

Hi Jaroslav,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on sound/for-next]
[also build test WARNING on v5.11-rc6 next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jaroslav-Kysela/ALSA-control-add-generic-LED-API-to-sound-core-routines/20210208-041633
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: riscv-randconfig-m031-20210208 (attached as .config)
compiler: riscv32-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://github.com/0day-ci/linux/commit/75d22786400757726f7d9d3e9e115f8be85aca15
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Jaroslav-Kysela/ALSA-control-add-generic-LED-API-to-sound-core-routines/20210208-041633
        git checkout 75d22786400757726f7d9d3e9e115f8be85aca15
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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

                    from include/linux/interrupt.h:6,
                    from sound/core/control.c:8:
   include/asm-generic/io.h: In function 'ioport_map':
   arch/riscv/include/asm/page.h:34:46: error: 'UL' undeclared (first use in this function)
      34 | #define PAGE_OFFSET  _AC(CONFIG_PAGE_OFFSET, UL)
         |                                              ^~
   include/uapi/linux/const.h:20:23: note: in definition of macro '__AC'
      20 | #define __AC(X,Y) (X##Y)
         |                       ^
   arch/riscv/include/asm/page.h:34:22: note: in expansion of macro '_AC'
      34 | #define PAGE_OFFSET  _AC(CONFIG_PAGE_OFFSET, UL)
         |                      ^~~
   arch/riscv/include/asm/pgtable.h:26:27: note: in expansion of macro 'PAGE_OFFSET'
      26 | #define VMALLOC_START    (PAGE_OFFSET - VMALLOC_SIZE)
         |                           ^~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:41:24: note: in expansion of macro 'VMALLOC_START'
      41 | #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE)
         |                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:50:26: note: in expansion of macro 'VMEMMAP_START'
      50 | #define PCI_IO_END       VMEMMAP_START
         |                          ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:51:27: note: in expansion of macro 'PCI_IO_END'
      51 | #define PCI_IO_START     (PCI_IO_END - PCI_IO_SIZE)
         |                           ^~~~~~~~~~
   arch/riscv/include/asm/io.h:30:38: note: in expansion of macro 'PCI_IO_START'
      30 | #define PCI_IOBASE  ((void __iomem *)PCI_IO_START)
         |                                      ^~~~~~~~~~~~
   include/asm-generic/io.h:1005:44: note: in expansion of macro 'PCI_IOBASE'
    1005 |  return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                            ^~~~~~~~~~
   include/asm-generic/io.h: In function '__pci_ioport_unmap':
   arch/riscv/include/asm/page.h:34:46: error: 'UL' undeclared (first use in this function)
      34 | #define PAGE_OFFSET  _AC(CONFIG_PAGE_OFFSET, UL)
         |                                              ^~
   include/uapi/linux/const.h:20:23: note: in definition of macro '__AC'
      20 | #define __AC(X,Y) (X##Y)
         |                       ^
   arch/riscv/include/asm/page.h:34:22: note: in expansion of macro '_AC'
      34 | #define PAGE_OFFSET  _AC(CONFIG_PAGE_OFFSET, UL)
         |                      ^~~
   arch/riscv/include/asm/pgtable.h:26:27: note: in expansion of macro 'PAGE_OFFSET'
      26 | #define VMALLOC_START    (PAGE_OFFSET - VMALLOC_SIZE)
         |                           ^~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:41:24: note: in expansion of macro 'VMALLOC_START'
      41 | #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE)
         |                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:50:26: note: in expansion of macro 'VMEMMAP_START'
      50 | #define PCI_IO_END       VMEMMAP_START
         |                          ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:51:27: note: in expansion of macro 'PCI_IO_END'
      51 | #define PCI_IO_START     (PCI_IO_END - PCI_IO_SIZE)
         |                           ^~~~~~~~~~
   arch/riscv/include/asm/io.h:30:38: note: in expansion of macro 'PCI_IO_START'
      30 | #define PCI_IOBASE  ((void __iomem *)PCI_IO_START)
         |                                      ^~~~~~~~~~~~
   include/asm-generic/io.h:1010:32: note: in expansion of macro 'PCI_IOBASE'
    1010 |  uintptr_t start = (uintptr_t) PCI_IOBASE;
         |                                ^~~~~~~~~~
   In file included from include/vdso/const.h:5,
                    from include/linux/const.h:4,
                    from include/linux/bits.h:5,
                    from include/linux/bitops.h:6,
                    from include/linux/kernel.h:11,
                    from include/linux/interrupt.h:6,
                    from sound/core/control.c:8:
   arch/riscv/include/asm/uaccess.h: In function '__access_ok':
   arch/riscv/include/asm/page.h:34:46: error: 'UL' undeclared (first use in this function)
      34 | #define PAGE_OFFSET  _AC(CONFIG_PAGE_OFFSET, UL)
         |                                              ^~
   include/uapi/linux/const.h:20:23: note: in definition of macro '__AC'
      20 | #define __AC(X,Y) (X##Y)
         |                       ^
   arch/riscv/include/asm/page.h:34:22: note: in expansion of macro '_AC'
      34 | #define PAGE_OFFSET  _AC(CONFIG_PAGE_OFFSET, UL)
         |                      ^~~
   arch/riscv/include/asm/pgtable.h:26:27: note: in expansion of macro 'PAGE_OFFSET'
      26 | #define VMALLOC_START    (PAGE_OFFSET - VMALLOC_SIZE)
         |                           ^~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:41:24: note: in expansion of macro 'VMALLOC_START'
      41 | #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE)
         |                        ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:50:26: note: in expansion of macro 'VMEMMAP_START'
      50 | #define PCI_IO_END       VMEMMAP_START
         |                          ^~~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:51:27: note: in expansion of macro 'PCI_IO_END'
      51 | #define PCI_IO_START     (PCI_IO_END - PCI_IO_SIZE)
         |                           ^~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:53:26: note: in expansion of macro 'PCI_IO_START'
      53 | #define FIXADDR_TOP      PCI_IO_START
         |                          ^~~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:59:27: note: in expansion of macro 'FIXADDR_TOP'
      59 | #define FIXADDR_START    (FIXADDR_TOP - FIXADDR_SIZE)
         |                           ^~~~~~~~~~~
   arch/riscv/include/asm/pgtable.h:451:19: note: in expansion of macro 'FIXADDR_START'
     451 | #define TASK_SIZE FIXADDR_START
         |                   ^~~~~~~~~~~~~
   arch/riscv/include/asm/uaccess.h:56:17: note: in expansion of macro 'TASK_SIZE'
      56 |  return size <= TASK_SIZE && addr <= TASK_SIZE - size;
         |                 ^~~~~~~~~
   sound/core/control.c: At top level:
>> sound/core/control.c:194:6: warning: no previous prototype for 'snd_ctl_notify_one' [-Wmissing-prototypes]
     194 | void snd_ctl_notify_one(struct snd_card *card, unsigned int mask,
         |      ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/uaccess.h:11,
                    from include/linux/sched/task.h:11,
                    from include/linux/sched/signal.h:9,
                    from include/linux/rcuwait.h:6,
                    from include/linux/percpu-rwsem.h:7,
                    from include/linux/fs.h:33,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:703,
                    from sound/core/control.c:13:
   arch/riscv/include/asm/uaccess.h: In function '__access_ok':
   arch/riscv/include/asm/uaccess.h:57:1: error: control reaches end of non-void function [-Werror=return-type]
      57 | }
         | ^
   cc1: some warnings being treated as errors


vim +/snd_ctl_notify_one +194 sound/core/control.c

   183	
   184	/**
   185	 * snd_ctl_notify_one - Send notification to user-space for a control change
   186	 * @card: the card to send notification
   187	 * @mask: the event mask, SNDRV_CTL_EVENT_*
   188	 * @kctl: the pointer with the control instance
   189	 * @ioff: the additional offset to the control index
   190	 *
   191	 * This function calls snd_ctl_notify() and does additional jobs
   192	 * like LED state changes.
   193	 */
 > 194	void snd_ctl_notify_one(struct snd_card *card, unsigned int mask,
   195				struct snd_kcontrol *kctl, unsigned int ioff)
   196	{
   197		struct snd_ctl_elem_id id = kctl->id;
   198	
   199		id.index += ioff;
   200		id.numid += ioff;
   201		snd_ctl_led_notify(card, mask, kctl, ioff);
   202		snd_ctl_notify(card, mask, &id);
   203	}
   204	EXPORT_SYMBOL(snd_ctl_notify_one);
   205	

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

  parent reply	other threads:[~2021-02-07 21:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-07 20:11 [PATCH] [RFC] ALSA: control - add generic LED API to sound core routines Jaroslav Kysela
2021-02-07 20:52 ` Hans de Goede
2021-02-08 11:41   ` Jaroslav Kysela
2021-02-08 14:08     ` Yuan, Perry
2021-02-07 21:45 ` kernel test robot [this message]
2021-02-08 15:11 ` Takashi Iwai
2021-02-08 16:17   ` Jaroslav Kysela
2021-02-08 16:33     ` Takashi Iwai
2021-02-08 22:34       ` Takashi Sakamoto
2021-02-10 11:26         ` Takashi Iwai
2021-02-10 12:06         ` Jaroslav Kysela

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=202102080543.pWOQy11w-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.