Received: by 10.192.165.148 with SMTP id m20csp2731472imm; Sun, 22 Apr 2018 13:57:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48d6CqTxhuIb285wxbih7zKojOrZfq8hrmlrt0cZPLVMxve6N6kMOLlJulFRCdlss0fBzty X-Received: by 10.167.133.12 with SMTP id v12mr6678976pfn.90.1524430633597; Sun, 22 Apr 2018 13:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524430633; cv=none; d=google.com; s=arc-20160816; b=jTnqHaNtXabCGmnY7du5/KS4B1PHlngo79qXb8YncIPnb9vnruIPQM7MJrEGBKLTGo NjPcrYe5TPa0nFy5mTsoxOWeQmZLKKBoD2+svv/wV1yK5fh1zWzxPiP0deKQQlUg+wAv zvMdNn3AhlnuyLPxN5HaDx51d97ipZpEFkgaT5+u/skFM1vwPwgH4XQwNc0MazG30Ddh MAlCoIHtIChAaGUY2fKfX7c+2B6nsMrimA9HYag7r8cvA/SB5QHcatJ3/jeNei/HaSF1 xqQCCtAdeNKThpJmYDs8+uVOjf5mDHQZTy6OcQwVHXrA3jwAi1p4aYT5Q3ykJ3TWZYbR PBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=arGJX3CAXlDZnpGUNPN24QuRlbVreYhw5SVBiN7uUDo=; b=shbGIV3DfMcOG80ydMU1Gcq2+PM6d3sn9ND5SUFocl2k3qC91mPBGKhyT/Z+ZQ1J8j 4vJOV7xl3N2iZ+iwvz3vaCZvGirUuSJaP5fcRjeYrRuXgzWl5eNmTsqolTTfGVBO0Ejb fjJ7jNBINl4bywXf4lm7S051chN0V67+d/oW8Q+82zh7zpW3dAciK/WYqVz3Hz+gSNzJ hxX7+w3wo+ba93lqGgmSzOn+dGoN21Ez1gBXDi9GLH/pMYXaATK6xNpTF56nYlExEY49 3/kUGHz1nn7fmGQoqy/JCE68NQXlZCfSEtEQsyayqdRxIeEiVd9f7TGeVo5wsOj9eliG PrxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si10587210plz.364.2018.04.22.13.56.59; Sun, 22 Apr 2018 13:57:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753635AbeDVUzs (ORCPT + 99 others); Sun, 22 Apr 2018 16:55:48 -0400 Received: from mga07.intel.com ([134.134.136.100]:49961 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537AbeDVUzo (ORCPT ); Sun, 22 Apr 2018 16:55:44 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2018 13:55:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,314,1520924400"; d="scan'208";a="43798639" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by FMSMGA003.fm.intel.com with ESMTP; 22 Apr 2018 13:55:42 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fAM1N-000Y02-Id; Mon, 23 Apr 2018 04:55:41 +0800 Date: Mon, 23 Apr 2018 04:55:12 +0800 From: kbuild test robot To: Jorge Sanjuan Cc: kbuild-all@01.org, tiwai@suse.com, alsa-devel@alsa-project.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Jorge Sanjuan Subject: Re: [PATCH 4/4] ALSA: usb-audio: UAC3 Add support for connector insertion. Message-ID: <201804230459.2dXlPwHY%fengguang.wu@intel.com> References: <20180420170327.31569-5-jorge.sanjuan@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420170327.31569-5-jorge.sanjuan@codethink.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jorge, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on sound/for-next] [also build test WARNING on v4.17-rc1 next-20180420] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jorge-Sanjuan/ALSA-usb-UAC3-new-features/20180423-015726 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) sound/usb/mixer.c:899:59: sparse: cast to restricted __le16 sound/usb/mixer.c:1923:33: sparse: cast to restricted __le16 >> sound/usb/mixer.c:1975:24: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [unsigned] bmctls @@ got restrunsigned int [unsigned] bmctls @@ sound/usb/mixer.c:1975:24: expected unsigned int [unsigned] bmctls sound/usb/mixer.c:1975:24: got restricted __le16 [usertype] bmControls sound/usb/mixer.c:1981:24: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [unsigned] bmctls @@ got restrunsigned int [unsigned] bmctls @@ sound/usb/mixer.c:1981:24: expected unsigned int [unsigned] bmctls sound/usb/mixer.c:1981:24: got restricted __le32 [usertype] bmControls sound/usb/mixer.c:2008:33: sparse: cast to restricted __le16 sound/usb/mixer.c:2697:62: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [unsigned] [usertype] bmControls @@ got ed int [unsigned] [usertype] bmControls @@ sound/usb/mixer.c:2697:62: expected unsigned int [unsigned] [usertype] bmControls sound/usb/mixer.c:2697:62: got restricted __le16 [usertype] bmControls sound/usb/mixer.c:2724:62: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [unsigned] [usertype] bmControls @@ got ed int [unsigned] [usertype] bmControls @@ sound/usb/mixer.c:2724:62: expected unsigned int [unsigned] [usertype] bmControls sound/usb/mixer.c:2724:62: got restricted __le32 [usertype] bmControls include/linux/usb.h:1676:28: sparse: expression using sizeof(void) include/linux/usb.h:1676:28: sparse: expression using sizeof(void) include/linux/usb.h:1676:28: sparse: expression using sizeof(void) include/linux/usb.h:1676:28: sparse: expression using sizeof(void) include/linux/usb.h:1676:28: sparse: expression using sizeof(void) include/linux/usb.h:1676:28: sparse: expression using sizeof(void) include/linux/usb.h:1676:28: sparse: expression using sizeof(void) vim +1975 sound/usb/mixer.c 1964 1965 static int parse_audio_input_terminal(struct mixer_build *state, int unitid, 1966 void *raw_desc) 1967 { 1968 struct usb_audio_term iterm; 1969 unsigned int control, bmctls, term_id; 1970 1971 if (state->mixer->protocol == UAC_VERSION_2) { 1972 struct uac2_input_terminal_descriptor *d_v2 = raw_desc; 1973 control = UAC2_TE_CONNECTOR; 1974 term_id = d_v2->bTerminalID; > 1975 bmctls = d_v2->bmControls; 1976 } 1977 else if (state->mixer->protocol == UAC_VERSION_3) { 1978 struct uac3_input_terminal_descriptor *d_v3 = raw_desc; 1979 control = UAC3_TE_INSERTION; 1980 term_id = d_v3->bTerminalID; 1981 bmctls = d_v3->bmControls; 1982 } 1983 else /* UAC1. No Insertion control */ 1984 return 0; 1985 1986 check_input_term(state, term_id, &iterm); 1987 1988 /* Check for jack detection. */ 1989 if (uac_v2v3_control_is_readable(bmctls, control)) 1990 build_connector_control(state, &iterm, true); 1991 1992 return 0; 1993 } 1994 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation