[linux-review:UPDATE-20200430-005539/Ville-Syrjala/drm-Put-drm_display_mode-on-diet/20200429-052142 13/16] drivers/gpu/drm/i915/display/intel_display.c:17377:30: error: 'I915_MODE_FLAG_INHERITED' undeclared; did you mean 'I915_MODE_FLAG_DSI_USE_TE1'?
by kbuild test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200430-005539/Ville-Syr...
head: cf635d7d77b47bbd1b7bacd96c631a81049532d1
commit: 7f2ccc7bc678ca80494fb17a73c13e9c7fcbe72f [13/16] drm/i915: Replace I915_MODE_FLAG_INHERITED with a boolean
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 7f2ccc7bc678ca80494fb17a73c13e9c7fcbe72f
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/display/intel_display.c: In function 'sanitize_watermarks_add_affected':
>> drivers/gpu/drm/i915/display/intel_display.c:17377:30: error: 'I915_MODE_FLAG_INHERITED' undeclared (first use in this function); did you mean 'I915_MODE_FLAG_DSI_USE_TE1'?
crtc_state->mode_flags |= I915_MODE_FLAG_INHERITED;
^~~~~~~~~~~~~~~~~~~~~~~~
I915_MODE_FLAG_DSI_USE_TE1
drivers/gpu/drm/i915/display/intel_display.c:17377:30: note: each undeclared identifier is reported only once for each function it appears in
vim +17377 drivers/gpu/drm/i915/display/intel_display.c
f817586cebf1b94 drivers/gpu/drm/i915/intel_display.c Daniel Vetter 2012-04-10 17359
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17360 static int sanitize_watermarks_add_affected(struct drm_atomic_state *state)
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17361 {
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17362 struct drm_plane *plane;
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17363 struct intel_crtc *crtc;
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17364
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17365 for_each_intel_crtc(state->dev, crtc) {
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17366 struct intel_crtc_state *crtc_state;
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17367
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17368 crtc_state = intel_atomic_get_crtc_state(state, crtc);
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17369 if (IS_ERR(crtc_state))
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17370 return PTR_ERR(crtc_state);
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17371
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17372 if (crtc_state->hw.active) {
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17373 /*
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17374 * Preserve the inherited flag to avoid
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17375 * taking the full modeset path.
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17376 */
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 @17377 crtc_state->mode_flags |= I915_MODE_FLAG_INHERITED;
db4e8603846679f drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-04-29 17378 }
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17379 }
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17380
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17381 drm_for_each_plane(plane, state->dev) {
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17382 struct drm_plane_state *plane_state;
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17383
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17384 plane_state = drm_atomic_get_plane_state(state, plane);
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17385 if (IS_ERR(plane_state))
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17386 return PTR_ERR(plane_state);
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17387 }
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17388
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17389 return 0;
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17390 }
d1b2828af0cc414 drivers/gpu/drm/i915/display/intel_display.c Ville Syrjälä 2020-01-22 17391
:::::: The code at line 17377 was first introduced by commit
:::::: db4e8603846679f93c70f4c7f1f2a803df34af07 drm/i915: Stop using mode->private_flags
:::::: TO: Ville Syrjälä <ville.syrjala(a)linux.intel.com>
:::::: CC: 0day robot <lkp(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[jpirko-mlxsw:petrm_wip 31/31] net/sched/cls_api.c:1263:11: error: 'QEVENT_NONE' undeclared; did you mean 'ET_NONE'?
by kbuild test robot
tree: https://github.com/jpirko/linux_mlxsw petrm_wip
head: c92561acddb910e2e36c78d9ec7111d3d770fafb
commit: c92561acddb910e2e36c78d9ec7111d3d770fafb [31/31] qevent wip
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c92561acddb910e2e36c78d9ec7111d3d770fafb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
net/sched/cls_api.c: In function 'tcf_block_find':
>> net/sched/cls_api.c:1263:11: error: 'QEVENT_NONE' undeclared (first use in this function); did you mean 'ET_NONE'?
1263 | QEVENT_NONE, extack);
| ^~~~~~~~~~~
| ET_NONE
net/sched/cls_api.c:1263:11: note: each undeclared identifier is reported only once for each function it appears in
net/sched/cls_api.c: At top level:
>> net/sched/cls_api.c:1996:3: error: 'TCA_QEVENT_HOOK' undeclared here (not in a function); did you mean 'TCA_QEVENT_ACT'?
1996 | [TCA_QEVENT_HOOK] = { .type = NLA_U32 },
| ^~~~~~~~~~~~~~~
| TCA_QEVENT_ACT
>> net/sched/cls_api.c:1996:3: error: array index in initializer not of integer type
net/sched/cls_api.c:1996:3: note: (near initialization for 'tc_qevent_policy')
net/sched/cls_api.c: In function 'tc_new_tfilter':
>> net/sched/cls_api.c:2103:17: error: 'QEVENT_DROP' undeclared (first use in this function)
2103 | qevent_hook = QEVENT_DROP;
| ^~~~~~~~~~~
net/sched/cls_api.c:2105:17: error: 'QEVENT_NONE' undeclared (first use in this function); did you mean 'ET_NONE'?
2105 | qevent_hook = QEVENT_NONE;
| ^~~~~~~~~~~
| ET_NONE
net/sched/cls_api.c: In function 'tc_del_tfilter':
net/sched/cls_api.c:2322:11: error: 'QEVENT_NONE' undeclared (first use in this function); did you mean 'ET_NONE'?
2322 | QEVENT_NONE, extack);
| ^~~~~~~~~~~
| ET_NONE
net/sched/cls_api.c: In function 'tc_get_tfilter':
net/sched/cls_api.c:2480:11: error: 'QEVENT_NONE' undeclared (first use in this function); did you mean 'ET_NONE'?
2480 | QEVENT_NONE, extack);
| ^~~~~~~~~~~
| ET_NONE
--
net/sched/sch_red.c: In function 'red_qevent_change':
>> net/sched/sch_red.c:464:7: error: 'QEVENT_DROP' undeclared (first use in this function)
464 | case QEVENT_DROP:
| ^~~~~~~~~~~
net/sched/sch_red.c:464:7: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from include/linux/kernel.h:11,
from security/selinux/nlmsgtab.c:10:
security/selinux/nlmsgtab.c: In function 'selinux_nlmsg_lookup':
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_208' declared with attribute error: BUILD_BUG_ON failed: RTM_MAX != (RTM_NEWVLAN + 3)
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
331 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
>> security/selinux/nlmsgtab.c:174:3: note: in expansion of macro 'BUILD_BUG_ON'
174 | BUILD_BUG_ON(RTM_MAX != (RTM_NEWVLAN + 3));
| ^~~~~~~~~~~~
vim +1263 net/sched/cls_api.c
18d3eefb17cf19 Vlad Buslov 2019-02-11 1247
18d3eefb17cf19 Vlad Buslov 2019-02-11 1248 /* Find tcf block.
18d3eefb17cf19 Vlad Buslov 2019-02-11 1249 * Set q, parent, cl when appropriate.
18d3eefb17cf19 Vlad Buslov 2019-02-11 1250 */
18d3eefb17cf19 Vlad Buslov 2019-02-11 1251
18d3eefb17cf19 Vlad Buslov 2019-02-11 1252 static struct tcf_block *tcf_block_find(struct net *net, struct Qdisc **q,
18d3eefb17cf19 Vlad Buslov 2019-02-11 1253 u32 *parent, unsigned long *cl,
18d3eefb17cf19 Vlad Buslov 2019-02-11 1254 int ifindex, u32 block_index,
18d3eefb17cf19 Vlad Buslov 2019-02-11 1255 struct netlink_ext_ack *extack)
18d3eefb17cf19 Vlad Buslov 2019-02-11 1256 {
18d3eefb17cf19 Vlad Buslov 2019-02-11 1257 struct tcf_block *block;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1258 int err = 0;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1259
18d3eefb17cf19 Vlad Buslov 2019-02-11 1260 ASSERT_RTNL();
18d3eefb17cf19 Vlad Buslov 2019-02-11 1261
f64f6128984da2 Petr Machata 2020-04-24 1262 err = __tcf_qdisc_find(net, q, parent, ifindex, true,
f64f6128984da2 Petr Machata 2020-04-24 @1263 QEVENT_NONE, extack);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1264 if (err)
18d3eefb17cf19 Vlad Buslov 2019-02-11 1265 goto errout;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1266
18d3eefb17cf19 Vlad Buslov 2019-02-11 1267 err = __tcf_qdisc_cl_find(*q, *parent, cl, ifindex, extack);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1268 if (err)
18d3eefb17cf19 Vlad Buslov 2019-02-11 1269 goto errout_qdisc;
18d3eefb17cf19 Vlad Buslov 2019-02-11 1270
18d3eefb17cf19 Vlad Buslov 2019-02-11 1271 block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack);
af736bf071e8cc Dan Carpenter 2019-02-18 1272 if (IS_ERR(block)) {
af736bf071e8cc Dan Carpenter 2019-02-18 1273 err = PTR_ERR(block);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1274 goto errout_qdisc;
af736bf071e8cc Dan Carpenter 2019-02-18 1275 }
18d3eefb17cf19 Vlad Buslov 2019-02-11 1276
18d3eefb17cf19 Vlad Buslov 2019-02-11 1277 return block;
e368fdb61d8e7c Vlad Buslov 2018-09-24 1278
e368fdb61d8e7c Vlad Buslov 2018-09-24 1279 errout_qdisc:
18d3eefb17cf19 Vlad Buslov 2019-02-11 1280 if (*q)
e368fdb61d8e7c Vlad Buslov 2018-09-24 1281 qdisc_put(*q);
18d3eefb17cf19 Vlad Buslov 2019-02-11 1282 errout:
460b360104d515 Cong Wang 2018-09-27 1283 *q = NULL;
e368fdb61d8e7c Vlad Buslov 2018-09-24 1284 return ERR_PTR(err);
e368fdb61d8e7c Vlad Buslov 2018-09-24 1285 }
e368fdb61d8e7c Vlad Buslov 2018-09-24 1286
:::::: The code at line 1263 was first introduced by commit
:::::: f64f6128984da2c9961b5df9c3f27a129221964c qevent wip
:::::: TO: Petr Machata <petrm(a)mellanox.com>
:::::: CC: Petr Machata <petrm(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 2/2] ima: add policy support for the new file open MAY_OPENEXEC flag
by kbuild test robot
Hi Mimi,
I love your patch! Yet something to improve:
[auto build test ERROR on integrity/next-integrity]
[also build test ERROR on linus/master v5.7-rc3 next-20200429]
[cannot apply to security/next-testing]
[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/Mimi-Zohar/ima-extending-IMA-pol...
base: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
security/integrity/ima/ima_main.c: In function 'ima_file_check':
>> security/integrity/ima/ima_main.c:442:20: error: 'MAY_OPENEXEC' undeclared (first use in this function); did you mean 'MAY_OPEN'?
442 | MAY_EXEC | MAY_OPENEXEC |
| ^~~~~~~~~~~~
| MAY_OPEN
security/integrity/ima/ima_main.c:442:20: note: each undeclared identifier is reported only once for each function it appears in
>> security/integrity/ima/ima_main.c:444:1: warning: control reaches end of non-void function [-Wreturn-type]
444 | }
| ^
--
security/integrity/ima/ima_policy.c: In function 'ima_parse_rule':
>> security/integrity/ima/ima_policy.c:1100:19: error: 'MAY_OPENEXEC' undeclared (first use in this function); did you mean 'MAY_OPEN'?
1100 | entry->mask = MAY_OPENEXEC;
| ^~~~~~~~~~~~
| MAY_OPEN
security/integrity/ima/ima_policy.c:1100:19: note: each undeclared identifier is reported only once for each function it appears in
security/integrity/ima/ima_policy.c: In function 'ima_policy_show':
security/integrity/ima/ima_policy.c:1535:21: error: 'MAY_OPENEXEC' undeclared (first use in this function); did you mean 'MAY_OPEN'?
1535 | if (entry->mask & MAY_OPENEXEC)
| ^~~~~~~~~~~~
| MAY_OPEN
vim +442 security/integrity/ima/ima_main.c
424
425 /**
426 * ima_path_check - based on policy, collect/store measurement.
427 * @file: pointer to the file to be measured
428 * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND
429 *
430 * Measure files based on the ima_must_measure() policy decision.
431 *
432 * On success return 0. On integrity appraisal error, assuming the file
433 * is in policy and IMA-appraisal is in enforcing mode, return -EACCES.
434 */
435 int ima_file_check(struct file *file, int mask)
436 {
437 u32 secid;
438
439 security_task_getsecid(current, &secid);
440 return process_measurement(file, current_cred(), secid, NULL, 0,
441 mask & (MAY_READ | MAY_WRITE |
> 442 MAY_EXEC | MAY_OPENEXEC |
443 MAY_APPEND), FILE_CHECK);
> 444 }
445 EXPORT_SYMBOL_GPL(ima_file_check);
446
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[RFC PATCH] virtio: virtio_pool can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
virtio_bounce.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/virtio/virtio_bounce.c b/drivers/virtio/virtio_bounce.c
index 3de8e0eb71e48..5a68d48667c42 100644
--- a/drivers/virtio/virtio_bounce.c
+++ b/drivers/virtio/virtio_bounce.c
@@ -19,7 +19,7 @@
static phys_addr_t bounce_buf_paddr;
static void *bounce_buf_vaddr;
static size_t bounce_buf_size;
-struct swiotlb_pool *virtio_pool;
+static struct swiotlb_pool *virtio_pool;
#define VIRTIO_MAX_BOUNCE_SIZE (16*4096)
@@ -76,7 +76,7 @@ static void virtio_unmap_page(struct device *dev, dma_addr_t dev_addr,
size, dir, attrs);
}
-size_t virtio_max_mapping_size(struct device *dev)
+static size_t virtio_max_mapping_size(struct device *dev)
{
return VIRTIO_MAX_BOUNCE_SIZE;
}
2 years, 2 months
Re: [PATCH 5/5] virtio: Add bounce DMA ops
by kbuild test robot
Hi Srivatsa,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on vhost/linux-next]
[also build test WARNING on xen-tip/linux-next linus/master v5.7-rc3 next-20200428]
[cannot apply to swiotlb/linux-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/Srivatsa-Vaddagiri/virtio-on-Typ...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-191-gc51a0382-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_bounce.c:22:21: sparse: sparse: symbol 'virtio_pool' was not declared. Should it be static?
>> drivers/virtio/virtio_bounce.c:79:8: sparse: sparse: symbol 'virtio_max_mapping_size' was not declared. Should it be static?
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, 2 months
[djwong-xfs:repair-metadata-atomically 190/204] fs/xfs/libxfs/xfs_swapext.c:328:9: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git repair-metadata-atomically
head: 86c04a058fa54dc7345c478b33d9e958a3eafae6
commit: 04cc199fb4900199ac53eea844b6f96d5b9db3af [190/204] xfs: create deferred log items for extent swapping
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 04cc199fb4900199ac53eea844b6f96d5b9db3af
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/uapi/linux/signal.h:6,
from include/linux/signal_types.h:10,
from include/linux/sched.h:29,
from fs/xfs/kmem.h:10,
from fs/xfs/xfs_linux.h:24,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_swapext.c:6:
arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
15 | #define si_flags _sifields._sigfault._flags
| ^
fs/xfs/libxfs/xfs_swapext.h:31:12: note: in expansion of macro 'si_flags'
31 | uint64_t si_flags;
| ^~~~~~~~
fs/xfs/libxfs/xfs_swapext.c: In function 'xfs_swapext_finish_one':
fs/xfs/libxfs/xfs_swapext.c:221:18: error: 'struct xfs_swapext_intent' has no member named '_sifields'
221 | whichfork = (sxi->si_flags & XFS_SWAP_EXTENT_ATTR_FORK) ?
| ^~
>> fs/xfs/libxfs/xfs_swapext.c:328:9: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
328 | sxi->si_isize1);
| ^~
fs/xfs/libxfs/xfs_swapext.c:330:9: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
330 | sxi->si_isize2);
| ^~
fs/xfs/libxfs/xfs_swapext.c:350:10: error: 'struct xfs_swapext_intent' has no member named '_sifields'
350 | (sxi->si_flags & XFS_SWAP_EXTENT_SET_SIZES)) {
| ^~
fs/xfs/libxfs/xfs_swapext.c:351:33: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
351 | sxi->si_ip1->i_d.di_size = sxi->si_isize1;
| ^~
fs/xfs/libxfs/xfs_swapext.c:352:33: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
352 | sxi->si_ip2->i_d.di_size = sxi->si_isize2;
| ^~
fs/xfs/libxfs/xfs_swapext.c: In function 'xfs_swapext_init_intent':
fs/xfs/libxfs/xfs_swapext.c:374:5: error: 'struct xfs_swapext_intent' has no member named '_sifields'
374 | sxi->si_flags = 0;
| ^~
fs/xfs/libxfs/xfs_swapext.c:376:6: error: 'struct xfs_swapext_intent' has no member named '_sifields'
376 | sxi->si_flags |= XFS_SWAP_EXTENT_ATTR_FORK;
| ^~
fs/xfs/libxfs/xfs_swapext.c:377:5: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
377 | sxi->si_isize1 = sxi->si_isize2 = -1;
| ^~
fs/xfs/libxfs/xfs_swapext.c:377:22: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
377 | sxi->si_isize1 = sxi->si_isize2 = -1;
| ^~
fs/xfs/libxfs/xfs_swapext.c:379:6: error: 'struct xfs_swapext_intent' has no member named '_sifields'
379 | sxi->si_flags |= XFS_SWAP_EXTENT_SET_SIZES;
| ^~
fs/xfs/libxfs/xfs_swapext.c:380:6: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
380 | sxi->si_isize1 = ip2->i_d.di_size;
| ^~
fs/xfs/libxfs/xfs_swapext.c:381:6: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
381 | sxi->si_isize2 = ip1->i_d.di_size;
| ^~
--
In file included from include/uapi/linux/signal.h:6,
from include/linux/signal_types.h:10,
from include/linux/sched.h:29,
from fs/xfs/kmem.h:10,
from fs/xfs/xfs_linux.h:24,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_swapext_item.c:6:
arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
15 | #define si_flags _sifields._sigfault._flags
| ^
fs/xfs/libxfs/xfs_swapext.h:31:12: note: in expansion of macro 'si_flags'
31 | uint64_t si_flags;
| ^~~~~~~~
fs/xfs/xfs_swapext_item.c: In function 'xfs_swapext_log_item':
fs/xfs/xfs_swapext_item.c:315:21: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
315 | se->se_isize1 = sxi->si_isize1;
| ^~
>> fs/xfs/xfs_swapext_item.c:316:21: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
316 | se->se_isize2 = sxi->si_isize2;
| ^~
fs/xfs/xfs_swapext_item.c:317:20: error: 'struct xfs_swapext_intent' has no member named '_sifields'
317 | se->se_flags = sxi->si_flags;
| ^~
fs/xfs/xfs_swapext_item.c: In function 'xfs_sxi_recover':
fs/xfs/xfs_swapext_item.c:518:5: error: 'struct xfs_swapext_intent' has no member named '_sifields'
518 | sxi.si_flags = se->se_flags;
| ^
fs/xfs/xfs_swapext_item.c:522:5: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
522 | sxi.si_isize1 = se->se_isize1;
| ^
fs/xfs/xfs_swapext_item.c:523:5: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
523 | sxi.si_isize2 = se->se_isize2;
| ^
vim +328 fs/xfs/libxfs/xfs_swapext.c
208
209 /* Finish one extent swap, possibly log more. */
210 int
211 xfs_swapext_finish_one(
212 struct xfs_trans *tp,
213 struct xfs_swapext_intent *sxi)
214 {
215 struct xfs_bmbt_irec irec1, irec2;
216 int whichfork;
217 int nimaps;
218 int bmap_flags;
219 int error;
220
221 whichfork = (sxi->si_flags & XFS_SWAP_EXTENT_ATTR_FORK) ?
222 XFS_ATTR_FORK : XFS_DATA_FORK;
223 bmap_flags = xfs_bmapi_aflag(whichfork);
224
225 while (sxi->si_blockcount > 0) {
226 int64_t ip1_delta = 0, ip2_delta = 0;
227
228 /* Read extent from the first file */
229 nimaps = 1;
230 error = xfs_bmapi_read(sxi->si_ip1, sxi->si_startoff1,
231 sxi->si_blockcount, &irec1, &nimaps,
232 bmap_flags);
233 if (error)
234 return error;
235 if (nimaps != 1 ||
236 irec1.br_startblock == DELAYSTARTBLOCK ||
237 irec1.br_startoff != sxi->si_startoff1) {
238 /*
239 * We should never get no mapping or a delalloc extent
240 * or something that doesn't match what we asked for,
241 * since the caller flushed both inodes and we hold the
242 * ILOCKs for both inodes.
243 */
244 ASSERT(0);
245 return -EINVAL;
246 }
247
248 /* Read extent from the second file */
249 nimaps = 1;
250 error = xfs_bmapi_read(sxi->si_ip2, sxi->si_startoff2,
251 irec1.br_blockcount, &irec2, &nimaps,
252 bmap_flags);
253 if (error)
254 return error;
255 if (nimaps != 1 ||
256 irec2.br_startblock == DELAYSTARTBLOCK ||
257 irec2.br_startoff != sxi->si_startoff2) {
258 /*
259 * We should never get no mapping or a delalloc extent
260 * or something that doesn't match what we asked for,
261 * since the caller flushed both inodes and we hold the
262 * ILOCKs for both inodes.
263 */
264 ASSERT(0);
265 return -EINVAL;
266 }
267
268 /*
269 * We can only swap as many blocks as the smaller of the two
270 * extent maps.
271 */
272 irec1.br_blockcount = min(irec1.br_blockcount,
273 irec2.br_blockcount);
274
275 trace_xfs_swapext_extent1(sxi->si_ip1, &irec1);
276 trace_xfs_swapext_extent2(sxi->si_ip2, &irec2);
277
278 /*
279 * Two extents mapped to the same physical block must not have
280 * different states; that's filesystem corruption. Move on to
281 * the next extent if they're both holes or both the same
282 * physical extent.
283 */
284 if (irec1.br_startblock == irec2.br_startblock) {
285 if (irec1.br_state != irec2.br_state)
286 return -EFSCORRUPTED;
287
288 sxi->si_startoff1 += irec1.br_blockcount;
289 sxi->si_startoff2 += irec1.br_blockcount;
290 sxi->si_blockcount -= irec1.br_blockcount;
291 continue;
292 }
293
294 /* Update quota accounting. */
295 if (xfs_bmap_is_mapped_extent(&irec1)) {
296 ip1_delta -= irec1.br_blockcount;
297 ip2_delta += irec1.br_blockcount;
298 }
299 if (xfs_bmap_is_mapped_extent(&irec2)) {
300 ip1_delta += irec2.br_blockcount;
301 ip2_delta -= irec2.br_blockcount;
302 }
303
304 if (ip1_delta)
305 xfs_trans_mod_dquot_byino(tp, sxi->si_ip1,
306 XFS_TRANS_DQ_BCOUNT, ip1_delta);
307 if (ip2_delta)
308 xfs_trans_mod_dquot_byino(tp, sxi->si_ip2,
309 XFS_TRANS_DQ_BCOUNT, ip2_delta);
310
311 /* Remove both mappings. */
312 xfs_bmap_unmap_extent(tp, sxi->si_ip1, whichfork, &irec1);
313 xfs_bmap_unmap_extent(tp, sxi->si_ip2, whichfork, &irec2);
314
315 /*
316 * Re-add both mappings. We swap the file offsets between the
317 * two maps and add the opposite map, which has the effect of
318 * filling the logical offsets we just unmapped, but with with
319 * the physical mapping information swapped.
320 */
321 swap(irec1.br_startoff, irec2.br_startoff);
322 xfs_bmap_map_extent(tp, sxi->si_ip1, whichfork, &irec2);
323 xfs_bmap_map_extent(tp, sxi->si_ip2, whichfork, &irec1);
324
325 /* Make sure we're not mapping extents past EOF. */
326 if (whichfork == XFS_DATA_FORK) {
327 xfs_swapext_update_size(tp, sxi->si_ip1, &irec2,
> 328 sxi->si_isize1);
329 xfs_swapext_update_size(tp, sxi->si_ip2, &irec1,
330 sxi->si_isize2);
331 }
332
333 /*
334 * Advance our cursor and exit. The caller (either defer ops
335 * or log recovery) will log the SXD item, and if *blockcount
336 * is nonzero, it will log a new SXI item for the remainder
337 * and call us back.
338 */
339 sxi->si_startoff1 += irec1.br_blockcount;
340 sxi->si_startoff2 += irec1.br_blockcount;
341 sxi->si_blockcount -= irec1.br_blockcount;
342 break;
343 }
344
345 /*
346 * If we've reached the end of the remap operation and the caller
347 * wanted us to exchange the sizes, do that now.
348 */
349 if (sxi->si_blockcount == 0 &&
350 (sxi->si_flags & XFS_SWAP_EXTENT_SET_SIZES)) {
351 sxi->si_ip1->i_d.di_size = sxi->si_isize1;
352 sxi->si_ip2->i_d.di_size = sxi->si_isize2;
353 xfs_trans_log_inode(tp, sxi->si_ip1, XFS_ILOG_CORE);
354 xfs_trans_log_inode(tp, sxi->si_ip2, XFS_ILOG_CORE);
355 }
356
357 if (xfs_swapext_has_more_work(sxi))
358 trace_xfs_swapext_defer(tp->t_mountp, sxi);
359 return 0;
360 }
361
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[djwong-xfs:repair-metadata-atomically 190/204] fs/xfs/libxfs/xfs_swapext.c:221:18: error: 'struct xfs_swapext_intent' has no member named '_sifields'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git repair-metadata-atomically
head: 86c04a058fa54dc7345c478b33d9e958a3eafae6
commit: 04cc199fb4900199ac53eea844b6f96d5b9db3af [190/204] xfs: create deferred log items for extent swapping
config: ia64-defconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 04cc199fb4900199ac53eea844b6f96d5b9db3af
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/uapi/linux/signal.h:6,
from include/linux/signal_types.h:10,
from include/linux/sched.h:29,
from fs/xfs/kmem.h:10,
from fs/xfs/xfs_linux.h:24,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
>> arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
15 | #define si_flags _sifields._sigfault._flags
| ^
fs/xfs/libxfs/xfs_swapext.h:31:12: note: in expansion of macro 'si_flags'
31 | uint64_t si_flags;
| ^~~~~~~~
--
In file included from include/uapi/linux/signal.h:6,
from include/linux/signal_types.h:10,
from include/linux/sched.h:29,
from fs/xfs/kmem.h:10,
from fs/xfs/xfs_linux.h:24,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_swapext.c:6:
>> arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
15 | #define si_flags _sifields._sigfault._flags
| ^
fs/xfs/libxfs/xfs_swapext.h:31:12: note: in expansion of macro 'si_flags'
31 | uint64_t si_flags;
| ^~~~~~~~
fs/xfs/libxfs/xfs_swapext.c: In function 'xfs_swapext_finish_one':
>> fs/xfs/libxfs/xfs_swapext.c:221:18: error: 'struct xfs_swapext_intent' has no member named '_sifields'
221 | whichfork = (sxi->si_flags & XFS_SWAP_EXTENT_ATTR_FORK) ?
| ^~
fs/xfs/libxfs/xfs_swapext.c:328:9: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
328 | sxi->si_isize1);
| ^~
>> fs/xfs/libxfs/xfs_swapext.c:330:9: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
330 | sxi->si_isize2);
| ^~
fs/xfs/libxfs/xfs_swapext.c:350:10: error: 'struct xfs_swapext_intent' has no member named '_sifields'
350 | (sxi->si_flags & XFS_SWAP_EXTENT_SET_SIZES)) {
| ^~
fs/xfs/libxfs/xfs_swapext.c:351:33: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
351 | sxi->si_ip1->i_d.di_size = sxi->si_isize1;
| ^~
fs/xfs/libxfs/xfs_swapext.c:352:33: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
352 | sxi->si_ip2->i_d.di_size = sxi->si_isize2;
| ^~
fs/xfs/libxfs/xfs_swapext.c: In function 'xfs_swapext_init_intent':
fs/xfs/libxfs/xfs_swapext.c:374:5: error: 'struct xfs_swapext_intent' has no member named '_sifields'
374 | sxi->si_flags = 0;
| ^~
fs/xfs/libxfs/xfs_swapext.c:376:6: error: 'struct xfs_swapext_intent' has no member named '_sifields'
376 | sxi->si_flags |= XFS_SWAP_EXTENT_ATTR_FORK;
| ^~
fs/xfs/libxfs/xfs_swapext.c:377:5: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
377 | sxi->si_isize1 = sxi->si_isize2 = -1;
| ^~
fs/xfs/libxfs/xfs_swapext.c:377:22: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
377 | sxi->si_isize1 = sxi->si_isize2 = -1;
| ^~
fs/xfs/libxfs/xfs_swapext.c:379:6: error: 'struct xfs_swapext_intent' has no member named '_sifields'
379 | sxi->si_flags |= XFS_SWAP_EXTENT_SET_SIZES;
| ^~
fs/xfs/libxfs/xfs_swapext.c:380:6: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
380 | sxi->si_isize1 = ip2->i_d.di_size;
| ^~
fs/xfs/libxfs/xfs_swapext.c:381:6: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
381 | sxi->si_isize2 = ip1->i_d.di_size;
| ^~
--
In file included from include/uapi/linux/signal.h:6,
from include/linux/signal_types.h:10,
from include/linux/sched.h:29,
from fs/xfs/kmem.h:10,
from fs/xfs/xfs_linux.h:24,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_swapext_item.c:6:
>> arch/ia64/include/uapi/asm/siginfo.h:15:27: error: expected ':', ',', ';', '}' or '__attribute__' before '.' token
15 | #define si_flags _sifields._sigfault._flags
| ^
fs/xfs/libxfs/xfs_swapext.h:31:12: note: in expansion of macro 'si_flags'
31 | uint64_t si_flags;
| ^~~~~~~~
fs/xfs/xfs_swapext_item.c: In function 'xfs_swapext_log_item':
>> fs/xfs/xfs_swapext_item.c:315:21: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
315 | se->se_isize1 = sxi->si_isize1;
| ^~
fs/xfs/xfs_swapext_item.c:316:21: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
316 | se->se_isize2 = sxi->si_isize2;
| ^~
>> fs/xfs/xfs_swapext_item.c:317:20: error: 'struct xfs_swapext_intent' has no member named '_sifields'
317 | se->se_flags = sxi->si_flags;
| ^~
fs/xfs/xfs_swapext_item.c: In function 'xfs_sxi_recover':
fs/xfs/xfs_swapext_item.c:518:5: error: 'struct xfs_swapext_intent' has no member named '_sifields'
518 | sxi.si_flags = se->se_flags;
| ^
fs/xfs/xfs_swapext_item.c:522:5: error: 'struct xfs_swapext_intent' has no member named 'si_isize1'
522 | sxi.si_isize1 = se->se_isize1;
| ^
fs/xfs/xfs_swapext_item.c:523:5: error: 'struct xfs_swapext_intent' has no member named 'si_isize2'
523 | sxi.si_isize2 = se->se_isize2;
| ^
vim +221 fs/xfs/libxfs/xfs_swapext.c
208
209 /* Finish one extent swap, possibly log more. */
210 int
211 xfs_swapext_finish_one(
212 struct xfs_trans *tp,
213 struct xfs_swapext_intent *sxi)
214 {
215 struct xfs_bmbt_irec irec1, irec2;
216 int whichfork;
217 int nimaps;
218 int bmap_flags;
219 int error;
220
> 221 whichfork = (sxi->si_flags & XFS_SWAP_EXTENT_ATTR_FORK) ?
222 XFS_ATTR_FORK : XFS_DATA_FORK;
223 bmap_flags = xfs_bmapi_aflag(whichfork);
224
225 while (sxi->si_blockcount > 0) {
226 int64_t ip1_delta = 0, ip2_delta = 0;
227
228 /* Read extent from the first file */
229 nimaps = 1;
230 error = xfs_bmapi_read(sxi->si_ip1, sxi->si_startoff1,
231 sxi->si_blockcount, &irec1, &nimaps,
232 bmap_flags);
233 if (error)
234 return error;
235 if (nimaps != 1 ||
236 irec1.br_startblock == DELAYSTARTBLOCK ||
237 irec1.br_startoff != sxi->si_startoff1) {
238 /*
239 * We should never get no mapping or a delalloc extent
240 * or something that doesn't match what we asked for,
241 * since the caller flushed both inodes and we hold the
242 * ILOCKs for both inodes.
243 */
244 ASSERT(0);
245 return -EINVAL;
246 }
247
248 /* Read extent from the second file */
249 nimaps = 1;
250 error = xfs_bmapi_read(sxi->si_ip2, sxi->si_startoff2,
251 irec1.br_blockcount, &irec2, &nimaps,
252 bmap_flags);
253 if (error)
254 return error;
255 if (nimaps != 1 ||
256 irec2.br_startblock == DELAYSTARTBLOCK ||
257 irec2.br_startoff != sxi->si_startoff2) {
258 /*
259 * We should never get no mapping or a delalloc extent
260 * or something that doesn't match what we asked for,
261 * since the caller flushed both inodes and we hold the
262 * ILOCKs for both inodes.
263 */
264 ASSERT(0);
265 return -EINVAL;
266 }
267
268 /*
269 * We can only swap as many blocks as the smaller of the two
270 * extent maps.
271 */
272 irec1.br_blockcount = min(irec1.br_blockcount,
273 irec2.br_blockcount);
274
275 trace_xfs_swapext_extent1(sxi->si_ip1, &irec1);
276 trace_xfs_swapext_extent2(sxi->si_ip2, &irec2);
277
278 /*
279 * Two extents mapped to the same physical block must not have
280 * different states; that's filesystem corruption. Move on to
281 * the next extent if they're both holes or both the same
282 * physical extent.
283 */
284 if (irec1.br_startblock == irec2.br_startblock) {
285 if (irec1.br_state != irec2.br_state)
286 return -EFSCORRUPTED;
287
288 sxi->si_startoff1 += irec1.br_blockcount;
289 sxi->si_startoff2 += irec1.br_blockcount;
290 sxi->si_blockcount -= irec1.br_blockcount;
291 continue;
292 }
293
294 /* Update quota accounting. */
295 if (xfs_bmap_is_mapped_extent(&irec1)) {
296 ip1_delta -= irec1.br_blockcount;
297 ip2_delta += irec1.br_blockcount;
298 }
299 if (xfs_bmap_is_mapped_extent(&irec2)) {
300 ip1_delta += irec2.br_blockcount;
301 ip2_delta -= irec2.br_blockcount;
302 }
303
304 if (ip1_delta)
305 xfs_trans_mod_dquot_byino(tp, sxi->si_ip1,
306 XFS_TRANS_DQ_BCOUNT, ip1_delta);
307 if (ip2_delta)
308 xfs_trans_mod_dquot_byino(tp, sxi->si_ip2,
309 XFS_TRANS_DQ_BCOUNT, ip2_delta);
310
311 /* Remove both mappings. */
312 xfs_bmap_unmap_extent(tp, sxi->si_ip1, whichfork, &irec1);
313 xfs_bmap_unmap_extent(tp, sxi->si_ip2, whichfork, &irec2);
314
315 /*
316 * Re-add both mappings. We swap the file offsets between the
317 * two maps and add the opposite map, which has the effect of
318 * filling the logical offsets we just unmapped, but with with
319 * the physical mapping information swapped.
320 */
321 swap(irec1.br_startoff, irec2.br_startoff);
322 xfs_bmap_map_extent(tp, sxi->si_ip1, whichfork, &irec2);
323 xfs_bmap_map_extent(tp, sxi->si_ip2, whichfork, &irec1);
324
325 /* Make sure we're not mapping extents past EOF. */
326 if (whichfork == XFS_DATA_FORK) {
327 xfs_swapext_update_size(tp, sxi->si_ip1, &irec2,
328 sxi->si_isize1);
329 xfs_swapext_update_size(tp, sxi->si_ip2, &irec1,
> 330 sxi->si_isize2);
331 }
332
333 /*
334 * Advance our cursor and exit. The caller (either defer ops
335 * or log recovery) will log the SXD item, and if *blockcount
336 * is nonzero, it will log a new SXI item for the remainder
337 * and call us back.
338 */
339 sxi->si_startoff1 += irec1.br_blockcount;
340 sxi->si_startoff2 += irec1.br_blockcount;
341 sxi->si_blockcount -= irec1.br_blockcount;
342 break;
343 }
344
345 /*
346 * If we've reached the end of the remap operation and the caller
347 * wanted us to exchange the sizes, do that now.
348 */
349 if (sxi->si_blockcount == 0 &&
350 (sxi->si_flags & XFS_SWAP_EXTENT_SET_SIZES)) {
351 sxi->si_ip1->i_d.di_size = sxi->si_isize1;
352 sxi->si_ip2->i_d.di_size = sxi->si_isize2;
353 xfs_trans_log_inode(tp, sxi->si_ip1, XFS_ILOG_CORE);
354 xfs_trans_log_inode(tp, sxi->si_ip2, XFS_ILOG_CORE);
355 }
356
357 if (xfs_swapext_has_more_work(sxi))
358 trace_xfs_swapext_defer(tp->t_mountp, sxi);
359 return 0;
360 }
361
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[nvdimm:libnvdimm-pending 1/3] arch/x86/kernel/cpu/mce/core.c:2598: undefined reference to `copy_safe_slow_key'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending
head: 91f5d81d2c7bb6dd0733e74204b0515e165f9b7b
commit: ee6db930df5998d0b8681eaf60da85f2b350bba3 [1/3] copy_safe: Rename memcpy_mcsafe() to copy_safe()
config: i386-randconfig-b002-20200429 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout ee6db930df5998d0b8681eaf60da85f2b350bba3
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/kernel/cpu/mce/core.o: in function `mcheck_late_init':
>> arch/x86/kernel/cpu/mce/core.c:2598: undefined reference to `copy_safe_slow_key'
vim +2598 arch/x86/kernel/cpu/mce/core.c
2594
2595 static int __init mcheck_late_init(void)
2596 {
2597 if (mca_cfg.recovery)
> 2598 static_branch_inc(©_safe_slow_key);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months