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 B4E8FC6FA99 for ; Fri, 10 Mar 2023 12:49:31 +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:In-Reply-To:MIME-Version:References: 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: List-Owner; bh=1/6cDVicPFoiFbpeVF1UXlGwxdhsbSRIFzmsdOGZgRI=; b=g0M75lXoEh5aKk r90CPXUpUJqWCcYB09gJWLTvfKSObTI2L2t41UVuG+7UKobnumLuHpjkjw4w6xqfcqvYgxDGpeqJw KKq82r6zj/jul/G9aHkyZQivODQwT/zf4fhp3biPHQ5MJAIyLbbtBKNbZKap+plFlzS31ZIRRjMCN IryJ7os/D3dfUkZ2SvfEvdrSCYydOWeFlxmjQVUp3MrIXcU01xo426+RnYBmTdmaXjiIh6KHZhydy jywAL0/2Yi3f/NRy+0H9wLJgyS3DWA9uSvAyI32AVzEei5+4ogi82f16dbjXLyAVuJhJRNwg3YJh5 uAGn2XAwl6zbRgXatKEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pacAg-00EXjG-0W; Fri, 10 Mar 2023 12:48:30 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pacAb-00EXiT-T3 for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 12:48:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678452505; x=1709988505; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=U81uRxesHe8eFauiEOy3i19Qhk4z3KVhUPplxSsaCUQ=; b=kVgpTExM8uVLU9O7K7kRbejgd8kbcZpcLLTPEkxMZfwxCQH/9gkdjzZW SIyZGG0rt8vlQ9okDiBcy50gaOVebwTLVLtBS1H62uURZfbhQUeu9AJ4r nH+uwWMkrs193jnRJAaA+E7m8hTCEba2Nm5UJ6wptzfUBvEUADDlI3BR6 ZwCjEZpdOUzKpZGYE2XG8MP8O1mSX4wt6cK4m6o/MYMMDM3OokgHSoWTA 0RhNneL9IxItMdbaZJvFmsSjXBpJfb0Y01CN4y/PoEwhxraDHqbYNz6wR 2QEeLiml7dcAuTT0+sa2s6J2ib5ZV3HdWa4Y0Jhxj+Pn/tgmAF7I/KeiQ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="334195764" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="334195764" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2023 04:48:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="746700777" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="746700777" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 10 Mar 2023 04:48:19 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pacAU-0003rj-2h; Fri, 10 Mar 2023 12:48:18 +0000 Date: Fri, 10 Mar 2023 20:47:47 +0800 From: kernel test robot To: "A. Sverdlin" , NXP Linux Team Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Alexander Sverdlin , Alexander Stein , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: lpi2c: cache peripheral clock rate Message-ID: <202303102026.xZsE7TNu-lkp@intel.com> References: <20230310112605.476922-1-alexander.sverdlin@siemens.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230310112605.476922-1-alexander.sverdlin@siemens.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_044825_992223_3A5D70C0 X-CRM114-Status: GOOD ( 15.36 ) 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 Hi Sverdlin, I love your patch! Yet something to improve: [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on linus/master v6.3-rc1 next-20230310] [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/A-Sverdlin/i2c-lpi2c-cache-peripheral-clock-rate/20230310-192720 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next patch link: https://lore.kernel.org/r/20230310112605.476922-1-alexander.sverdlin%40siemens.com patch subject: [PATCH v2] i2c: lpi2c: cache peripheral clock rate config: arm64-buildonly-randconfig-r002-20230310 (https://download.01.org/0day-ci/archive/20230310/202303102026.xZsE7TNu-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/aa3870869fbb164ebdc12f412c07c66f1d7cdf2d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review A-Sverdlin/i2c-lpi2c-cache-peripheral-clock-rate/20230310-192720 git checkout aa3870869fbb164ebdc12f412c07c66f1d7cdf2d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/i2c/busses/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303102026.xZsE7TNu-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/i2c/busses/i2c-imx-lpi2c.c:209:10: error: no member named 'clk_per' in 'struct lpi2c_imx_struct' clk_per); ^~~~~~~~ include/linux/container_of.h:20:49: note: expanded from macro 'container_of' static_assert(__same_type(*(ptr), ((type *)0)->member) || \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:338:74: note: expanded from macro '__same_type' #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) ^ include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) ^~~~ >> drivers/i2c/busses/i2c-imx-lpi2c.c:207:39: error: no member named 'clk_per' in 'lpi2c_imx_struct' struct lpi2c_imx_struct *lpi2c_imx = container_of(&ndata->clk, ^ include/linux/container_of.h:23:21: note: expanded from macro 'container_of' ((type *)(__mptr - offsetof(type, member))); }) ^ ~~~~~~ include/linux/stddef.h:16:32: note: expanded from macro 'offsetof' #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) ^ ~~~~~~ >> drivers/i2c/busses/i2c-imx-lpi2c.c:207:27: error: initializing 'struct lpi2c_imx_struct *' with an expression of incompatible type 'void' struct lpi2c_imx_struct *lpi2c_imx = container_of(&ndata->clk, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. vim +209 drivers/i2c/busses/i2c-imx-lpi2c.c 202 203 static int lpi2c_imx_clk_change_cb(struct notifier_block *nb, 204 unsigned long action, void *data) 205 { 206 struct clk_notifier_data *ndata = data; > 207 struct lpi2c_imx_struct *lpi2c_imx = container_of(&ndata->clk, 208 struct lpi2c_imx_struct, > 209 clk_per); 210 211 if (action & POST_RATE_CHANGE) 212 lpi2c_imx->rate_per = ndata->new_rate; 213 214 return NOTIFY_OK; 215 } 216 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel