tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git usermode_ro head: 00ed986b7a8fbb11b0c154e8dda5ee7c5ea48a43 commit: d57c93cde22bd5ec716de09bf84ae8576adf5e64 [3/4] Make static usermode helper binaries constant config: i386-randconfig-s1-201650 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout d57c93cde22bd5ec716de09bf84ae8576adf5e64 # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/net/hamradio/baycom_epp.c: In function 'eppconfig': >> drivers/net/hamradio/baycom_epp.c:311:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *argv[] = { eppconfig_path, "-s", "-p", portarg, "-m", modearg, ^~~~~~~~~~~~~~ vim +/const +311 drivers/net/hamradio/baycom_epp.c ^1da177e Linus Torvalds 2005-04-16 295 } ^1da177e Linus Torvalds 2005-04-16 296 ^1da177e Linus Torvalds 2005-04-16 297 /* ---------------------------------------------------------------------- */ ^1da177e Linus Torvalds 2005-04-16 298 /* ^1da177e Linus Torvalds 2005-04-16 299 * eppconfig_path should be setable via /proc/sys. ^1da177e Linus Torvalds 2005-04-16 300 */ ^1da177e Linus Torvalds 2005-04-16 301 d57c93cd Greg Kroah-Hartman 2016-12-11 302 static const char eppconfig_path[256] = "/usr/sbin/eppfpga"; ^1da177e Linus Torvalds 2005-04-16 303 ^1da177e Linus Torvalds 2005-04-16 304 static char *envp[] = { "HOME=/", "TERM=linux", "PATH=/usr/bin:/bin", NULL }; ^1da177e Linus Torvalds 2005-04-16 305 ^1da177e Linus Torvalds 2005-04-16 306 /* eppconfig: called during ifconfig up to configure the modem */ ^1da177e Linus Torvalds 2005-04-16 307 static int eppconfig(struct baycom_state *bc) ^1da177e Linus Torvalds 2005-04-16 308 { ^1da177e Linus Torvalds 2005-04-16 309 char modearg[256]; ^1da177e Linus Torvalds 2005-04-16 310 char portarg[16]; ^1da177e Linus Torvalds 2005-04-16 @311 char *argv[] = { eppconfig_path, "-s", "-p", portarg, "-m", modearg, ^1da177e Linus Torvalds 2005-04-16 312 NULL }; ^1da177e Linus Torvalds 2005-04-16 313 ^1da177e Linus Torvalds 2005-04-16 314 /* set up arguments */ ^1da177e Linus Torvalds 2005-04-16 315 sprintf(modearg, "%sclk,%smodem,fclk=%d,bps=%d,divider=%d%s,extstat", ^1da177e Linus Torvalds 2005-04-16 316 bc->cfg.intclk ? "int" : "ext", ^1da177e Linus Torvalds 2005-04-16 317 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, ^1da177e Linus Torvalds 2005-04-16 318 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), ^1da177e Linus Torvalds 2005-04-16 319 bc->cfg.loopback ? ",loopback" : ""); :::::: The code at line 311 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel