[linux-rt-devel:linux-5.6.y-rt-rebase 100/277] include/linux/ww_mutex.h:132:14: error: 'current' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.6.y-rt-rebase
head: 0db8d4bd38e640bf442ee849e898b3beda5121a8
commit: cfb74da137ccd11f00b84990efaa1907445ed033 [100/277] seqlock: Extend seqcount API with associated locks
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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
git checkout cfb74da137ccd11f00b84990efaa1907445ed033
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/seqlock_types_internal.h:18,
from include/linux/seqlock.h:680,
from include/linux/time.h:6,
from arch/sparc/vdso/vdso32/../vclock_gettime.c:16,
from arch/sparc/vdso/vdso32/vclock_gettime.c:26:
include/linux/ww_mutex.h: In function 'ww_acquire_init':
>> include/linux/ww_mutex.h:132:14: error: 'current' undeclared (first use in this function); did you mean 'current_set'?
132 | ctx->task = current;
| ^~~~~~~
| current_set
include/linux/ww_mutex.h:132:14: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:26:
arch/sparc/vdso/vdso32/../vclock_gettime.c: At top level:
arch/sparc/vdso/vdso32/../vclock_gettime.c:254:1: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes]
254 | __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts)
| ^~~~~~~~~~~~~~~~~~~~
arch/sparc/vdso/vdso32/../vclock_gettime.c:282:1: warning: no previous prototype for '__vdso_clock_gettime_stick' [-Wmissing-prototypes]
282 | __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_old_timespec *ts)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/sparc/vdso/vdso32/../vclock_gettime.c:307:1: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes]
307 | __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
| ^~~~~~~~~~~~~~~~~~~
arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: warning: no previous prototype for '__vdso_gettimeofday_stick' [-Wmissing-prototypes]
343 | __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +132 include/linux/ww_mutex.h
1b375dc3071018 Maarten Lankhorst 2013-07-05 104
1b375dc3071018 Maarten Lankhorst 2013-07-05 105 /**
1b375dc3071018 Maarten Lankhorst 2013-07-05 106 * ww_acquire_init - initialize a w/w acquire context
1b375dc3071018 Maarten Lankhorst 2013-07-05 107 * @ctx: w/w acquire context to initialize
1b375dc3071018 Maarten Lankhorst 2013-07-05 108 * @ww_class: w/w class of the context
1b375dc3071018 Maarten Lankhorst 2013-07-05 109 *
1b375dc3071018 Maarten Lankhorst 2013-07-05 110 * Initializes an context to acquire multiple mutexes of the given w/w class.
1b375dc3071018 Maarten Lankhorst 2013-07-05 111 *
1b375dc3071018 Maarten Lankhorst 2013-07-05 112 * Context-based w/w mutex acquiring can be done in any order whatsoever within
1b375dc3071018 Maarten Lankhorst 2013-07-05 113 * a given lock class. Deadlocks will be detected and handled with the
55f036ca7e74b8 Peter Ziljstra 2018-06-15 114 * wait/die logic.
1b375dc3071018 Maarten Lankhorst 2013-07-05 115 *
1b375dc3071018 Maarten Lankhorst 2013-07-05 116 * Mixing of context-based w/w mutex acquiring and single w/w mutex locking can
1b375dc3071018 Maarten Lankhorst 2013-07-05 117 * result in undetected deadlocks and is so forbidden. Mixing different contexts
1b375dc3071018 Maarten Lankhorst 2013-07-05 118 * for the same w/w class when acquiring mutexes can also result in undetected
1b375dc3071018 Maarten Lankhorst 2013-07-05 119 * deadlocks, and is hence also forbidden. Both types of abuse will be caught by
1b375dc3071018 Maarten Lankhorst 2013-07-05 120 * enabling CONFIG_PROVE_LOCKING.
1b375dc3071018 Maarten Lankhorst 2013-07-05 121 *
1b375dc3071018 Maarten Lankhorst 2013-07-05 122 * Nesting of acquire contexts for _different_ w/w classes is possible, subject
1b375dc3071018 Maarten Lankhorst 2013-07-05 123 * to the usual locking rules between different lock classes.
1b375dc3071018 Maarten Lankhorst 2013-07-05 124 *
1b375dc3071018 Maarten Lankhorst 2013-07-05 125 * An acquire context must be released with ww_acquire_fini by the same task
1b375dc3071018 Maarten Lankhorst 2013-07-05 126 * before the memory is freed. It is recommended to allocate the context itself
1b375dc3071018 Maarten Lankhorst 2013-07-05 127 * on the stack.
1b375dc3071018 Maarten Lankhorst 2013-07-05 128 */
1b375dc3071018 Maarten Lankhorst 2013-07-05 129 static inline void ww_acquire_init(struct ww_acquire_ctx *ctx,
1b375dc3071018 Maarten Lankhorst 2013-07-05 130 struct ww_class *ww_class)
1b375dc3071018 Maarten Lankhorst 2013-07-05 131 {
1b375dc3071018 Maarten Lankhorst 2013-07-05 @132 ctx->task = current;
f4ec57b632fe15 Peter Zijlstra 2016-11-24 133 ctx->stamp = atomic_long_inc_return_relaxed(&ww_class->stamp);
1b375dc3071018 Maarten Lankhorst 2013-07-05 134 ctx->acquired = 0;
08295b3b5beec9 Thomas Hellstrom 2018-06-15 135 ctx->wounded = false;
08295b3b5beec9 Thomas Hellstrom 2018-06-15 136 ctx->is_wait_die = ww_class->is_wait_die;
1b375dc3071018 Maarten Lankhorst 2013-07-05 137 #ifdef CONFIG_DEBUG_MUTEXES
1b375dc3071018 Maarten Lankhorst 2013-07-05 138 ctx->ww_class = ww_class;
1b375dc3071018 Maarten Lankhorst 2013-07-05 139 ctx->done_acquire = 0;
1b375dc3071018 Maarten Lankhorst 2013-07-05 140 ctx->contending_lock = NULL;
1b375dc3071018 Maarten Lankhorst 2013-07-05 141 #endif
1b375dc3071018 Maarten Lankhorst 2013-07-05 142 #ifdef CONFIG_DEBUG_LOCK_ALLOC
1b375dc3071018 Maarten Lankhorst 2013-07-05 143 debug_check_no_locks_freed((void *)ctx, sizeof(*ctx));
1b375dc3071018 Maarten Lankhorst 2013-07-05 144 lockdep_init_map(&ctx->dep_map, ww_class->acquire_name,
1b375dc3071018 Maarten Lankhorst 2013-07-05 145 &ww_class->acquire_key, 0);
1b375dc3071018 Maarten Lankhorst 2013-07-05 146 mutex_acquire(&ctx->dep_map, 0, 0, _RET_IP_);
1b375dc3071018 Maarten Lankhorst 2013-07-05 147 #endif
1b375dc3071018 Maarten Lankhorst 2013-07-05 148 #ifdef CONFIG_DEBUG_WW_MUTEX_SLOWPATH
1b375dc3071018 Maarten Lankhorst 2013-07-05 149 ctx->deadlock_inject_interval = 1;
1b375dc3071018 Maarten Lankhorst 2013-07-05 150 ctx->deadlock_inject_countdown = ctx->stamp & 0xf;
1b375dc3071018 Maarten Lankhorst 2013-07-05 151 #endif
1b375dc3071018 Maarten Lankhorst 2013-07-05 152 }
1b375dc3071018 Maarten Lankhorst 2013-07-05 153
:::::: The code at line 132 was first introduced by commit
:::::: 1b375dc30710180c4b88cc59caba6e3481ec5c8b mutex: Move ww_mutex definitions to ww_mutex.h
:::::: TO: Maarten Lankhorst <maarten.lankhorst(a)canonical.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.19 44/59] kernel/sched/core.c:109:6: sparse: sparse: symbol 'sched_core_get' was not declared. Should it be
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 45baa007ba13bc516470dbd9379b2f7525a087e1
commit: 56b6a5dcf7349d151c47201626e0f1b62334febf [44/59] FROMLIST: sched: Core-wide rq->lock
config: x86_64-randconfig-s022-20200615 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-3-g55607964-dirty
git checkout 56b6a5dcf7349d151c47201626e0f1b62334febf
# save the attached .config to linux build tree
make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/sched/core.c:109:6: sparse: sparse: symbol 'sched_core_get' was not declared. Should it be static?
>> kernel/sched/core.c:117:6: sparse: sparse: symbol 'sched_core_put' was not declared. Should it be static?
kernel/sched/core.c:579:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:579:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/core.c:579:9: sparse: struct sched_domain *
kernel/sched/core.c:1701:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:1701:17: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/core.c:1701:17: sparse: struct sched_domain *
kernel/sched/core.c:1889:27: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:1889:27: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/core.c:1889:27: sparse: struct task_struct *
kernel/sched/core.c:5141:28: sparse: sparse: context imbalance in '__cond_resched_lock' - unexpected unlock
kernel/sched/core.c:109:6: warning: no previous prototype for 'sched_core_get' [-Wmissing-prototypes]
109 | void sched_core_get(void)
| ^~~~~~~~~~~~~~
kernel/sched/core.c:117:6: warning: no previous prototype for 'sched_core_put' [-Wmissing-prototypes]
117 | void sched_core_put(void)
| ^~~~~~~~~~~~~~
kernel/sched/core.c:1642:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
1642 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:3843:35: warning: no previous prototype for 'preempt_schedule_irq' [-Wmissing-prototypes]
3843 | asmlinkage __visible void __sched preempt_schedule_irq(void)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'sched_init':
kernel/sched/core.c:6111:32: warning: variable 'ptr' set but not used [-Wunused-but-set-variable]
6111 | unsigned long alloc_size = 0, ptr;
| ^~~
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v2] mac80211: mesh: add mesh_param "mesh_nolearn" to skip path discovery
by kernel test robot
Hi "Linus,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on mac80211-next/master]
[also build test ERROR on mac80211/master v5.8-rc1 next-20200616]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Linus-L-ssing/mac80211-mesh-add-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> net/wireless/nl80211.c:7100:13: error: too many arguments provided to function-like macro invocation
mask, NL80211_MESHCONF_NOLEARN,
^
net/wireless/nl80211.c:6972:9: note: macro 'FILL_IN_MESH_PARAM_IF_SET' defined here
#define FILL_IN_MESH_PARAM_IF_SET(tb, cfg, param, mask, attr, fn) ^
>> net/wireless/nl80211.c:7099:2: error: use of undeclared identifier 'FILL_IN_MESH_PARAM_IF_SET'
FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshNolearn, 0, 1,
^
2 errors generated.
vim +7100 net/wireless/nl80211.c
6979
6980 if (!info->attrs[NL80211_ATTR_MESH_CONFIG])
6981 return -EINVAL;
6982 if (nla_parse_nested_deprecated(tb, NL80211_MESHCONF_ATTR_MAX, info->attrs[NL80211_ATTR_MESH_CONFIG], nl80211_meshconf_params_policy, info->extack))
6983 return -EINVAL;
6984
6985 /* This makes sure that there aren't more than 32 mesh config
6986 * parameters (otherwise our bitfield scheme would not work.) */
6987 BUILD_BUG_ON(NL80211_MESHCONF_ATTR_MAX > 32);
6988
6989 /* Fill in the params struct */
6990 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshRetryTimeout, mask,
6991 NL80211_MESHCONF_RETRY_TIMEOUT, nla_get_u16);
6992 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConfirmTimeout, mask,
6993 NL80211_MESHCONF_CONFIRM_TIMEOUT,
6994 nla_get_u16);
6995 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHoldingTimeout, mask,
6996 NL80211_MESHCONF_HOLDING_TIMEOUT,
6997 nla_get_u16);
6998 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxPeerLinks, mask,
6999 NL80211_MESHCONF_MAX_PEER_LINKS,
7000 nla_get_u16);
7001 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshMaxRetries, mask,
7002 NL80211_MESHCONF_MAX_RETRIES, nla_get_u8);
7003 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshTTL, mask,
7004 NL80211_MESHCONF_TTL, nla_get_u8);
7005 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, element_ttl, mask,
7006 NL80211_MESHCONF_ELEMENT_TTL, nla_get_u8);
7007 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, auto_open_plinks, mask,
7008 NL80211_MESHCONF_AUTO_OPEN_PLINKS,
7009 nla_get_u8);
7010 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshNbrOffsetMaxNeighbor,
7011 mask,
7012 NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
7013 nla_get_u32);
7014 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPmaxPREQretries, mask,
7015 NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
7016 nla_get_u8);
7017 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, path_refresh_time, mask,
7018 NL80211_MESHCONF_PATH_REFRESH_TIME,
7019 nla_get_u32);
7020 if (mask & BIT(NL80211_MESHCONF_PATH_REFRESH_TIME) &&
7021 (cfg->path_refresh_time < 1 || cfg->path_refresh_time > 65535))
7022 return -EINVAL;
7023 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, min_discovery_timeout, mask,
7024 NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
7025 nla_get_u16);
7026 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPactivePathTimeout,
7027 mask,
7028 NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
7029 nla_get_u32);
7030 if (mask & BIT(NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT) &&
7031 (cfg->dot11MeshHWMPactivePathTimeout < 1 ||
7032 cfg->dot11MeshHWMPactivePathTimeout > 65535))
7033 return -EINVAL;
7034 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPpreqMinInterval, mask,
7035 NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
7036 nla_get_u16);
7037 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPperrMinInterval, mask,
7038 NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
7039 nla_get_u16);
7040 FILL_IN_MESH_PARAM_IF_SET(tb, cfg,
7041 dot11MeshHWMPnetDiameterTraversalTime, mask,
7042 NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
7043 nla_get_u16);
7044 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPRootMode, mask,
7045 NL80211_MESHCONF_HWMP_ROOTMODE, nla_get_u8);
7046 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPRannInterval, mask,
7047 NL80211_MESHCONF_HWMP_RANN_INTERVAL,
7048 nla_get_u16);
7049 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshGateAnnouncementProtocol,
7050 mask, NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
7051 nla_get_u8);
7052 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshForwarding, mask,
7053 NL80211_MESHCONF_FORWARDING, nla_get_u8);
7054 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, rssi_threshold, mask,
7055 NL80211_MESHCONF_RSSI_THRESHOLD,
7056 nla_get_s32);
7057 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshConnectedToMeshGate, mask,
7058 NL80211_MESHCONF_CONNECTED_TO_GATE,
7059 nla_get_u8);
7060 /*
7061 * Check HT operation mode based on
7062 * IEEE 802.11-2016 9.4.2.57 HT Operation element.
7063 */
7064 if (tb[NL80211_MESHCONF_HT_OPMODE]) {
7065 ht_opmode = nla_get_u16(tb[NL80211_MESHCONF_HT_OPMODE]);
7066
7067 if (ht_opmode & ~(IEEE80211_HT_OP_MODE_PROTECTION |
7068 IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT |
7069 IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT))
7070 return -EINVAL;
7071
7072 /* NON_HT_STA bit is reserved, but some programs set it */
7073 ht_opmode &= ~IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT;
7074
7075 cfg->ht_opmode = ht_opmode;
7076 mask |= (1 << (NL80211_MESHCONF_HT_OPMODE - 1));
7077 }
7078 FILL_IN_MESH_PARAM_IF_SET(tb, cfg,
7079 dot11MeshHWMPactivePathToRootTimeout, mask,
7080 NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT,
7081 nla_get_u32);
7082 if (mask & BIT(NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT) &&
7083 (cfg->dot11MeshHWMPactivePathToRootTimeout < 1 ||
7084 cfg->dot11MeshHWMPactivePathToRootTimeout > 65535))
7085 return -EINVAL;
7086 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMProotInterval, mask,
7087 NL80211_MESHCONF_HWMP_ROOT_INTERVAL,
7088 nla_get_u16);
7089 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshHWMPconfirmationInterval,
7090 mask,
7091 NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
7092 nla_get_u16);
7093 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, power_mode, mask,
7094 NL80211_MESHCONF_POWER_MODE, nla_get_u32);
7095 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshAwakeWindowDuration, mask,
7096 NL80211_MESHCONF_AWAKE_WINDOW, nla_get_u16);
7097 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, plink_timeout, mask,
7098 NL80211_MESHCONF_PLINK_TIMEOUT, nla_get_u32);
> 7099 FILL_IN_MESH_PARAM_IF_SET(tb, cfg, dot11MeshNolearn, 0, 1,
> 7100 mask, NL80211_MESHCONF_NOLEARN,
7101 nl80211_check_bool);
7102 if (mask_out)
7103 *mask_out = mask;
7104
7105 return 0;
7106
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-5.4 36/45] drivers/xen/platform-pci.c:176:2: error: unknown field 'resume_early' specified in initializer
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 3bff92c765fe7f3039b00930c6b85684c9a034d0
commit: a88376defcf7df6a2fca28d866973d1588be89db [36/45] UPSTREAM: PCI/PM: Remove unused pci_driver.resume_early() hook
config: i386-randconfig-a006-20200615 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce (this is a W=1 build):
git checkout a88376defcf7df6a2fca28d866973d1588be89db
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/xen/platform-pci.c:176:2: error: unknown field 'resume_early' specified in initializer
.resume_early = platform_pci_resume,
^
>> drivers/xen/platform-pci.c:176:2: warning: initialization from incompatible pointer type
drivers/xen/platform-pci.c:176:2: warning: (near initialization for 'platform_driver.probe')
drivers/xen/platform-pci.c:176:2: warning: initialized field overwritten [-Woverride-init]
drivers/xen/platform-pci.c:176:2: warning: (near initialization for 'platform_driver.probe') [-Woverride-init]
vim +/resume_early +176 drivers/xen/platform-pci.c
183d03cc4ff39e0 Stefano Stabellini 2010-05-17 170
183d03cc4ff39e0 Stefano Stabellini 2010-05-17 171 static struct pci_driver platform_driver = {
183d03cc4ff39e0 Stefano Stabellini 2010-05-17 172 .name = DRV_NAME,
e01dc539df3ada9 Paul Gortmaker 2016-02-21 173 .probe = platform_pci_probe,
183d03cc4ff39e0 Stefano Stabellini 2010-05-17 174 .id_table = platform_pci_tbl,
da72ff5bfcb02c6 Stefano Stabellini 2017-01-13 175 #ifdef CONFIG_PM
da72ff5bfcb02c6 Stefano Stabellini 2017-01-13 @176 .resume_early = platform_pci_resume,
da72ff5bfcb02c6 Stefano Stabellini 2017-01-13 177 #endif
183d03cc4ff39e0 Stefano Stabellini 2010-05-17 178 };
183d03cc4ff39e0 Stefano Stabellini 2010-05-17 179
:::::: The code at line 176 was first introduced by commit
:::::: da72ff5bfcb02c6ac8b169a7cf597a3c8e6c4de1 partially revert "xen: Remove event channel notification through Xen PCI platform device"
:::::: TO: Stefano Stabellini <sstabellini(a)kernel.org>
:::::: CC: Stefano Stabellini <sstabellini(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.19 44/59] kernel/sched/core.c:109:6: warning: no previous prototype for 'sched_core_get'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 45baa007ba13bc516470dbd9379b2f7525a087e1
commit: 56b6a5dcf7349d151c47201626e0f1b62334febf [44/59] FROMLIST: sched: Core-wide rq->lock
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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
git checkout 56b6a5dcf7349d151c47201626e0f1b62334febf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> kernel/sched/core.c:109:6: warning: no previous prototype for 'sched_core_get' [-Wmissing-prototypes]
109 | void sched_core_get(void)
| ^~~~~~~~~~~~~~
>> kernel/sched/core.c:117:6: warning: no previous prototype for 'sched_core_put' [-Wmissing-prototypes]
117 | void sched_core_put(void)
| ^~~~~~~~~~~~~~
kernel/sched/core.c:1642:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
1642 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:3843:35: warning: no previous prototype for 'preempt_schedule_irq' [-Wmissing-prototypes]
3843 | asmlinkage __visible void __sched preempt_schedule_irq(void)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:6785:5: warning: no previous prototype for 'tg_set_cfs_quota' [-Wmissing-prototypes]
6785 | int tg_set_cfs_quota(struct task_group *tg, long cfs_quota_us)
| ^~~~~~~~~~~~~~~~
kernel/sched/core.c:6800:6: warning: no previous prototype for 'tg_get_cfs_quota' [-Wmissing-prototypes]
6800 | long tg_get_cfs_quota(struct task_group *tg)
| ^~~~~~~~~~~~~~~~
kernel/sched/core.c:6813:5: warning: no previous prototype for 'tg_set_cfs_period' [-Wmissing-prototypes]
6813 | int tg_set_cfs_period(struct task_group *tg, long cfs_period_us)
| ^~~~~~~~~~~~~~~~~
kernel/sched/core.c:6826:6: warning: no previous prototype for 'tg_get_cfs_period' [-Wmissing-prototypes]
6826 | long tg_get_cfs_period(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~
vim +/sched_core_get +109 kernel/sched/core.c
108
> 109 void sched_core_get(void)
110 {
111 mutex_lock(&sched_core_mutex);
112 if (!sched_core_count++)
113 __sched_core_enable();
114 mutex_unlock(&sched_core_mutex);
115 }
116
> 117 void sched_core_put(void)
118 {
119 mutex_lock(&sched_core_mutex);
120 if (!--sched_core_count)
121 __sched_core_disable();
122 mutex_unlock(&sched_core_mutex);
123 }
124
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH] arm64/panic: Unify all three existing notifier blocks
by kernel test robot
Hi Anshuman,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on soc/for-next v5.8-rc1 next-20200616]
[cannot apply to arm/for-next xlnx/master kvmarm/next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Anshuman-Khandual/arm64-panic-Un...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-randconfig-r005-20200615 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> arch/arm64/kernel/setup.c:403:6: warning: no previous prototype for function 'dump_kernel_offset' [-Wmissing-prototypes]
void dump_kernel_offset(void)
^
arch/arm64/kernel/setup.c:403:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dump_kernel_offset(void)
^
static
1 warning generated.
vim +/dump_kernel_offset +403 arch/arm64/kernel/setup.c
402
> 403 void dump_kernel_offset(void)
404 {
405 const unsigned long offset = kaslr_offset();
406
407 if (IS_ENABLED(CONFIG_RANDOMIZE_BASE) && offset > 0) {
408 pr_emerg("Kernel Offset: 0x%lx from 0x%lx\n",
409 offset, KIMAGE_VADDR);
410 pr_emerg("PHYS_OFFSET: 0x%llx\n", PHYS_OFFSET);
411 } else {
412 pr_emerg("Kernel Offset: disabled\n");
413 }
414 }
415
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.19 52/59] kernel/sched/fair.c:539:11: error: implicit declaration of function 'is_same_group'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 45baa007ba13bc516470dbd9379b2f7525a087e1
commit: 1727d28632e4f124f314bc19ad4f40ec183fe60e [52/59] FROMLIST: sched/fair: core wide vruntime comparison
config: um-allnoconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 1727d28632e4f124f314bc19ad4f40ec183fe60e
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/asm-generic/bug.h:5,
from ./arch/um/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from kernel/sched/sched.h:5,
from kernel/sched/fair.c:23:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:31:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
31 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:328:9: note: in definition of macro '__compiletime_assert'
328 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:348:2: note: in expansion of macro '_compiletime_assert'
348 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
45 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:69:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
69 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:31:2: note: in expansion of macro 'BUILD_BUG_ON'
31 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from include/linux/cpuset.h:17,
from kernel/sched/sched.h:44,
from kernel/sched/fair.c:23:
include/linux/mm.h: In function 'pgtable_init':
arch/um/include/asm/pgtable.h:35:33: warning: suggest braces around empty body in 'do' statement [-Wempty-body]
35 | #define pgtable_cache_init() do ; while (0)
| ^
include/linux/mm.h:1932:2: note: in expansion of macro 'pgtable_cache_init'
1932 | pgtable_cache_init();
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: In function 'cfs_prio_less':
>> kernel/sched/fair.c:539:11: error: implicit declaration of function 'is_same_group' [-Werror=implicit-function-declaration]
539 | while (!is_same_group(sea, seb)) {
| ^~~~~~~~~~~~~
>> kernel/sched/fair.c:540:23: error: 'struct sched_entity' has no member named 'depth'
540 | int sea_depth = sea->depth;
| ^~
kernel/sched/fair.c:541:23: error: 'struct sched_entity' has no member named 'depth'
541 | int seb_depth = seb->depth;
| ^~
>> kernel/sched/fair.c:554:12: error: 'struct sched_entity' has no member named 'parent'
554 | while (sea->parent)
| ^~
kernel/sched/fair.c:555:12: error: 'struct sched_entity' has no member named 'parent'
555 | sea = sea->parent;
| ^~
kernel/sched/fair.c:556:12: error: 'struct sched_entity' has no member named 'parent'
556 | while (seb->parent)
| ^~
kernel/sched/fair.c:557:12: error: 'struct sched_entity' has no member named 'parent'
557 | seb = seb->parent;
| ^~
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:5214:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes]
5214 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11366:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
11366 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11368:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
11368 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11373:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
11373 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11375:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
11375 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:7613:1: warning: 'pick_task_fair' defined but not used [-Wunused-function]
7613 | pick_task_fair(struct rq *rq)
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/is_same_group +539 kernel/sched/fair.c
528
529 bool cfs_prio_less(struct task_struct *a, struct task_struct *b)
530 {
531 struct sched_entity *sea = &a->se;
532 struct sched_entity *seb = &b->se;
533 bool samecpu = task_cpu(a) == task_cpu(b);
534 struct task_struct *p;
535 s64 delta;
536
537 if (samecpu) {
538 /* vruntime is per cfs_rq */
> 539 while (!is_same_group(sea, seb)) {
> 540 int sea_depth = sea->depth;
541 int seb_depth = seb->depth;
542
543 if (sea_depth >= seb_depth)
544 sea = parent_entity(sea);
545 if (sea_depth <= seb_depth)
546 seb = parent_entity(seb);
547 }
548
549 delta = (s64)(sea->vruntime - seb->vruntime);
550 goto out;
551 }
552
553 /* crosscpu: compare root level se's vruntime to decide priority */
> 554 while (sea->parent)
555 sea = sea->parent;
556 while (seb->parent)
557 seb = seb->parent;
558 delta = (s64)(sea->vruntime - seb->vruntime);
559
560 out:
561 p = delta > 0 ? b : a;
562 trace_printk("picked %s/%d %s: %Ld %Ld %Ld\n", p->comm, p->pid,
563 samecpu ? "samecpu" : "crosscpu",
564 sea->vruntime, seb->vruntime, delta);
565
566 return delta > 0;
567 }
568
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [Intel-gfx] [PATCH] drm/i915/gvt: query if vgpu is active via GETPARAM IOCTL
by kernel test robot
Hi Shaofeng,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip linus/master v5.8-rc1 next-20200616]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Shaofeng-Tang/drm-i915-gvt-query...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-debian-10.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/i915/i915_getparam.c: In function 'i915_getparam_ioctl':
>> drivers/gpu/drm/i915/i915_getparam.c:165:11: error: implicit declaration of function 'intel_vgpu_active'; did you mean 'intel_vtd_active'? [-Werror=implicit-function-declaration]
165 | value = intel_vgpu_active(i915);
| ^~~~~~~~~~~~~~~~~
| intel_vtd_active
cc1: some warnings being treated as errors
vim +165 drivers/gpu/drm/i915/i915_getparam.c
10
11 int i915_getparam_ioctl(struct drm_device *dev, void *data,
12 struct drm_file *file_priv)
13 {
14 struct drm_i915_private *i915 = to_i915(dev);
15 const struct sseu_dev_info *sseu = &RUNTIME_INFO(i915)->sseu;
16 drm_i915_getparam_t *param = data;
17 int value;
18
19 switch (param->param) {
20 case I915_PARAM_IRQ_ACTIVE:
21 case I915_PARAM_ALLOW_BATCHBUFFER:
22 case I915_PARAM_LAST_DISPATCH:
23 case I915_PARAM_HAS_EXEC_CONSTANTS:
24 /* Reject all old ums/dri params. */
25 return -ENODEV;
26 case I915_PARAM_CHIPSET_ID:
27 value = i915->drm.pdev->device;
28 break;
29 case I915_PARAM_REVISION:
30 value = i915->drm.pdev->revision;
31 break;
32 case I915_PARAM_NUM_FENCES_AVAIL:
33 value = i915->ggtt.num_fences;
34 break;
35 case I915_PARAM_HAS_OVERLAY:
36 value = !!i915->overlay;
37 break;
38 case I915_PARAM_HAS_BSD:
39 value = !!intel_engine_lookup_user(i915,
40 I915_ENGINE_CLASS_VIDEO, 0);
41 break;
42 case I915_PARAM_HAS_BLT:
43 value = !!intel_engine_lookup_user(i915,
44 I915_ENGINE_CLASS_COPY, 0);
45 break;
46 case I915_PARAM_HAS_VEBOX:
47 value = !!intel_engine_lookup_user(i915,
48 I915_ENGINE_CLASS_VIDEO_ENHANCE, 0);
49 break;
50 case I915_PARAM_HAS_BSD2:
51 value = !!intel_engine_lookup_user(i915,
52 I915_ENGINE_CLASS_VIDEO, 1);
53 break;
54 case I915_PARAM_HAS_LLC:
55 value = HAS_LLC(i915);
56 break;
57 case I915_PARAM_HAS_WT:
58 value = HAS_WT(i915);
59 break;
60 case I915_PARAM_HAS_ALIASING_PPGTT:
61 value = INTEL_PPGTT(i915);
62 break;
63 case I915_PARAM_HAS_SEMAPHORES:
64 value = !!(i915->caps.scheduler & I915_SCHEDULER_CAP_SEMAPHORES);
65 break;
66 case I915_PARAM_HAS_SECURE_BATCHES:
67 value = HAS_SECURE_BATCHES(i915) && capable(CAP_SYS_ADMIN);
68 break;
69 case I915_PARAM_CMD_PARSER_VERSION:
70 value = i915_cmd_parser_get_version(i915);
71 break;
72 case I915_PARAM_SUBSLICE_TOTAL:
73 value = intel_sseu_subslice_total(sseu);
74 if (!value)
75 return -ENODEV;
76 break;
77 case I915_PARAM_EU_TOTAL:
78 value = sseu->eu_total;
79 if (!value)
80 return -ENODEV;
81 break;
82 case I915_PARAM_HAS_GPU_RESET:
83 value = i915_modparams.enable_hangcheck &&
84 intel_has_gpu_reset(&i915->gt);
85 if (value && intel_has_reset_engine(&i915->gt))
86 value = 2;
87 break;
88 case I915_PARAM_HAS_RESOURCE_STREAMER:
89 value = 0;
90 break;
91 case I915_PARAM_HAS_POOLED_EU:
92 value = HAS_POOLED_EU(i915);
93 break;
94 case I915_PARAM_MIN_EU_IN_POOL:
95 value = sseu->min_eu_in_pool;
96 break;
97 case I915_PARAM_HUC_STATUS:
98 value = intel_huc_check_status(&i915->gt.uc.huc);
99 if (value < 0)
100 return value;
101 break;
102 case I915_PARAM_MMAP_GTT_VERSION:
103 /* Though we've started our numbering from 1, and so class all
104 * earlier versions as 0, in effect their value is undefined as
105 * the ioctl will report EINVAL for the unknown param!
106 */
107 value = i915_gem_mmap_gtt_version();
108 break;
109 case I915_PARAM_HAS_SCHEDULER:
110 value = i915->caps.scheduler;
111 break;
112
113 case I915_PARAM_MMAP_VERSION:
114 /* Remember to bump this if the version changes! */
115 case I915_PARAM_HAS_GEM:
116 case I915_PARAM_HAS_PAGEFLIPPING:
117 case I915_PARAM_HAS_EXECBUF2: /* depends on GEM */
118 case I915_PARAM_HAS_RELAXED_FENCING:
119 case I915_PARAM_HAS_COHERENT_RINGS:
120 case I915_PARAM_HAS_RELAXED_DELTA:
121 case I915_PARAM_HAS_GEN7_SOL_RESET:
122 case I915_PARAM_HAS_WAIT_TIMEOUT:
123 case I915_PARAM_HAS_PRIME_VMAP_FLUSH:
124 case I915_PARAM_HAS_PINNED_BATCHES:
125 case I915_PARAM_HAS_EXEC_NO_RELOC:
126 case I915_PARAM_HAS_EXEC_HANDLE_LUT:
127 case I915_PARAM_HAS_COHERENT_PHYS_GTT:
128 case I915_PARAM_HAS_EXEC_SOFTPIN:
129 case I915_PARAM_HAS_EXEC_ASYNC:
130 case I915_PARAM_HAS_EXEC_FENCE:
131 case I915_PARAM_HAS_EXEC_CAPTURE:
132 case I915_PARAM_HAS_EXEC_BATCH_FIRST:
133 case I915_PARAM_HAS_EXEC_FENCE_ARRAY:
134 case I915_PARAM_HAS_EXEC_SUBMIT_FENCE:
135 /* For the time being all of these are always true;
136 * if some supported hardware does not have one of these
137 * features this value needs to be provided from
138 * INTEL_INFO(), a feature macro, or similar.
139 */
140 value = 1;
141 break;
142 case I915_PARAM_HAS_CONTEXT_ISOLATION:
143 value = intel_engines_has_context_isolation(i915);
144 break;
145 case I915_PARAM_SLICE_MASK:
146 value = sseu->slice_mask;
147 if (!value)
148 return -ENODEV;
149 break;
150 case I915_PARAM_SUBSLICE_MASK:
151 value = sseu->subslice_mask[0];
152 if (!value)
153 return -ENODEV;
154 break;
155 case I915_PARAM_CS_TIMESTAMP_FREQUENCY:
156 value = RUNTIME_INFO(i915)->cs_timestamp_frequency_hz;
157 break;
158 case I915_PARAM_MMAP_GTT_COHERENT:
159 value = INTEL_INFO(i915)->has_coherent_ggtt;
160 break;
161 case I915_PARAM_PERF_REVISION:
162 value = i915_perf_ioctl_version();
163 break;
164 case I915_PARAM_IS_GVT:
> 165 value = intel_vgpu_active(i915);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-5.4 1/45] /tmp/xfrm6_output-968857.s:7444: Error: bad expression
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 3bff92c765fe7f3039b00930c6b85684c9a034d0
commit: 6fac6a4521032728a20eb88b05bc8a0784b27997 [1/45] CHROMIUM: thunderbolt: Add Power Management support for Tiger Lake
config: s390-randconfig-r031-20200615 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3d8149c2a1228609fd7d7c91a04681304a2f0ca9)
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
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390-linux-gnu
git checkout 6fac6a4521032728a20eb88b05bc8a0784b27997
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-5.4 HEAD 3bff92c765fe7f3039b00930c6b85684c9a034d0 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | ^
In file included from net/ipv6/xfrm6_output.c:8:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | ^
In file included from net/ipv6/xfrm6_output.c:8:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from net/ipv6/xfrm6_output.c:8:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from net/ipv6/xfrm6_output.c:8:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:503:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:513:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew(cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:523:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel(cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:585:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:593:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:601:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:610:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:619:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:628:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
20 warnings generated.
/tmp/xfrm6_output-968857.s: Assembler messages:
>> /tmp/xfrm6_output-968857.s:7444: Error: bad expression
>> /tmp/xfrm6_output-968857.s:7444: Error: junk at end of line, first unrecognized character is `r'
clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
--
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | ^
In file included from fs/cifs/cifssmb.c:39:
In file included from fs/cifs/cifspdu.h:25:
In file included from include/net/sock.h:46:
In file included from include/linux/netdevice.h:37:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from fs/cifs/cifssmb.c:39:
In file included from fs/cifs/cifspdu.h:25:
In file included from include/net/sock.h:46:
In file included from include/linux/netdevice.h:37:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:492:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from fs/cifs/cifssmb.c:39:
In file included from fs/cifs/cifspdu.h:25:
In file included from include/net/sock.h:46:
In file included from include/linux/netdevice.h:37:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:76:
include/asm-generic/io.h:503:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:513:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew(cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:523:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel(cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:585:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:593:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:601:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:610:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:619:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:628:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
20 warnings generated.
/tmp/cifssmb-874627.s: Assembler messages:
/tmp/cifssmb-874627.s:49262: Error: bad expression
>> /tmp/cifssmb-874627.s:49262: Error: junk at end of line, first unrecognized character is `r'
/tmp/cifssmb-874627.s:53169: Error: bad expression
/tmp/cifssmb-874627.s:53169: Error: junk at end of line, first unrecognized character is `r'
/tmp/cifssmb-874627.s:54967: Error: bad expression
/tmp/cifssmb-874627.s:54967: Error: junk at end of line, first unrecognized character is `r'
clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months