Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1132580rdb; Fri, 20 Oct 2023 09:14:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZy8ggfBVGhW3JJUSPSf//CFiYrqRpeRVv+gLymSVRg78O7Twetw75aE0AcPnbJaln3C6B X-Received: by 2002:a62:f24d:0:b0:68f:cd71:45d5 with SMTP id y13-20020a62f24d000000b0068fcd7145d5mr1783318pfl.3.1697818440656; Fri, 20 Oct 2023 09:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697818440; cv=none; d=google.com; s=arc-20160816; b=glQddJU+ube8QmlykOJ8ODzNGXM8KiXrGmTjpWkQG03UjFCXdtoElbKVIC+trbo32u oDmOSV/hi0mU2Yw6VL+v5ro1iPUQfKZ2R0BSNAsTMFAn7AfhVKCpqrUp0JX6LGdunLuE UvARrn1KO9WPQR16PYsSfedptgDmto0F7GNA9YJLoegYDf37503SvK2bX+4KgoprF+89 v2GGBAXsYx6/T+MAMPP31fB1UaBKOVN3httorK1OZZb3NFNSkZDa6phsYcz3o3Vt2SMQ e49Q1jn7RWNFskwfhdyhzEAAuggleLps1bg+pI9a8zesdQyxMH7+D2hUbpd/bvY07cCd uWVQ== 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=Ex5XaquXQ/xSMqxyztU7OocDucVmkby5rUSSibgB2lY=; fh=XUNixtRy13i6JJ+M6xXEer+tfPaIOzgxHrhqXqWZcyg=; b=QALbJyTQumNdV3A0SRhmWuuBnRrvGuLmKMUmuvyj84ACDG3aSVUIVWD1RV/+k6ljKZ q4zDDyrJLTYBylV9MQBoTk81By1Px4nVeDwbA/i4LSEOElX/KIliowVO4hIDu9p5tAfQ vWvqYoIxiZnQrSdpTfk95+MHoQX2EXXPLnc288BdVxD2y0fWoLpnMU0r03h4B7p42x0v fKScoGySnV7CBXfyldzWkSNrA5yM4iAnpDhfLCAyGrLLkXxHj1FDgC/S6b2RLMxFU+ZJ SPKecxmtPAAzkU97NY/ae2BV4FVkbhfFYQZwPziViTYCHDTwr9Or8Zd3dCmiMZgMV58y 9AMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mvijJ6uP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id j1-20020a056a00130100b0068e2b1d5651si2229090pfu.281.2023.10.20.09.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 09:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mvijJ6uP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CAD8F830F575; Fri, 20 Oct 2023 09:13:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377676AbjJTQNk (ORCPT + 99 others); Fri, 20 Oct 2023 12:13:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjJTQNj (ORCPT ); Fri, 20 Oct 2023 12:13:39 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80685114; Fri, 20 Oct 2023 09:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697818417; x=1729354417; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eWAftVHC6HQVNtnpPsRWMbqa+BXYoeOA9V5JeSTXPSw=; b=mvijJ6uPkYnQA0UrE4t5QRRloe560suYdVFJnAxx8le/Bps88SfyTycP C0wN5WTWMq2RrKcblV6vPceHpK1bMoZJ6ziUNL1YthBJdODRL4sC39fQ9 0uAZUamkdWWekHOH+OMsJfbCHaHRERI0GTtQ+fWj77RMH0QPpgxbpzW+e PLMswcuUgM0v9yOD+JF9AeGeudoybLjsF8+68jsHNUR2z6zbb5f7C2Yqj b4KDYOdoEv9yaAlZFS1qGK/SFIjUIdtEBzizM4oXbQdno36VOWAvszTKP 0id8WFzZ9jbcO+RgwvRHTEyhbggHl0oyJ+xZWA+rW0oyCz3JkMEMKIgrz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="8088547" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="8088547" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 09:13:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="5427967" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 20 Oct 2023 09:13:19 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qts7g-0003k2-0n; Fri, 20 Oct 2023 16:13:16 +0000 Date: Sat, 21 Oct 2023 00:13:00 +0800 From: kernel test robot To: Ai Chao , hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, markgross@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Ai Chao Subject: Re: [PATCH v2] platform/x86: support to store/show powermode value for Inspur Message-ID: <202310202354.NjaAKTX2-lkp@intel.com> References: <20231014032844.3823198-1-aichao@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231014032844.3823198-1-aichao@kylinos.cn> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 09:13:58 -0700 (PDT) Hi Ai, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on v6.6-rc6 next-20231020] [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/Ai-Chao/platform-x86-support-to-store-show-powermode-value-for-Inspur/20231017-125537 base: linus/master patch link: https://lore.kernel.org/r/20231014032844.3823198-1-aichao%40kylinos.cn patch subject: [PATCH v2] platform/x86: support to store/show powermode value for Inspur config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231020/202310202354.NjaAKTX2-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310202354.NjaAKTX2-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310202354.NjaAKTX2-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/platform/x86/inspur-wmi.c:70: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Set Power Mode to EC RAM. If Power Mode value greater than 0x3, drivers/platform/x86/inspur-wmi.c:111: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Get Power Mode from EC RAM, If Power Mode value greater than 0x3, vim +70 drivers/platform/x86/inspur-wmi.c 68 69 /** > 70 * Set Power Mode to EC RAM. If Power Mode value greater than 0x3, 71 * return error 72 * Method ID: 0x3 73 * Arg: 4 Bytes 74 * Byte [0]: Power Mode: 75 * 0x0: Balance Mode 76 * 0x1: Performance Mode 77 * 0x2: Power Saver Mode 78 * Return Value: 4 Bytes 79 * Byte [0]: Return Code 80 * 0x0: No Error 81 * 0x1: Error 82 */ 83 static ssize_t powermode_store(struct device *dev, 84 struct device_attribute *attr, 85 const char *buf, size_t count) 86 { 87 struct inspur_wmi_priv *priv = dev_get_drvdata(dev); 88 int ret; 89 u32 mode; 90 u8 *ret_code; 91 92 ret = kstrtoint(buf, 0, &mode); 93 if (ret) 94 return ret; 95 96 ret = inspur_wmi_perform_query(priv->wdev, 97 INSPUR_WMI_SET_POWERMODE, 98 &mode, sizeof(mode), sizeof(mode)); 99 100 if (ret < 0) 101 return ret; 102 103 ret_code = (u8 *)(&mode); 104 if (ret_code[0]) 105 return -EBADRQC; 106 107 return count; 108 } 109 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki