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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6FEAC433F5 for ; Sun, 1 May 2022 03:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=//btkzd0mCQsdXOcNrmZfBRCweMuJvkHIk3w5sXQUW0=; b=z9Iw6i6OPmO7v7 JcofFo7cRsQ67T/O2Fk1c/jhSanh0DFixXztd0fXJQVBwZs3uZ790IBvULn0Q5MR7icKAqn7WoTIJ cXYDXqDsPzeJyF6R9lFLpSVMZpK5ikcEk+YKUurVmlajVSDS6SE0BxLDPn1rRKeFA1iO0dDGgHlnl 77uHN4NUZoHJt9sb5ch5s3ot4iN2i0SHJrK4pePLTDgUNV9gneGjs3mlYnKfOZ9Q5x1TtoErCSQ9I uID9Y1w2XceJbKWBIxCnxVWWNt3QyZVULa4MsBlzHGpwJEGhNoyMEP9nlecQJLjiDVJwPEclrCSbk qIzYdWbofcL3lU5DKf8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nl0Gl-00FVWX-1m; Sun, 01 May 2022 03:29:11 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nl0Gh-00FVWC-6d for linux-arm-kernel@lists.infradead.org; Sun, 01 May 2022 03:29:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651375747; x=1682911747; h=date:from:to:cc:subject:message-id:mime-version; bh=ttXXooB6SK108p4WP48CF6/EIKQ4uedMZ1ncb46O3K8=; b=d7JZ27QXTAaDss5lO8tgit7ZDLvdRkz+vQGinqI7iy5/ZLznVCPHyRWS V2Wg1zQk8laUfuU0dPLKvdt9hsDuhzZs/fvuAMQ4z4Hz5WuyArUwLMcaT 6+5ktZrAE4VrOkPjvN61jn0mE0QujT25PCwkSs4Nx7rJtM521HmIQv96U nQ9lCvFpL8U/Z6pNgVG5inUEeKRtGMnr+XQ3I3lo+ntvlmcEgMRVtZlDL ILdZOlhGVF7dq1nsPGptU7dGid/8yMo2f/zKnWhm3V73G9X95ZdwXdmPZ byPsDuvEfOX1VPuQOool9eWmQIu8bfu3rxlIyC3CQX93kd41pQ22u4WS6 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10333"; a="267115443" X-IronPort-AV: E=Sophos;i="5.91,189,1647327600"; d="scan'208";a="267115443" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Apr 2022 20:29:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,189,1647327600"; d="scan'208";a="732824108" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 30 Apr 2022 20:29:01 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nl0Gb-0008M7-6r; Sun, 01 May 2022 03:29:01 +0000 Date: Sun, 1 May 2022 11:28:54 +0800 From: kernel test robot To: Allen Pais Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [linusw-nomadik:ux500-charging-v5.18-rc1 14/14] include/linux/container_of.h:19:54: error: invalid use of undefined type 'struct at_xdmac_work' Message-ID: <202205011120.Td3kUVpn-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220430_202907_334225_C18CFE12 X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-charging-v5.18-rc1 head: 1e198cb5bdd34fd231f456c23fe57d35d71fdeda commit: 1e198cb5bdd34fd231f456c23fe57d35d71fdeda [14/14] drivers/dma/*: replace tasklets with workqueue config: arm-sama5_defconfig (https://download.01.org/0day-ci/archive/20220501/202205011120.Td3kUVpn-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.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://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=1e198cb5bdd34fd231f456c23fe57d35d71fdeda git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git git fetch --no-tags linusw-nomadik ux500-charging-v5.18-rc1 git checkout 1e198cb5bdd34fd231f456c23fe57d35d71fdeda # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate 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 drivers/dma/at_xdmac.c:12: drivers/dma/at_xdmac.c: In function 'at_xdmac_work': >> include/linux/container_of.h:19:54: error: invalid use of undefined type 'struct at_xdmac_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) || \ | ^~~~~~~~~~~ drivers/dma/at_xdmac.c:1668:17: note: in expansion of macro 'container_of' 1668 | container_of(work, struct at_xdmac_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) || \ | ^~~~~~~~~~~ drivers/dma/at_xdmac.c:1668:17: note: in expansion of macro 'container_of' 1668 | container_of(work, struct at_xdmac_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/arm/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:248, from include/asm-generic/barrier.h:16, from arch/arm/include/asm/barrier.h:100, from drivers/dma/at_xdmac.c:10: >> include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct at_xdmac_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))); }) | ^~~~~~~~ drivers/dma/at_xdmac.c:1668:17: note: in expansion of macro 'container_of' 1668 | container_of(work, struct at_xdmac_work, work); | ^~~~~~~~~~~~ vim +19 include/linux/container_of.h d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 9 d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 10 /** d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 11 * container_of - cast a member of a structure out to the containing structure d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 12 * @ptr: the pointer to the member. d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 13 * @type: the type of the container struct this is embedded in. d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 14 * @member: the name of the member within the struct. d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 15 * d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 16 */ d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 17 #define container_of(ptr, type, member) ({ \ d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 18 void *__mptr = (void *)(ptr); \ e1edc277e6f6df Rasmus Villemoes 2021-11-08 @19 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ e1edc277e6f6df Rasmus Villemoes 2021-11-08 20 __same_type(*(ptr), void), \ d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 21 "pointer type mismatch in container_of()"); \ d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 22 ((type *)(__mptr - offsetof(type, member))); }) d2a8ebbf8192b8 Andy Shevchenko 2021-11-08 23 :::::: The code at line 19 was first introduced by commit :::::: e1edc277e6f6dfb372216522dfc57f9381c39e35 linux/container_of.h: switch to static_assert :::::: TO: Rasmus Villemoes :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel