Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1585185rwr; Thu, 20 Apr 2023 18:15:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bj93EqQAlnY1iul6Y74vGDTUZwrPHiG+m1lTPvhZnP7Vqnk8Kb46LRgnxvF3PZMMSN4ali X-Received: by 2002:a17:90a:9707:b0:247:8b7d:743f with SMTP id x7-20020a17090a970700b002478b7d743fmr3317085pjo.21.1682039709316; Thu, 20 Apr 2023 18:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682039709; cv=none; d=google.com; s=arc-20160816; b=n+j6kdIoeaKGkIBnPqMhCdTpmxg5iyp7s6Yyz8BHbHyagbiRxiilwthVH+2qmOcCTk bfmZ3tQhkVhjbY14Gz5aQl15jqZzAs81QB90ZJDGVhd/eH5WHhkUJ5q7EQT0Wd35EgM0 niJrBXSX2OuNmIGugRQFiy+LkOIspKy5a/BPPc5cetV7n7zJwCykJSZPsZY/L4l/pGZo Fv7LHZBByq/YCqfzWysgx4SzrY9GFDq39k8+UC0kgXbUXF7uSEzp0G3QFdhPj34v0nrT 3aV9TeHQDr5CJ/r+oM1typP0yxYuZK/WxPdWGvQVl1hP2+r8FDbMzTRw4NwKJ2lxwGkj Q0wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IDuv4/m20dP/bu6BdHVcdfVaYIqKtLOn2zXP0M66RxY=; b=xQg91mYFCU9UwGwDNysH2e2srn9aQ2x8Zp4x+EyIlG3gR41Emg/gmX+AiCQj7WuN7k QSpXv+Udpa6fw9KT+qvRCo8/UUDgB3Kwtjv+Fi3UmCWcWh1pdSj+BhveZU3RkquqQbMa +99jWmaUZwGs/srANVZwMopIy2Zr30rOQVD8xqOzrbiHTlFrZMq0ggLw3IrdOTTQvFZC zgvN8EFMysTkgJ0KdafRSZW+MLttglXIK9+c6AChncgF7L3WooKcmjIuVUW/qkh5c+Cj /OWmVYuYyo9lNoJ6rYIH9nPaROv1To49ZQZymonbhopqclZC0Ok/h/ynZSN7H60OPFaL wIlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q35Uddxu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a17090a2c4800b0024780bdd76dsi3393254pjm.130.2023.04.20.18.14.54; Thu, 20 Apr 2023 18:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Q35Uddxu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbjDUBKD (ORCPT + 99 others); Thu, 20 Apr 2023 21:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjDUBKC (ORCPT ); Thu, 20 Apr 2023 21:10:02 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B524170F for ; Thu, 20 Apr 2023 18:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682039401; x=1713575401; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=f+FIdRfwzetwIQKZvF1ujm8c0Ar+vB2FOLEfgo/I4Xs=; b=Q35UddxucjNCs1Fl3lyUt43K4vfjVXAQ4WoSyeAK85SnCSDi+EZfBJSZ NAePNGXlF6hCowRDA/OLNJg72/km/I2H4r3hloHLYZyQWHtccI+me4dIf zMYkLQo1AMmbwqLjqdgk+0CsI91kB+WXFZCaqEsMqPyCrB9/1f0NYPyuS v7mURyqEpN9drKsfXLIyq4NGbxx6C6qfC3tA3jQp9plCVGOBThOuplZUT o79aRuhVp/tGi+zQ8b4cRHWXImNqRbcGtHjlIrzGuiWLqCPF1tEKFoVBq jzGnh09SZG+cgwzxmEGOFlUm3Pjg8xEd+SJKFh51l5xf1BKgJErG1uHVl Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="432168496" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="432168496" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 18:10:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="803546381" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="803546381" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 20 Apr 2023 18:09:59 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1ppfHi-000gDG-2a; Fri, 21 Apr 2023 01:09:58 +0000 Date: Fri, 21 Apr 2023 09:09:21 +0800 From: kernel test robot To: yunchuan , kabel@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, yunchuan Subject: Re: [PATCH] firmware:Remove unnecessary (void*) conversions Message-ID: <202304210825.cb223IAt-lkp@intel.com> References: <20230420073751.1031944-1-yunchuan@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230420073751.1031944-1-yunchuan@nfschina.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi yunchuan, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.3-rc7 next-20230419] [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/yunchuan/firmware-Remove-unnecessary-void-conversions/20230420-154004 patch link: https://lore.kernel.org/r/20230420073751.1031944-1-yunchuan%40nfschina.com patch subject: [PATCH] firmware:Remove unnecessary (void*) conversions config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230421/202304210825.cb223IAt-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/1dee3a7afbb402fc49f0af9eeb312f221e99fab6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review yunchuan/firmware-Remove-unnecessary-void-conversions/20230420-154004 git checkout 1dee3a7afbb402fc49f0af9eeb312f221e99fab6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304210825.cb223IAt-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/firmware/turris-mox-rwtm.c: In function 'mox_hwrng_read': >> drivers/firmware/turris-mox-rwtm.c:286:33: warning: initialization of 'struct mox_rwtm *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion] 286 | struct mox_rwtm *rwtm = rng->priv; | ^~~ vim +286 drivers/firmware/turris-mox-rwtm.c 283 284 static int mox_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait) 285 { > 286 struct mox_rwtm *rwtm = rng->priv; 287 struct armada_37xx_rwtm_tx_msg msg; 288 int ret; 289 290 if (max > 4096) 291 max = 4096; 292 293 msg.command = MBOX_CMD_GET_RANDOM; 294 msg.args[0] = 1; 295 msg.args[1] = rwtm->buf_phys; 296 msg.args[2] = (max + 3) & ~3; 297 298 if (!wait) { 299 if (!mutex_trylock(&rwtm->busy)) 300 return -EBUSY; 301 } else { 302 mutex_lock(&rwtm->busy); 303 } 304 305 ret = mbox_send_message(rwtm->mbox, &msg); 306 if (ret < 0) 307 goto unlock_mutex; 308 309 ret = wait_for_completion_interruptible(&rwtm->cmd_done); 310 if (ret < 0) 311 goto unlock_mutex; 312 313 ret = mox_get_status(MBOX_CMD_GET_RANDOM, rwtm->reply.retval); 314 if (ret < 0) 315 goto unlock_mutex; 316 317 memcpy(data, rwtm->buf, max); 318 ret = max; 319 320 unlock_mutex: 321 mutex_unlock(&rwtm->busy); 322 return ret; 323 } 324 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests