From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753793AbdEIF4b (ORCPT ); Tue, 9 May 2017 01:56:31 -0400 Received: from mga09.intel.com ([134.134.136.24]:19988 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270AbdEIF43 (ORCPT ); Tue, 9 May 2017 01:56:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,312,1491289200"; d="scan'208";a="1128096851" Date: Tue, 9 May 2017 13:56:14 +0800 From: kbuild test robot To: Moritz Fischer Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, linux@roeck-us.net, lee.jones@linaro.org, bleung@chromium.org, olof@lixom.net, Moritz Fischer Subject: Re: [PATCH] mfd: cros-ec: Add cros_ec_readmem() helpers for I2C/SPI based ECs Message-ID: <201705091359.KEwXikan%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494273491-7535-1-git-send-email-mdf@kernel.org> 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Moritz, [auto build test WARNING on ljones-mfd/for-mfd-next] [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/Moritz-Fischer/mfd-cros-ec-Add-cros_ec_readmem-helpers-for-I2C-SPI-based-ECs/20170509-040606 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: tile-allmodconfig compiler: tilegx-linux-gcc (GCC) 4.6.2 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross make.cross ARCH=tile allmodconfig make.cross ARCH=tile All warnings (new ones prefixed by >>): vim +279 drivers/mfd/cros_ec.c 263 return 0; 264 } 265 EXPORT_SYMBOL(cros_ec_resume); 266 267 #endif 268 269 int cros_ec_readmem(struct cros_ec_device *ec, unsigned int offset, 270 unsigned int bytes, void *dest) 271 { 272 int ret; 273 struct ec_params_read_memmap *params; 274 struct cros_ec_command *msg; 275 276 if (offset >= EC_MEMMAP_SIZE - bytes) 277 return -EINVAL; 278 > 279 msg = kzalloc(sizeof(*msg) + max(sizeof(*params), bytes), GFP_KERNEL); 280 if (!msg) 281 return -ENOMEM; 282 283 msg->version = 0; 284 msg->command = EC_CMD_READ_MEMMAP; 285 msg->insize = bytes; 286 msg->outsize = sizeof(*params); 287 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation