From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5C902144C1 for ; Wed, 22 Jan 2025 15:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737560279; cv=none; b=LZVIm8LLVoxOV/VBiuKQE1A+vYrBJ7Qa13zoBWHgLylIS4FEZBpc+6TAYjOewXm4D3Z+9vEOmczNCWONT9c1+z3nKU6+7oJt0zFi1YDKJTJ+wsTQLXoa12ERjNlZ7bNIWWuLVioRgsS4VGOJER3z3YJgrjE8lA1cnAP0CQv4fYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737560279; c=relaxed/simple; bh=Zy5YxMKLXnrLnckMp3dq1J/SnNJW2DxdwEVeu9DYi1g=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=gx3KgAiCdd5OsAg0tbRsFBTEsyE1VwE0dBcPFBAfktJhqw2a5n3JWaJxDa28UTcp/uwNEq5fcw6YoKindGy82VAD7iRXwLDZjfHJMWfjhflt/TZWpJmbOa2V4lp5vzOCvEEz1ycBXrJtqq1emZQbQAvUOo5NBxfmrrSeKPN8dgc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QioKoD4p; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QioKoD4p" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737560278; x=1769096278; h=date:from:to:cc:subject:message-id:mime-version; bh=Zy5YxMKLXnrLnckMp3dq1J/SnNJW2DxdwEVeu9DYi1g=; b=QioKoD4pBExRraresArzDAW/mklZTt1GVyD04J8KDSrmfCj5uetVn1KS dXuHutLRM5KDLRmGp8FWSJl9J/BrNbP80eO7omHv5SUJydOggqfVxPZly +aLygiY8ZhiQmvnDMegVxxQU+5kYlShD2s+mPcYHuIapeoROPMUG7cZm+ 1Wh3WIxAZZYL+prIsmGKo+wjw3eCTbXY3ehn+u9xweyqFfdOlCp24I5eE Qb6ixbrZseeGuPmJ4dYzv2sWi6TLVJa+n/4ZFj09tv23hBsAxT7nHt+3w m1VMY+XJznPo6+ALRJkaPf8zI+huj4/vH4zGtLz1wRNcuSz9DJbgtYHzX g==; X-CSE-ConnectionGUID: Nc6fP7uMTvGUOW9NoGxgnA== X-CSE-MsgGUID: zNL2LAZIRli70bVtjsLoRA== X-IronPort-AV: E=McAfee;i="6700,10204,11323"; a="38050418" X-IronPort-AV: E=Sophos;i="6.13,225,1732608000"; d="scan'208";a="38050418" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2025 07:37:57 -0800 X-CSE-ConnectionGUID: 40VTGlSLSfqfYXJmgdtHmA== X-CSE-MsgGUID: K4v38WFsQ/mdilEKegeBlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,225,1732608000"; d="scan'208";a="106982226" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 22 Jan 2025 07:37:56 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tacnh-000a3B-2j; Wed, 22 Jan 2025 15:37:53 +0000 Date: Wed, 22 Jan 2025 23:37:42 +0800 From: kernel test robot To: Viresh Kumar Cc: oe-kbuild-all@lists.linux.dev Subject: [vireshk-pm:cpufreq/boost 60/60] drivers/cpufreq/cpufreq.c:1064:34: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared Message-ID: <202501222346.6JsDOyR9-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/boost head: 65feaddb9dbbb3382cd06a6815aeed54e4760d26 commit: 65feaddb9dbbb3382cd06a6815aeed54e4760d26 [60/60] cpufreq: Remove cpufreq_generic_attrs config: sh-randconfig-001-20250122 (https://download.01.org/0day-ci/archive/20250122/202501222346.6JsDOyR9-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250122/202501222346.6JsDOyR9-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/202501222346.6JsDOyR9-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/cpufreq/cpufreq.c: In function 'cpufreq_add_dev_interface': >> drivers/cpufreq/cpufreq.c:1064:34: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared (first use in this function) 1064 | &cpufreq_freq_attr_scaling_available_freqs.attr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/cpufreq/cpufreq.c:1064:34: note: each undeclared identifier is reported only once for each function it appears in >> drivers/cpufreq/cpufreq.c:1070:34: error: 'cpufreq_freq_attr_scaling_boost_freqs' undeclared (first use in this function) 1070 | &cpufreq_freq_attr_scaling_boost_freqs.attr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/cpufreq_freq_attr_scaling_available_freqs +1064 drivers/cpufreq/cpufreq.c 87549141d516ae Viresh Kumar 2015-06-10 1055 d9612a495b0bc9 Rafael J. Wysocki 2015-07-27 1056 static int cpufreq_add_dev_interface(struct cpufreq_policy *policy) 909a694e336bf3 Dave Jones 2009-07-08 1057 { 909a694e336bf3 Dave Jones 2009-07-08 1058 struct freq_attr **drv_attr; 909a694e336bf3 Dave Jones 2009-07-08 1059 int ret = 0; 909a694e336bf3 Dave Jones 2009-07-08 1060 d12790180300c1 Viresh Kumar 2025-01-22 1061 /* Attributes that need freq_table */ d12790180300c1 Viresh Kumar 2025-01-22 1062 if (policy->freq_table) { d12790180300c1 Viresh Kumar 2025-01-22 1063 ret = sysfs_create_file(&policy->kobj, d12790180300c1 Viresh Kumar 2025-01-22 @1064 &cpufreq_freq_attr_scaling_available_freqs.attr); d12790180300c1 Viresh Kumar 2025-01-22 1065 if (ret) d12790180300c1 Viresh Kumar 2025-01-22 1066 return ret; d12790180300c1 Viresh Kumar 2025-01-22 1067 d12790180300c1 Viresh Kumar 2025-01-22 1068 if (cpufreq_boost_supported()) { d12790180300c1 Viresh Kumar 2025-01-22 1069 ret = sysfs_create_file(&policy->kobj, d12790180300c1 Viresh Kumar 2025-01-22 @1070 &cpufreq_freq_attr_scaling_boost_freqs.attr); d12790180300c1 Viresh Kumar 2025-01-22 1071 if (ret) d12790180300c1 Viresh Kumar 2025-01-22 1072 return ret; d12790180300c1 Viresh Kumar 2025-01-22 1073 } d12790180300c1 Viresh Kumar 2025-01-22 1074 } d12790180300c1 Viresh Kumar 2025-01-22 1075 909a694e336bf3 Dave Jones 2009-07-08 1076 /* set up files for this cpu device */ 1c3d85dd4e21a4 Rafael J. Wysocki 2013-04-29 1077 drv_attr = cpufreq_driver->attr; f13f1184a1f4e0 Viresh Kumar 2015-01-02 1078 while (drv_attr && *drv_attr) { d12790180300c1 Viresh Kumar 2025-01-22 1079 /* These are already added, skip them */ d12790180300c1 Viresh Kumar 2025-01-22 1080 if (*drv_attr == &cpufreq_freq_attr_scaling_available_freqs || d12790180300c1 Viresh Kumar 2025-01-22 1081 *drv_attr == &cpufreq_freq_attr_scaling_boost_freqs) { d12790180300c1 Viresh Kumar 2025-01-22 1082 drv_attr++; d12790180300c1 Viresh Kumar 2025-01-22 1083 continue; d12790180300c1 Viresh Kumar 2025-01-22 1084 } d12790180300c1 Viresh Kumar 2025-01-22 1085 909a694e336bf3 Dave Jones 2009-07-08 1086 ret = sysfs_create_file(&policy->kobj, &((*drv_attr)->attr)); 909a694e336bf3 Dave Jones 2009-07-08 1087 if (ret) 6d4e81ed89c092 Tomeu Vizoso 2014-11-24 1088 return ret; 909a694e336bf3 Dave Jones 2009-07-08 1089 drv_attr++; 909a694e336bf3 Dave Jones 2009-07-08 1090 } 1c3d85dd4e21a4 Rafael J. Wysocki 2013-04-29 1091 if (cpufreq_driver->get) { 909a694e336bf3 Dave Jones 2009-07-08 1092 ret = sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr); 909a694e336bf3 Dave Jones 2009-07-08 1093 if (ret) 6d4e81ed89c092 Tomeu Vizoso 2014-11-24 1094 return ret; 909a694e336bf3 Dave Jones 2009-07-08 1095 } c034b02e213d27 Dirk Brandewie 2014-10-13 1096 909a694e336bf3 Dave Jones 2009-07-08 1097 ret = sysfs_create_file(&policy->kobj, &scaling_cur_freq.attr); 909a694e336bf3 Dave Jones 2009-07-08 1098 if (ret) 6d4e81ed89c092 Tomeu Vizoso 2014-11-24 1099 return ret; c034b02e213d27 Dirk Brandewie 2014-10-13 1100 1c3d85dd4e21a4 Rafael J. Wysocki 2013-04-29 1101 if (cpufreq_driver->bios_limit) { e2f74f355e9e29 Thomas Renninger 2009-11-19 1102 ret = sysfs_create_file(&policy->kobj, &bios_limit.attr); e2f74f355e9e29 Thomas Renninger 2009-11-19 1103 if (ret) e18f1682bce701 Srivatsa S. Bhat 2013-07-30 1104 return ret; 6d4e81ed89c092 Tomeu Vizoso 2014-11-24 1105 } e18f1682bce701 Srivatsa S. Bhat 2013-07-30 1106 218a06a79d9a98 Jie Zhan 2023-08-22 1107 if (cpufreq_boost_supported()) { 218a06a79d9a98 Jie Zhan 2023-08-22 1108 ret = sysfs_create_file(&policy->kobj, &local_boost.attr); 218a06a79d9a98 Jie Zhan 2023-08-22 1109 if (ret) 218a06a79d9a98 Jie Zhan 2023-08-22 1110 return ret; 218a06a79d9a98 Jie Zhan 2023-08-22 1111 } 218a06a79d9a98 Jie Zhan 2023-08-22 1112 26619804e733bb Viresh Kumar 2016-09-12 1113 return 0; e18f1682bce701 Srivatsa S. Bhat 2013-07-30 1114 } e18f1682bce701 Srivatsa S. Bhat 2013-07-30 1115 :::::: The code at line 1064 was first introduced by commit :::::: d12790180300c14e22e3bec415f2d1330afc15d8 cpufreq: Always create freq-table related sysfs file :::::: TO: Viresh Kumar :::::: CC: Viresh Kumar -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki