Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1651972ioo; Sun, 22 May 2022 23:04:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmV16yzn6Nn2oaVSv/dOTY4TdRZg6WrZzK3Lz/B5QEzKoLS1tIVKCJEHNTBdiRJ5mcJNT4 X-Received: by 2002:a05:6a00:1d1d:b0:518:421c:b65e with SMTP id a29-20020a056a001d1d00b00518421cb65emr19756290pfx.43.1653285891295; Sun, 22 May 2022 23:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285891; cv=none; d=google.com; s=arc-20160816; b=VGYziCpdIRm7vGX2+BgCGgue2wYDMvWYPKkle6W1v949EPwA6SbztgSOm48R66Zzrl DzQqho9HpelU2QpiZrgIvESJzTCfR9JHgEFr5yQhSoZ3FbpUN33Dyj6U4Rhj51FWODQI qpn2bNj7cKjZN9747hNPdhDItJ0cq3d3/J6hpWwVomigFG11Kp+LRNvmvz9zGF+FW6QD S9hA3aRoLoHgQ6r3kifXCWjemrhtlN3Iu4SO2uXD4BB+7sW2CxX2YwXRePYRcs81iWzN q92gaVCZCtBG9bpl3zidNEAAkzR1NImzTvX3Hoztt9CBDzgln+DmLzCrgJl19aT9s1yc 4vBg== 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=knpBAqz2lb+C+Kf/H/s9Yrmb7C5IZs1185v8pCK0pbY=; b=KyPy7Pc6/79OrNiE8mwS21wvdJAmXBgZumt9WC/M1AxW5IHDDztmz3oo7dhmBmsfe+ ZC4FWgKKBcpWKhr0HOxGic6AOIcOvC5MKiQ+r5tCE9rRtMjQBpBrao1JplGymU+eKsX0 eCY0fzh3T+ISvpthu1XyXY6Y7AdOJXMBqfmQK6oVvQrAKBTrxApUV/8dWB1dodyD3EEw buqjXK0A+XCYqDahUxtYblh/ndigH7zgeJ0DrhnjZKShF41FQG6UzT60GcafDgBYmuhI zDsIJpc5Dd6V5sA/mXU0DXjDdVM1lkneF/hYE2YXeXxMoDgGMc/UF0Vg1ByxIqQzxtcW j79Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mtdNsYRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c4-20020a17090ae10400b001dfdd28c20csi11760930pjz.89.2022.05.22.23.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mtdNsYRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6269713DF1; Sun, 22 May 2022 22:56:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343949AbiETAVE (ORCPT + 99 others); Thu, 19 May 2022 20:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343956AbiETAUz (ORCPT ); Thu, 19 May 2022 20:20:55 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C274224BE0; Thu, 19 May 2022 17:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653006054; x=1684542054; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AX9u0AjfkhQIv902pkLIaB2pcFVPrNmehZjTGBz16NU=; b=mtdNsYRF+q2AdF6JvRpi9EUz8Qwia2g7y2xkHHWUnQGdev+VW+5yPics qubndh+n8FMLi9x+3hNsrUwl4LvDkA5nbVC/VsZYS2FCzIddNqF0jDAtS ebN+wsypSB6luy265BQy1d1Q5F6jati6qsXeYqY/XfEvMzdzpb0hPWChY ghH+vYtWAXId7tBjSdcb+oiNbdtQ8NusS+PAgAlLVPc6AjwRGRfPnc8jf HxMDcRhkdvfCVliekjAwSTxhse0S0ARg5QpvVsh69wpOh3zDbNgDz2tQe 6l+yN1RyuExN57sa5jNkXgWJ24AnEY1oF4WcKwqZoDo/ndCEayA3n5Fwc g==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="272394418" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="272394418" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 17:20:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="546392359" Received: from lkp-server02.sh.intel.com (HELO 242b25809ac7) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 19 May 2022 17:20:48 -0700 Received: from kbuild by 242b25809ac7 with local (Exim 4.95) (envelope-from ) id 1nrqNs-000459-6h; Fri, 20 May 2022 00:20:48 +0000 Date: Fri, 20 May 2022 08:20:28 +0800 From: kernel test robot To: Meng Li , Shuah Khan , Huang Rui , linux-pm@vger.kernel.org Cc: kbuild-all@lists.01.org, "Rafael J . Wysocki" , Nathan Fontenot , Deepak Sharma , Alex Deucher , Mario Limonciello , Jinzhou Su , Perry Yuan , Xiaojian Du , Viresh Kumar , Borislav Petkov , linux-kernel@vger.kernel.org, Meng Li Subject: Re: [PATCH V6 2/4] cpufreq: amd-pstate: Add test module for amd-pstate driver Message-ID: <202205200812.g9S1SWP3-lkp@intel.com> References: <20220519134737.359290-3-li.meng@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220519134737.359290-3-li.meng@amd.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Meng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on shuah-kselftest/next] [also build test WARNING on rafael-pm/linux-next linux/master linus/master v5.18-rc7] [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] url: https://github.com/intel-lab-lkp/linux/commits/Meng-Li/Add-unit-test-module-for-AMD-P-State-driver/20220519-215444 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220520/202205200812.g9S1SWP3-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/5a00a68d142a32f76cf2e770d75463802273e7ed git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Meng-Li/Add-unit-test-module-for-AMD-P-State-driver/20220519-215444 git checkout 5a00a68d142a32f76cf2e770d75463802273e7ed # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cpufreq/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:29, from arch/x86/include/asm/percpu.h:27, from arch/x86/include/asm/current.h:6, from arch/x86/include/asm/processor.h:17, from arch/x86/include/asm/timex.h:5, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/stat.h:19, from include/linux/module.h:13, from include/../tools/testing/selftests/kselftest_module.h:5, from drivers/cpufreq/amd-pstate-ut.c:23: drivers/cpufreq/amd-pstate-ut.c: In function 'get_shared_mem': >> include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t' {aka 'int'} [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap' 418 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:489:9: note: in expansion of macro 'printk' 489 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH' 11 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ include/linux/printk.h:489:16: note: in expansion of macro 'KERN_ERR' 489 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~ drivers/cpufreq/amd-pstate-ut.c:83:33: note: in expansion of macro 'pr_err' 83 | pr_err("%s ret=%ld unable to read from param file!\n", | ^~~~~~ vim +5 include/linux/kern_levels.h 314ba3520e513a Joe Perches 2012-07-30 4 04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */ 04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001' 04d2c8c83d0e3a Joe Perches 2012-07-30 7 -- 0-DAY CI Kernel Test Service https://01.org/lkp