All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:queue/5.10 53/276] sound/usb/quirks-table.h:3705:42: error: 'const struct audioformat' has no member named 'ep_idx'
@ 2023-05-07 12:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-07 12:40 UTC (permalink / raw)
  To: Geraldo Nascimento
  Cc: oe-kbuild-all, Sasha Levin, Takashi Iwai, Greg Kroah-Hartman

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.10
head:   f8164a532fe55e12af2fa67df10ec123b486288f
commit: df32d31b64db81cd5c50edb12b6f165757f0ade7 [53/276] ALSA: usb-audio: Add quirk for Pioneer DDJ-800
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230507/202305072033.4PR7b9pO-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.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=df32d31b64db81cd5c50edb12b6f165757f0ade7
        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 queue/5.10
        git checkout df32d31b64db81cd5c50edb12b6f165757f0ade7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash M=sound/usb

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305072033.4PR7b9pO-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from sound/usb/card.c:1090:
>> sound/usb/quirks-table.h:3705:42: error: 'const struct audioformat' has no member named 'ep_idx'
    3705 |                                         .ep_idx = 1,
         |                                          ^~~~~~
   In file included from include/linux/usb/ch9.h:37,
                    from include/linux/usb.h:6,
                    from sound/usb/card.c:29:
   include/uapi/linux/usb/ch9.h:434:41: warning: initialized field overwritten [-Woverride-init]
     434 | #define USB_ENDPOINT_XFER_ISOC          1
         |                                         ^
   sound/usb/quirks-table.h:3706:52: note: in expansion of macro 'USB_ENDPOINT_XFER_ISOC'
    3706 |                                         .ep_attr = USB_ENDPOINT_XFER_ISOC|
         |                                                    ^~~~~~~~~~~~~~~~~~~~~~
   include/uapi/linux/usb/ch9.h:434:41: note: (near initialization for '(anonymous).ep_attr')
     434 | #define USB_ENDPOINT_XFER_ISOC          1
         |                                         ^
   sound/usb/quirks-table.h:3706:52: note: in expansion of macro 'USB_ENDPOINT_XFER_ISOC'
    3706 |                                         .ep_attr = USB_ENDPOINT_XFER_ISOC|
         |                                                    ^~~~~~~~~~~~~~~~~~~~~~


vim +3705 sound/usb/quirks-table.h

  3664	
  3665	{
  3666		/*
  3667		 * PIONEER DJ DDJ-800
  3668		 * PCM is 6 channels out, 6 channels in @ 44.1 fixed
  3669		 * The Feedback for the output is the input
  3670		 */
  3671		USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0029),
  3672			.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3673			.ifnum = QUIRK_ANY_INTERFACE,
  3674			.type = QUIRK_COMPOSITE,
  3675			.data = (const struct snd_usb_audio_quirk[]) {
  3676				{
  3677					.ifnum = 0,
  3678					.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3679					.data = &(const struct audioformat) {
  3680						.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3681						.channels = 6,
  3682						.iface = 0,
  3683						.altsetting = 1,
  3684						.altset_idx = 1,
  3685						.endpoint = 0x01,
  3686						.ep_attr = USB_ENDPOINT_XFER_ISOC|
  3687							USB_ENDPOINT_SYNC_ASYNC,
  3688						.rates = SNDRV_PCM_RATE_44100,
  3689						.rate_min = 44100,
  3690						.rate_max = 44100,
  3691						.nr_rates = 1,
  3692						.rate_table = (unsigned int[]) { 44100 }
  3693					}
  3694				},
  3695				{
  3696					.ifnum = 0,
  3697					.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3698					.data = &(const struct audioformat) {
  3699						.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3700						.channels = 6,
  3701						.iface = 0,
  3702						.altsetting = 1,
  3703						.altset_idx = 1,
  3704						.endpoint = 0x82,
> 3705						.ep_idx = 1,
  3706						.ep_attr = USB_ENDPOINT_XFER_ISOC|
  3707							USB_ENDPOINT_SYNC_ASYNC|
  3708						USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3709						.rates = SNDRV_PCM_RATE_44100,
  3710						.rate_min = 44100,
  3711						.rate_max = 44100,
  3712						.nr_rates = 1,
  3713						.rate_table = (unsigned int[]) { 44100 }
  3714					}
  3715				},
  3716				{
  3717					.ifnum = -1
  3718				}
  3719			}
  3720		}
  3721	},
  3722	

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

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

only message in thread, other threads:[~2023-05-07 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-07 12:40 [linux-stable-rc:queue/5.10 53/276] sound/usb/quirks-table.h:3705:42: error: 'const struct audioformat' has no member named 'ep_idx' 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.