From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63E49C00144 for ; Sat, 30 Jul 2022 00:20:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231562AbiG3AUf (ORCPT ); Fri, 29 Jul 2022 20:20:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbiG3AUe (ORCPT ); Fri, 29 Jul 2022 20:20:34 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F3019291 for ; Fri, 29 Jul 2022 17:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659140433; x=1690676433; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WXjO7o7rBgFi5ZrQro+PfC6phuM1TO7iPk05avOV+/I=; b=WxXuHP9Nv92KtMCQ5pxK3kzX/CwIBNRyWu65y0y80oxCWyleIuCIiD+9 X8XUgX4uN/MQPGGtm176jJujr/1fhswR2R1EA0QmLk4FzvDVY28TXhoLK Lffncf9QM9mT/1qjxNqQ1RqoGGEOldtV73HIFUH0T/YMn/DG1sZGEGfTA +MLJdQe+kWN/1r5qigotD/ydPKDg9t+PpDy96QoQyWuBsNlKOmnIJRDm3 7Q4gfcXdJtIZTUbF8MEGHUKP48e3+sdR2R0DdisXvB1Z9yEWznxxsy7ZV e0NsnK3i6bRDDwfLGO1gKpN65fCg6H1GkOijY8HrC1JjQwHH4o4U447Un Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="271915319" X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="271915319" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 17:20:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="551913500" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 29 Jul 2022 17:20:29 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHaDU-000CD3-2W; Sat, 30 Jul 2022 00:20:28 +0000 Date: Sat, 30 Jul 2022 08:20:17 +0800 From: kernel test robot To: Zhu Ning , alsa-devel@alsa-project.org Cc: kbuild-all@lists.01.org, pierre-louis.bossart@linux.intel.com, tiwai@suse.com, broonie@kernel.org, devicetree@vger.kernel.org, robh@kernel.org, Zhu Ning , David Yang Subject: Re: [PATCH v4 1/2] ASoC: codecs: add support for ES8326 Message-ID: <202207300809.yYpFMTmt-lkp@intel.com> References: <20220729090857.579785-1-zhuning0077@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220729090857.579785-1-zhuning0077@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Zhu, Thank you for the patch! Yet something to improve: [auto build test ERROR on broonie-sound/for-next] [also build test ERROR on tiwai-sound/for-next linus/master v5.19-rc8 next-20220728] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Zhu-Ning/ASoC-codecs-add-support-for-ES8326/20220729-171050 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: parisc-randconfig-s042-20220729 (https://download.01.org/0day-ci/archive/20220730/202207300809.yYpFMTmt-lkp@intel.com/config) compiler: hppa64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/fa066f18e36d4d134a5e94a872c911335b148576 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zhu-Ning/ASoC-codecs-add-support-for-ES8326/20220729-171050 git checkout fa066f18e36d4d134a5e94a872c911335b148576 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc64 SHELL=/bin/bash sound/soc/codecs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/container_of.h:5, from include/linux/kernel.h:21, from include/linux/clk.h:13, from sound/soc/codecs/es8326.c:9: sound/soc/codecs/es8326.c: In function 'es8326_jack_button_handler': >> include/linux/container_of.h:19:54: error: 'struct es8326_priv' has no member named 'button_press_work' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:19:23: note: in expansion of macro '__same_type' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ sound/soc/codecs/es8326.c:533:17: note: in expansion of macro 'container_of' 533 | container_of(work, struct es8326_priv, button_press_work.work); | ^~~~~~~~~~~~ include/linux/compiler_types.h:293:27: error: expression in static assertion is not an integer 293 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:19:9: note: in expansion of macro 'static_assert' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:19:23: note: in expansion of macro '__same_type' 19 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ sound/soc/codecs/es8326.c:533:17: note: in expansion of macro 'container_of' 533 | container_of(work, struct es8326_priv, button_press_work.work); | ^~~~~~~~~~~~ In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/kasan-checks.h:5, from include/asm-generic/rwonce.h:26, from ./arch/parisc/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:248, from include/linux/err.h:5, from include/linux/clk.h:12: >> include/linux/stddef.h:16:33: error: 'struct es8326_priv' has no member named 'button_press_work' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/container_of.h:22:28: note: in expansion of macro 'offsetof' 22 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ sound/soc/codecs/es8326.c:533:17: note: in expansion of macro 'container_of' 533 | container_of(work, struct es8326_priv, button_press_work.work); | ^~~~~~~~~~~~ >> sound/soc/codecs/es8326.c:543:46: error: 'ES8326_HP_DECTECT_FB' undeclared (first use in this function); did you mean 'ES8326_HP_DETECT_FB'? 543 | iface = snd_soc_component_read(comp, ES8326_HP_DECTECT_FB); | ^~~~~~~~~~~~~~~~~~~~ | ES8326_HP_DETECT_FB sound/soc/codecs/es8326.c:543:46: note: each undeclared identifier is reported only once for each function it appears in >> sound/soc/codecs/es8326.c:574:54: error: 'struct es8326_priv' has no member named 'button_press_work' 574 | queue_delayed_work(system_wq, &es8326->button_press_work, | ^~ sound/soc/codecs/es8326.c:579:54: error: 'struct es8326_priv' has no member named 'button_press_work' 579 | queue_delayed_work(system_wq, &es8326->button_press_work, | ^~ sound/soc/codecs/es8326.c: In function 'es8326_jack_detect_handler': sound/soc/codecs/es8326.c:602:46: error: 'ES8326_HP_DECTECT_FB' undeclared (first use in this function); did you mean 'ES8326_HP_DETECT_FB'? 602 | iface = snd_soc_component_read(comp, ES8326_HP_DECTECT_FB); | ^~~~~~~~~~~~~~~~~~~~ | ES8326_HP_DETECT_FB sound/soc/codecs/es8326.c:615:62: error: 'struct es8326_priv' has no member named 'button_press_work' 615 | queue_delayed_work(system_wq, &es8326->button_press_work, 10); | ^~ sound/soc/codecs/es8326.c: In function 'es8326_resume': >> sound/soc/codecs/es8326.c:681:14: error: 'reg' undeclared (first use in this function) 681 | if ((reg & ES8326_VERSION_B) == 1) { | ^~~ sound/soc/codecs/es8326.c: In function 'es8326_probe': >> sound/soc/codecs/es8326.c:740:41: error: 'ES8326_INT_SRC_PIN9' undeclared (first use in this function); did you mean 'ES8326_HP_DET_SRC_PIN9'? 740 | es8326->interrupt_src = ES8326_INT_SRC_PIN9; | ^~~~~~~~~~~~~~~~~~~ | ES8326_HP_DET_SRC_PIN9 sound/soc/codecs/es8326.c: At top level: sound/soc/codecs/es8326.c:530:13: warning: 'es8326_jack_button_handler' defined but not used [-Wunused-function] 530 | static void es8326_jack_button_handler(struct work_struct *work) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/codecs/es8326.c:315:42: warning: 'es8326_constraints' defined but not used [-Wunused-variable] 315 | static struct snd_pcm_hw_constraint_list es8326_constraints = { | ^~~~~~~~~~~~~~~~~~ vim +19 include/linux/container_of.h d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 9 d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 10 /** d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 11 * container_of - cast a member of a structure out to the containing structure d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 12 * @ptr: the pointer to the member. d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 13 * @type: the type of the container struct this is embedded in. d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 14 * @member: the name of the member within the struct. d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 15 * d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 16 */ d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 17 #define container_of(ptr, type, member) ({ \ d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 18 void *__mptr = (void *)(ptr); \ e1edc277e6f6dfb Rasmus Villemoes 2021-11-08 @19 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ e1edc277e6f6dfb Rasmus Villemoes 2021-11-08 20 __same_type(*(ptr), void), \ d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 21 "pointer type mismatch in container_of()"); \ d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 22 ((type *)(__mptr - offsetof(type, member))); }) d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 23 -- 0-DAY CI Kernel Test Service https://01.org/lkp