[ti:ti-rt-linux-5.10.y 10189/10194] drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1339:25: warning: 'strncpy' specified bound 32 equals destination size
by kernel test robot
Hi Sidraya,
First bad commit (maybe != root cause):
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: aafb1bd67f22b44cf5f8072266002696adaa21b0
commit: caf6d714b87dee7429cb6b9cf60a3cba0061bfd6 [10189/10194] media: platform: Kconfig: Add Video decoder Kconfig and Makefile
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.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 remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout caf6d714b87dee7429cb6b9cf60a3cba0061bfd6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64
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 >>):
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c: In function 'vxe_query_ext_ctrl':
>> drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1339:25: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
1339 | strncpy(query->name, controls[i].name, sizeof(query->name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1316:33: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
1316 | strncpy(query->name, controls[i].name, sizeof(query->name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c: In function 'vxe_queryctrl':
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1281:25: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
1281 | strncpy(query->name, controls[i].name, sizeof(query->name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c:1264:33: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
1264 | strncpy(query->name, controls[i].name, sizeof(query->name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +1339 drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c
146db0290a0031 Sidraya 2021-11-02 1293
146db0290a0031 Sidraya 2021-11-02 1294 static int vxe_query_ext_ctrl(struct file *file, void *priv,
146db0290a0031 Sidraya 2021-11-02 1295 struct v4l2_query_ext_ctrl *query)
146db0290a0031 Sidraya 2021-11-02 1296 {
146db0290a0031 Sidraya 2021-11-02 1297 unsigned int queryid;
146db0290a0031 Sidraya 2021-11-02 1298 int i, j;
146db0290a0031 Sidraya 2021-11-02 1299
146db0290a0031 Sidraya 2021-11-02 1300 query->reserved[0] = 0;
146db0290a0031 Sidraya 2021-11-02 1301 query->reserved[1] = 0;
146db0290a0031 Sidraya 2021-11-02 1302
146db0290a0031 Sidraya 2021-11-02 1303 /* Enumerate controls */
146db0290a0031 Sidraya 2021-11-02 1304 if ((query->id & V4L2_CTRL_FLAG_NEXT_CTRL) ||
146db0290a0031 Sidraya 2021-11-02 1305 (query->id & V4L2_CTRL_FLAG_NEXT_COMPOUND)) {
146db0290a0031 Sidraya 2021-11-02 1306 queryid = query->id;
146db0290a0031 Sidraya 2021-11-02 1307 queryid &= ~V4L2_CTRL_FLAG_NEXT_CTRL;
146db0290a0031 Sidraya 2021-11-02 1308 queryid &= ~V4L2_CTRL_FLAG_NEXT_COMPOUND;
146db0290a0031 Sidraya 2021-11-02 1309 for (i = 0; i < ARRAY_SIZE(controls); i++) {
146db0290a0031 Sidraya 2021-11-02 1310 if (((!controls[i].compound && (query->id & V4L2_CTRL_FLAG_NEXT_CTRL)) ||
146db0290a0031 Sidraya 2021-11-02 1311 (controls[i].compound &&
146db0290a0031 Sidraya 2021-11-02 1312 (query->id & V4L2_CTRL_FLAG_NEXT_COMPOUND))) &&
146db0290a0031 Sidraya 2021-11-02 1313 controls[i].cid > queryid) {
146db0290a0031 Sidraya 2021-11-02 1314 query->id = controls[i].cid;
146db0290a0031 Sidraya 2021-11-02 1315 query->type = controls[i].type;
146db0290a0031 Sidraya 2021-11-02 1316 strncpy(query->name, controls[i].name, sizeof(query->name));
146db0290a0031 Sidraya 2021-11-02 1317 query->minimum = controls[i].minimum;
146db0290a0031 Sidraya 2021-11-02 1318 query->maximum = controls[i].maximum;
146db0290a0031 Sidraya 2021-11-02 1319 query->step = controls[i].step;
146db0290a0031 Sidraya 2021-11-02 1320 query->default_value = controls[i].default_value;
146db0290a0031 Sidraya 2021-11-02 1321 /* Our supported controls use int values */
146db0290a0031 Sidraya 2021-11-02 1322 query->elem_size = 4;
146db0290a0031 Sidraya 2021-11-02 1323 query->elems = 1;
146db0290a0031 Sidraya 2021-11-02 1324 query->nr_of_dims = 0;
146db0290a0031 Sidraya 2021-11-02 1325 for (j = 0; j < V4L2_CTRL_MAX_DIMS; j++)
146db0290a0031 Sidraya 2021-11-02 1326 query->dims[j] = 0;
146db0290a0031 Sidraya 2021-11-02 1327 query->flags = 0;
146db0290a0031 Sidraya 2021-11-02 1328 return 0;
146db0290a0031 Sidraya 2021-11-02 1329 }
146db0290a0031 Sidraya 2021-11-02 1330 }
146db0290a0031 Sidraya 2021-11-02 1331 return -EINVAL;
146db0290a0031 Sidraya 2021-11-02 1332 }
146db0290a0031 Sidraya 2021-11-02 1333
146db0290a0031 Sidraya 2021-11-02 1334 /* Return info on requested control */
146db0290a0031 Sidraya 2021-11-02 1335 for (i = 0; i < ARRAY_SIZE(controls); i++) {
146db0290a0031 Sidraya 2021-11-02 1336 if (controls[i].cid == query->id) {
146db0290a0031 Sidraya 2021-11-02 1337 query->id = controls[i].cid;
146db0290a0031 Sidraya 2021-11-02 1338 query->type = controls[i].type;
146db0290a0031 Sidraya 2021-11-02 @1339 strncpy(query->name, controls[i].name, sizeof(query->name));
146db0290a0031 Sidraya 2021-11-02 1340 query->minimum = controls[i].minimum;
146db0290a0031 Sidraya 2021-11-02 1341 query->maximum = controls[i].maximum;
146db0290a0031 Sidraya 2021-11-02 1342 query->step = controls[i].step;
146db0290a0031 Sidraya 2021-11-02 1343 query->default_value = controls[i].default_value;
146db0290a0031 Sidraya 2021-11-02 1344 /* Our supported controls use int values */
146db0290a0031 Sidraya 2021-11-02 1345 query->elem_size = 4;
146db0290a0031 Sidraya 2021-11-02 1346 query->elems = 1;
146db0290a0031 Sidraya 2021-11-02 1347 query->nr_of_dims = 0;
146db0290a0031 Sidraya 2021-11-02 1348 for (j = 0; j < V4L2_CTRL_MAX_DIMS; j++)
146db0290a0031 Sidraya 2021-11-02 1349 query->dims[j] = 0;
146db0290a0031 Sidraya 2021-11-02 1350 query->flags = 0;
146db0290a0031 Sidraya 2021-11-02 1351 return 0;
146db0290a0031 Sidraya 2021-11-02 1352 }
146db0290a0031 Sidraya 2021-11-02 1353 }
146db0290a0031 Sidraya 2021-11-02 1354
146db0290a0031 Sidraya 2021-11-02 1355 return -EINVAL;
146db0290a0031 Sidraya 2021-11-02 1356 }
146db0290a0031 Sidraya 2021-11-02 1357
:::::: The code at line 1339 was first introduced by commit
:::::: 146db0290a0031e16b682f63d665bfaa8ebaf24a v4l: vxe-enc: Add IMG Encoder v4l2 Driver Interface function implementations
:::::: TO: Sidraya <sidraya.bj(a)pathpartnertech.com>
:::::: CC: Praneeth Bajjuri <praneeth(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[lunn:v5.15-rc2-net-next-phy-lock 14/14] drivers/net/dsa/b53/b53_common.c:1297:26: error: implicit declaration of function 'b53_adjust_init'; did you mean 'b53_adjust_link'?
by kernel test robot
tree: https://github.com/lunn/linux.git v5.15-rc2-net-next-phy-lock
head: a5fc611ff3720771a7c6c8f5acefff8708757020
commit: a5fc611ff3720771a7c6c8f5acefff8708757020 [14/14] net: phy: phy_init_eee: Add locking
config: openrisc-buildonly-randconfig-r002-20210929 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.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
# https://github.com/lunn/linux/commit/a5fc611ff3720771a7c6c8f5acefff870875...
git remote add lunn https://github.com/lunn/linux.git
git fetch --no-tags lunn v5.15-rc2-net-next-phy-lock
git checkout a5fc611ff3720771a7c6c8f5acefff8708757020
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=openrisc
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 >>):
drivers/net/dsa/b53/b53_common.c: In function 'b53_adjust_link':
>> drivers/net/dsa/b53/b53_common.c:1297:26: error: implicit declaration of function 'b53_adjust_init'; did you mean 'b53_adjust_link'? [-Werror=implicit-function-declaration]
1297 | p->eee_enabled = b53_adjust_init(ds, port, phydev);
| ^~~~~~~~~~~~~~~
| b53_adjust_link
cc1: all warnings being treated as errors
vim +1297 drivers/net/dsa/b53/b53_common.c
1211
1212 static void b53_adjust_link(struct dsa_switch *ds, int port,
1213 struct phy_device *phydev)
1214 {
1215 struct b53_device *dev = ds->priv;
1216 struct ethtool_eee *p = &dev->ports[port].eee;
1217 u8 rgmii_ctrl = 0, reg = 0, off;
1218 bool tx_pause = false;
1219 bool rx_pause = false;
1220
1221 if (!phy_is_pseudo_fixed_link(phydev))
1222 return;
1223
1224 /* Enable flow control on BCM5301x's CPU port */
1225 if (is5301x(dev) && dsa_is_cpu_port(ds, port))
1226 tx_pause = rx_pause = true;
1227
1228 if (phydev->pause) {
1229 if (phydev->asym_pause)
1230 tx_pause = true;
1231 rx_pause = true;
1232 }
1233
1234 b53_force_port_config(dev, port, phydev->speed, phydev->duplex,
1235 tx_pause, rx_pause);
1236 b53_force_link(dev, port, phydev->link);
1237
1238 if (is531x5(dev) && phy_interface_is_rgmii(phydev)) {
1239 if (port == dev->imp_port)
1240 off = B53_RGMII_CTRL_IMP;
1241 else
1242 off = B53_RGMII_CTRL_P(port);
1243
1244 /* Configure the port RGMII clock delay by DLL disabled and
1245 * tx_clk aligned timing (restoring to reset defaults)
1246 */
1247 b53_read8(dev, B53_CTRL_PAGE, off, &rgmii_ctrl);
1248 rgmii_ctrl &= ~(RGMII_CTRL_DLL_RXC | RGMII_CTRL_DLL_TXC |
1249 RGMII_CTRL_TIMING_SEL);
1250
1251 /* PHY_INTERFACE_MODE_RGMII_TXID means TX internal delay, make
1252 * sure that we enable the port TX clock internal delay to
1253 * account for this internal delay that is inserted, otherwise
1254 * the switch won't be able to receive correctly.
1255 *
1256 * PHY_INTERFACE_MODE_RGMII means that we are not introducing
1257 * any delay neither on transmission nor reception, so the
1258 * BCM53125 must also be configured accordingly to account for
1259 * the lack of delay and introduce
1260 *
1261 * The BCM53125 switch has its RX clock and TX clock control
1262 * swapped, hence the reason why we modify the TX clock path in
1263 * the "RGMII" case
1264 */
1265 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)
1266 rgmii_ctrl |= RGMII_CTRL_DLL_TXC;
1267 if (phydev->interface == PHY_INTERFACE_MODE_RGMII)
1268 rgmii_ctrl |= RGMII_CTRL_DLL_TXC | RGMII_CTRL_DLL_RXC;
1269 rgmii_ctrl |= RGMII_CTRL_TIMING_SEL;
1270 b53_write8(dev, B53_CTRL_PAGE, off, rgmii_ctrl);
1271
1272 dev_info(ds->dev, "Configured port %d for %s\n", port,
1273 phy_modes(phydev->interface));
1274 }
1275
1276 /* configure MII port if necessary */
1277 if (is5325(dev)) {
1278 b53_read8(dev, B53_CTRL_PAGE, B53_PORT_OVERRIDE_CTRL,
1279 ®);
1280
1281 /* reverse mii needs to be enabled */
1282 if (!(reg & PORT_OVERRIDE_RV_MII_25)) {
1283 b53_write8(dev, B53_CTRL_PAGE, B53_PORT_OVERRIDE_CTRL,
1284 reg | PORT_OVERRIDE_RV_MII_25);
1285 b53_read8(dev, B53_CTRL_PAGE, B53_PORT_OVERRIDE_CTRL,
1286 ®);
1287
1288 if (!(reg & PORT_OVERRIDE_RV_MII_25)) {
1289 dev_err(ds->dev,
1290 "Failed to enable reverse MII mode\n");
1291 return;
1292 }
1293 }
1294 }
1295
1296 /* Re-negotiate EEE if it was enabled already */
> 1297 p->eee_enabled = b53_adjust_init(ds, port, phydev);
1298 }
1299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[allisonhenderson-xfs-work:new_err_tags 22/31] fs/xfs/libxfs/xfs_parent.c:55:1: error: no previous prototype for 'xfs_init_parent_name_rec'
by kernel test robot
tree: https://github.com/allisonhenderson/xfs_work.git new_err_tags
head: 3554121fcb4bc5485ef3000ece82abab632a2f4d
commit: 8d9e3a8a6b82326c708da362608f5044c1b7bd91 [22/31] xfs: parent pointer attribute creation
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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
# https://github.com/allisonhenderson/xfs_work/commit/8d9e3a8a6b82326c708da...
git remote add allisonhenderson-xfs-work https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs-work new_err_tags
git checkout 8d9e3a8a6b82326c708da362608f5044c1b7bd91
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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 >>):
>> fs/xfs/libxfs/xfs_parent.c:55:1: error: no previous prototype for 'xfs_init_parent_name_rec' [-Werror=missing-prototypes]
55 | xfs_init_parent_name_rec(
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> fs/xfs/libxfs/xfs_parent.c:70:1: error: no previous prototype for 'xfs_init_parent_name_irec' [-Werror=missing-prototypes]
70 | xfs_init_parent_name_irec(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/xfs_init_parent_name_rec +55 fs/xfs/libxfs/xfs_parent.c
35
36 /*
37 * Parent pointer attribute handling.
38 *
39 * Because the attribute value is a filename component, it will never be longer
40 * than 255 bytes. This means the attribute will always be a local format
41 * attribute as it is xfs_attr_leaf_entsize_local_max() for v5 filesystems will
42 * always be larger than this (max is 75% of block size).
43 *
44 * Creating a new parent attribute will always create a new attribute - there
45 * should never, ever be an existing attribute in the tree for a new inode.
46 * ENOSPC behavior is problematic - creating the inode without the parent
47 * pointer is effectively a corruption, so we allow parent attribute creation
48 * to dip into the reserve block pool to avoid unexpected ENOSPC errors from
49 * occurring.
50 */
51
52
53 /* Initializes a xfs_parent_name_rec to be stored as an attribute name */
54 void
> 55 xfs_init_parent_name_rec(
56 struct xfs_parent_name_rec *rec,
57 struct xfs_inode *ip,
58 uint32_t p_diroffset)
59 {
60 xfs_ino_t p_ino = ip->i_ino;
61 uint32_t p_gen = VFS_I(ip)->i_generation;
62
63 rec->p_ino = cpu_to_be64(p_ino);
64 rec->p_gen = cpu_to_be32(p_gen);
65 rec->p_diroffset = cpu_to_be32(p_diroffset);
66 }
67
68 /* Initializes a xfs_parent_name_irec from an xfs_parent_name_rec */
69 void
> 70 xfs_init_parent_name_irec(
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[android-common:android12-5.10 9580/13762] drivers/usb/gadget/configfs.c:1620:9: error: implicit declaration of function 'acc_disconnect'
by kernel test robot
Hi Ronak,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 6b7c37f6c44952d6702ccd410b3a4f7866f5e263
commit: 80fef39de7e9dbe706d0cbc820a09b5c05dc366f [9580/13762] ANDROID: usb: gadget: Resolve NULL pointer dereference in composite_disconnect
config: arm64-randconfig-r014-20210928 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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 remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 80fef39de7e9dbe706d0cbc820a09b5c05dc366f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 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 errors (new ones prefixed by >>):
drivers/usb/gadget/configfs.c: In function 'configfs_composite_disconnect':
>> drivers/usb/gadget/configfs.c:1620:9: error: implicit declaration of function 'acc_disconnect' [-Werror=implicit-function-declaration]
1620 | acc_disconnect();
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for HVC_DRIVER
Depends on TTY
Selected by
- GKI_HIDDEN_VIRTUAL_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
vim +/acc_disconnect +1620 drivers/usb/gadget/configfs.c
1603
1604 static void configfs_composite_disconnect(struct usb_gadget *gadget)
1605 {
1606 struct usb_composite_dev *cdev;
1607 struct gadget_info *gi;
1608 unsigned long flags;
1609
1610 cdev = get_gadget_data(gadget);
1611 if (!cdev)
1612 return;
1613
1614 #ifdef CONFIG_USB_CONFIGFS_F_ACC
1615 /*
1616 * accessory HID support can be active while the
1617 * accessory function is not actually enabled,
1618 * so we need to inform it when we are disconnected.
1619 */
> 1620 acc_disconnect();
1621 #endif
1622 gi = container_of(cdev, struct gadget_info, cdev);
1623 spin_lock_irqsave(&gi->spinlock, flags);
1624 cdev = get_gadget_data(gadget);
1625 if (!cdev || gi->unbind) {
1626 spin_unlock_irqrestore(&gi->spinlock, flags);
1627 return;
1628 }
1629
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH 2/2] erofs: add sysfs node to control sync decompression strategy
by kernel test robot
Hi Huang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on xiang-erofs/dev-test]
[also build test ERROR on next-20211111]
[cannot apply to v5.15]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Huang-Jianan/erofs-add-sysfs-int...
base: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev-test
config: xtensa-buildonly-randconfig-r004-20211111 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/d6bf9edf69e87ee0a9795421ff2e1a9b6...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Huang-Jianan/erofs-add-sysfs-interface/20211109-105542
git checkout d6bf9edf69e87ee0a9795421ff2e1a9b69a29ce8
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash
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 >>):
In file included from <command-line>:
>> include/linux/compiler_types.h:140:41: error: 'struct erofs_mount_opts' has no member named 'readahead_sync_decompress'
140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/stddef.h:17:33: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
fs/erofs/sysfs.c:42:19: note: in expansion of macro 'offsetof'
42 | .offset = offsetof(struct _struct, _name),\
| ^~~~~~~~
fs/erofs/sysfs.c:46:9: note: in expansion of macro 'EROFS_ATTR_OFFSET'
46 | EROFS_ATTR_OFFSET(_name, 0644, _id, _struct)
| ^~~~~~~~~~~~~~~~~
fs/erofs/sysfs.c:55:9: note: in expansion of macro 'EROFS_RW_ATTR'
55 | EROFS_RW_ATTR(_name, pointer_bool, _struct)
| ^~~~~~~~~~~~~
fs/erofs/sysfs.c:59:1: note: in expansion of macro 'EROFS_RW_ATTR_BOOL'
59 | EROFS_RW_ATTR_BOOL(readahead_sync_decompress, erofs_mount_opts);
| ^~~~~~~~~~~~~~~~~~
vim +140 include/linux/compiler_types.h
71391bdd2e9aab Xiaozhou Liu 2018-12-14 139
71391bdd2e9aab Xiaozhou Liu 2018-12-14 @140 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
71391bdd2e9aab Xiaozhou Liu 2018-12-14 141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
kernel/bpf/btf.c:5346:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute
by kernel test robot
Hi Alan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 31d0bc81637d8d974a6dad9827b765b4b70c89d7 bpf: Move to generic BTF show support, apply it to seq files/strings
date: 1 year, 1 month ago
config: nds32-buildonly-randconfig-r002-20210927 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 31d0bc81637d8d974a6dad9827b765b4b70c89d7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
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 >>):
kernel/bpf/btf.c: In function 'btf_seq_show':
>> kernel/bpf/btf.c:5346:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5346 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
>> kernel/bpf/btf.c:5383:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5383 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
vim +5346 kernel/bpf/btf.c
5342
5343 static void btf_seq_show(struct btf_show *show, const char *fmt,
5344 va_list args)
5345 {
> 5346 seq_vprintf((struct seq_file *)show->target, fmt, args);
5347 }
5348
5349 static int btf_type_seq_show_flags(const struct btf *btf, u32 type_id,
5350 void *obj, struct seq_file *m, u64 flags)
5351 {
5352 struct btf_show sseq;
5353
5354 sseq.target = m;
5355 sseq.showfn = btf_seq_show;
5356 sseq.flags = flags;
5357
5358 btf_type_show(btf, type_id, obj, &sseq);
5359
5360 return sseq.state.status;
5361 }
5362
5363 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj,
5364 struct seq_file *m)
5365 {
5366 (void) btf_type_seq_show_flags(btf, type_id, obj, m,
5367 BTF_SHOW_NONAME | BTF_SHOW_COMPACT |
5368 BTF_SHOW_ZERO | BTF_SHOW_UNSAFE);
5369 }
5370
5371 struct btf_show_snprintf {
5372 struct btf_show show;
5373 int len_left; /* space left in string */
5374 int len; /* length we would have written */
5375 };
5376
5377 static void btf_snprintf_show(struct btf_show *show, const char *fmt,
5378 va_list args)
5379 {
5380 struct btf_show_snprintf *ssnprintf = (struct btf_show_snprintf *)show;
5381 int len;
5382
> 5383 len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
5384
5385 if (len < 0) {
5386 ssnprintf->len_left = 0;
5387 ssnprintf->len = len;
5388 } else if (len > ssnprintf->len_left) {
5389 /* no space, drive on to get length we would have written */
5390 ssnprintf->len_left = 0;
5391 ssnprintf->len += len;
5392 } else {
5393 ssnprintf->len_left -= len;
5394 ssnprintf->len += len;
5395 show->target += len;
5396 }
5397 }
5398
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[hare-scsi-devel:scsi-private.v2 10/21] include/linux/compiler_types.h:140:41: error: 'struct CommandList' has no member named 'refcount'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2
head: 915b986531e666d840f72752c597fb6b4ea69d35
commit: 6c35d6adbd0e5c8c4634ca29482138fa9f369acb [10/21] hpsa: drop refcount field from CommandList
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel scsi-private.v2
git checkout 6c35d6adbd0e5c8c4634ca29482138fa9f369acb
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
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 >>):
In file included from include/linux/bits.h:22,
from include/linux/bitops.h:6,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/scsi/hpsa.c:21:
>> include/linux/compiler_types.h:140:41: error: 'struct CommandList' has no member named 'refcount'
140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
drivers/scsi/hpsa_cmd.h:466:1: note: in expansion of macro 'static_assert'
466 | static_assert(offsetof(struct CommandList, refcount) % __alignof__(atomic_t) == 0);
| ^~~~~~~~~~~~~
include/linux/stddef.h:17:33: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
drivers/scsi/hpsa_cmd.h:466:15: note: in expansion of macro 'offsetof'
466 | static_assert(offsetof(struct CommandList, refcount) % __alignof__(atomic_t) == 0);
| ^~~~~~~~
include/linux/compiler_types.h:140:41: error: expression in static assertion is not an integer
140 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
drivers/scsi/hpsa_cmd.h:466:1: note: in expansion of macro 'static_assert'
466 | static_assert(offsetof(struct CommandList, refcount) % __alignof__(atomic_t) == 0);
| ^~~~~~~~~~~~~
include/linux/stddef.h:17:33: note: in expansion of macro '__compiler_offsetof'
17 | #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~~
drivers/scsi/hpsa_cmd.h:466:15: note: in expansion of macro 'offsetof'
466 | static_assert(offsetof(struct CommandList, refcount) % __alignof__(atomic_t) == 0);
| ^~~~~~~~
drivers/scsi/hpsa.c: In function 'hpsa_eh_device_reset_handler':
drivers/scsi/hpsa.c:6071:33: error: 'struct scsi_cmnd' has no member named 'request'
6071 | scsicmd->request->tag);
| ^~
drivers/scsi/hpsa.c:6081:33: error: 'struct scsi_cmnd' has no member named 'request'
6081 | scsicmd->request->tag);
| ^~
drivers/scsi/hpsa.c: In function 'cmd_alloc':
drivers/scsi/hpsa.c:6196:43: error: passing argument 1 of 'scsi_host_get_internal_cmd' from incompatible pointer type [-Werror=incompatible-pointer-types]
6196 | scmd = scsi_host_get_internal_cmd(h, (direction & XFER_WRITE) ?
| ^
| |
| struct ctlr_info *
In file included from drivers/scsi/hpsa.c:42:
include/scsi/scsi_host.h:814:34: note: expected 'struct Scsi_Host *' but argument is of type 'struct ctlr_info *'
814 | void *scsi_host_get_internal_cmd(struct Scsi_Host *, int data_direction,
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +140 include/linux/compiler_types.h
71391bdd2e9aab1 Xiaozhou Liu 2018-12-14 139
71391bdd2e9aab1 Xiaozhou Liu 2018-12-14 @140 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
71391bdd2e9aab1 Xiaozhou Liu 2018-12-14 141
:::::: The code at line 140 was first introduced by commit
:::::: 71391bdd2e9aab188f86bf1ecd9b232531ec7eea include/linux/compiler_types.h: don't pollute userspace with macro definitions
:::::: TO: Xiaozhou Liu <liuxiaozhou(a)bytedance.com>
:::::: CC: Miguel Ojeda <miguel.ojeda.sandonis(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[arm:zii 47/102] drivers/net/ethernet/freescale/enetc/enetc_pf.c:1073:28: error: 'struct phylink_config' has no member named 'mac_capabilties'; did you mean 'mac_capabilities'?
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: 259f23bb268ce5e8c9dcc5791ca96448a3180a93
commit: 67d8f4a7c09e991825026c244febbe2b4c632382 [47/102] net: enetc: use phylink_generic_validate()
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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 remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 67d8f4a7c09e991825026c244febbe2b4c632382
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
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 >>):
drivers/net/ethernet/freescale/enetc/enetc_pf.c: In function 'enetc_phylink_create':
>> drivers/net/ethernet/freescale/enetc/enetc_pf.c:1073:28: error: 'struct phylink_config' has no member named 'mac_capabilties'; did you mean 'mac_capabilities'?
1073 | pf->phylink_config.mac_capabilties = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
| ^~~~~~~~~~~~~~~
| mac_capabilities
vim +1073 drivers/net/ethernet/freescale/enetc/enetc_pf.c
1063
1064 static int enetc_phylink_create(struct enetc_ndev_priv *priv,
1065 struct device_node *node)
1066 {
1067 struct enetc_pf *pf = enetc_si_priv(priv->si);
1068 struct phylink *phylink;
1069 int err;
1070
1071 pf->phylink_config.dev = &priv->ndev->dev;
1072 pf->phylink_config.type = PHYLINK_NETDEV;
> 1073 pf->phylink_config.mac_capabilties = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
1074 MAC_10 | MAC_100 | MAC_1000 | MAC_2500FD;
1075
1076 __set_bit(PHY_INTERFACE_MODE_INTERNAL,
1077 pf->phylink_config.supported_interfaces);
1078 __set_bit(PHY_INTERFACE_MODE_SGMII,
1079 pf->phylink_config.supported_interfaces);
1080 __set_bit(PHY_INTERFACE_MODE_2500BASEX,
1081 pf->phylink_config.supported_interfaces);
1082 __set_bit(PHY_INTERFACE_MODE_USXGMII,
1083 pf->phylink_config.supported_interfaces);
1084 phy_interface_set_rgmii(pf->phylink_config.supported_interfaces);
1085
1086 phylink = phylink_create(&pf->phylink_config, of_fwnode_handle(node),
1087 pf->if_mode, &enetc_mac_phylink_ops);
1088 if (IS_ERR(phylink)) {
1089 err = PTR_ERR(phylink);
1090 return err;
1091 }
1092
1093 priv->phylink = phylink;
1094
1095 return 0;
1096 }
1097
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[tip:sched/urgent 3/5] kernel/sched/rt.c:257:6: error: no previous prototype for function 'unregister_rt_sched_group'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/urgent
head: a8b76910e465d718effce0cad306a21fa4f3526b
commit: b027789e5e50494c2325cc70c8642e7fd6059479 [3/5] sched/fair: Prevent dead task groups from regaining cfs_rq's
config: i386-buildonly-randconfig-r001-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 63ef0e17e28827eae53133b3467bdac7d9729318)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=b0...
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip sched/urgent
git checkout b027789e5e50494c2325cc70c8642e7fd6059479
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> kernel/sched/rt.c:257:6: error: no previous prototype for function 'unregister_rt_sched_group' [-Werror,-Wmissing-prototypes]
void unregister_rt_sched_group(struct task_group *tg) { }
^
kernel/sched/rt.c:257:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void unregister_rt_sched_group(struct task_group *tg) { }
^
static
kernel/sched/rt.c:259:6: error: no previous prototype for function 'free_rt_sched_group' [-Werror,-Wmissing-prototypes]
void free_rt_sched_group(struct task_group *tg) { }
^
kernel/sched/rt.c:259:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void free_rt_sched_group(struct task_group *tg) { }
^
static
kernel/sched/rt.c:261:5: error: no previous prototype for function 'alloc_rt_sched_group' [-Werror,-Wmissing-prototypes]
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
^
kernel/sched/rt.c:261:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
^
static
kernel/sched/rt.c:675:6: error: no previous prototype for function 'sched_rt_bandwidth_account' [-Werror,-Wmissing-prototypes]
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
kernel/sched/rt.c:675:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
static
4 errors generated.
vim +/unregister_rt_sched_group +257 kernel/sched/rt.c
256
> 257 void unregister_rt_sched_group(struct task_group *tg) { }
258
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[mptcp:export 9/27] net/mptcp/sockopt.c:656:9: error: variable 'ret' is uninitialized when used here
by kernel test robot
tree: https://github.com/multipath-tcp/mptcp_net-next.git export
head: 400a354b7e2db1f6ffdf7bf8faefdfa8c0d45aee
commit: 222f62c8bcf7a672e76939b8a02566eb5ded76ad [9/27] mptcp: sockopt: add SOL_IP freebind & transparent options
config: hexagon-buildonly-randconfig-r006-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 63ef0e17e28827eae53133b3467bdac7d9729318)
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
# https://github.com/multipath-tcp/mptcp_net-next/commit/222f62c8bcf7a672e7...
git remote add mptcp https://github.com/multipath-tcp/mptcp_net-next.git
git fetch --no-tags mptcp export
git checkout 222f62c8bcf7a672e76939b8a02566eb5ded76ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
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 >>):
>> net/mptcp/sockopt.c:656:9: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
return ret;
^~~
net/mptcp/sockopt.c:625:9: note: initialize the variable 'ret' to silence this warning
int ret, err;
^
= 0
1 error generated.
vim +/ret +656 net/mptcp/sockopt.c
618
619 static int mptcp_setsockopt_sol_ip_set_transparent(struct mptcp_sock *msk, int optname,
620 sockptr_t optval, unsigned int optlen)
621 {
622 struct sock *sk = (struct sock *)msk;
623 struct inet_sock *issk;
624 struct socket *ssock;
625 int ret, err;
626
627 err = ip_setsockopt(sk, SOL_IP, optname, optval, optlen);
628 if (err != 0)
629 return err;
630
631 lock_sock(sk);
632
633 ssock = __mptcp_nmpc_socket(msk);
634 if (!ssock) {
635 release_sock(sk);
636 return -EINVAL;
637 }
638
639 issk = inet_sk(ssock->sk);
640
641 switch (optname) {
642 case IP_FREEBIND:
643 issk->freebind = inet_sk(sk)->freebind;
644 break;
645 case IP_TRANSPARENT:
646 issk->transparent = inet_sk(sk)->transparent;
647 break;
648 default:
649 release_sock(sk);
650 WARN_ON_ONCE(1);
651 return -EOPNOTSUPP;
652 }
653
654 sockopt_seq_inc(msk);
655 release_sock(sk);
> 656 return ret;
657 }
658
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week