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 42CBBC25B4E for ; Fri, 20 Jan 2023 19:08:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230170AbjATTIZ (ORCPT ); Fri, 20 Jan 2023 14:08:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbjATTIZ (ORCPT ); Fri, 20 Jan 2023 14:08:25 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 345D172C00; Fri, 20 Jan 2023 11:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674241704; x=1705777704; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xtYLh5cCbuko2Qpbfy5LnQspRBl8mkaXM2fjsHpiBBQ=; b=j8y8MF39+LjMq6xIu8mCRr7pAj/jW4YIM9Z7WpzpxALQXM0Dd62GR/Lz LyTYbhoOE5COei1U93G6eKglBh8UxPB7XXLfo+GskwKeUq5V9VpgKrqcO sQZtru0tHivlxwJJXEoLbHMpHT0pomp5HGvWNugYUAfJmY7b9MmhCFATI /TAYq0AeLGj3M16ACi6o3KDqNdEzfcuZiSHqGYO3FnYJOxm5TRGBqz8Vs dKoMAwEjgBe0IOiGuQS0xAO6kfTb3MQmzPmT0qVrHsToe8rcd0+4JK1mt bCeCp4Hm3sXHx8Ej2rOap1GRM7TMrj619ee77nntL3cPUzp0XPwICw8eK A==; X-IronPort-AV: E=McAfee;i="6500,9779,10596"; a="309236501" X-IronPort-AV: E=Sophos;i="5.97,233,1669104000"; d="scan'208";a="309236501" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2023 11:08:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10596"; a="662634474" X-IronPort-AV: E=Sophos;i="5.97,233,1669104000"; d="scan'208";a="662634474" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 20 Jan 2023 11:08:18 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pIwkL-0002py-2L; Fri, 20 Jan 2023 19:08:17 +0000 Date: Sat, 21 Jan 2023 03:08:09 +0800 From: kernel test robot To: XU pengfei , jdelvare@suse.com, linux@roeck-us.net Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, XU pengfei Subject: Re: [PATCH 1/1] hwmon: powr1220: remove unnecessary (void*) conversions Message-ID: <202301210322.r2vwtdN5-lkp@intel.com> References: <20230111043729.3792-1-xupengfei@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230111043729.3792-1-xupengfei@nfschina.com> Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Hi XU, Thank you for the patch! Yet something to improve: [auto build test ERROR on groeck-staging/hwmon-next] [also build test ERROR on linus/master v6.2-rc4 next-20230120] [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/XU-pengfei/hwmon-powr1220-remove-unnecessary-void-conversions/20230111-123826 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20230111043729.3792-1-xupengfei%40nfschina.com patch subject: [PATCH 1/1] hwmon: powr1220: remove unnecessary (void*) conversions config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20230121/202301210322.r2vwtdN5-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/2eb252eb3b198f857b200cd1b3aee679a7129baa git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review XU-pengfei/hwmon-powr1220-remove-unnecessary-void-conversions/20230111-123826 git checkout 2eb252eb3b198f857b200cd1b3aee679a7129baa # 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=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hwmon/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/hwmon/powr1220.c:177:24: error: initializing 'struct powr1220_data *' with an expression of type 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] struct powr1220_data *chip_data = data; ^ ~~~~ 1 error generated. vim +177 drivers/hwmon/powr1220.c 172 173 static umode_t 174 powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32 175 attr, int channel) 176 { > 177 struct powr1220_data *chip_data = data; 178 179 if (channel >= chip_data->max_channels) 180 return 0; 181 182 switch (type) { 183 case hwmon_in: 184 switch (attr) { 185 case hwmon_in_input: 186 case hwmon_in_highest: 187 case hwmon_in_label: 188 return 0444; 189 default: 190 break; 191 } 192 break; 193 default: 194 break; 195 } 196 197 return 0; 198 } 199 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests