[ipmi:ipmi-wdt-rework 5/10] drivers/hwmon/sch56xx-common.c:289:12: error: static declaration of 'watchdog_start' follows non-static declaration
by kernel test robot
tree: https://github.com/cminyard/linux-ipmi ipmi-wdt-rework
head: a22010ce71ef67492980e4c55ad7864679826b53
commit: d8aebbc6501b431180c705c6e8a4fc4e129325ec [5/10] watchdog: Export an interface to start the watchdog
config: s390-allyesconfig (attached as .config)
compiler: s390-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 d8aebbc6501b431180c705c6e8a4fc4e129325ec
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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/hwmon/sch56xx-common.c:245:12: error: static declaration of 'watchdog_set_timeout' follows non-static declaration
245 | static int watchdog_set_timeout(struct watchdog_device *wddev,
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/hwmon/sch56xx-common.c:17:
include/linux/watchdog.h:205:5: note: previous declaration of 'watchdog_set_timeout' was here
205 | int watchdog_set_timeout(struct watchdog_device *wdd, unsigned int timeout);
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/hwmon/sch56xx-common.c:289:12: error: static declaration of 'watchdog_start' follows non-static declaration
289 | static int watchdog_start(struct watchdog_device *wddev)
| ^~~~~~~~~~~~~~
In file included from drivers/hwmon/sch56xx-common.c:17:
include/linux/watchdog.h:209:5: note: previous declaration of 'watchdog_start' was here
209 | int watchdog_start(struct watchdog_device *wdd);
| ^~~~~~~~~~~~~~
vim +/watchdog_start +289 drivers/hwmon/sch56xx-common.c
312869ec935ab3b Hans de Goede 2012-03-18 288
fb551405c0f8e15 Hans de Goede 2012-05-22 @289 static int watchdog_start(struct watchdog_device *wddev)
312869ec935ab3b Hans de Goede 2012-03-18 290 {
fb551405c0f8e15 Hans de Goede 2012-05-22 291 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev);
312869ec935ab3b Hans de Goede 2012-03-18 292 int ret;
312869ec935ab3b Hans de Goede 2012-03-18 293 u8 val;
312869ec935ab3b Hans de Goede 2012-03-18 294
312869ec935ab3b Hans de Goede 2012-03-18 295 /*
312869ec935ab3b Hans de Goede 2012-03-18 296 * The sch56xx's watchdog cannot really be started / stopped
312869ec935ab3b Hans de Goede 2012-03-18 297 * it is always running, but we can avoid the timer expiring
312869ec935ab3b Hans de Goede 2012-03-18 298 * from causing a system reset by clearing the output enable bit.
312869ec935ab3b Hans de Goede 2012-03-18 299 *
312869ec935ab3b Hans de Goede 2012-03-18 300 * The sch56xx's watchdog will set the watchdog event bit, bit 0
312869ec935ab3b Hans de Goede 2012-03-18 301 * of the second interrupt source register (at base-address + 9),
312869ec935ab3b Hans de Goede 2012-03-18 302 * when the timer expires.
312869ec935ab3b Hans de Goede 2012-03-18 303 *
312869ec935ab3b Hans de Goede 2012-03-18 304 * This will only cause a system reset if the 0-1 flank happens when
312869ec935ab3b Hans de Goede 2012-03-18 305 * output enable is true. Setting output enable after the flank will
312869ec935ab3b Hans de Goede 2012-03-18 306 * not cause a reset, nor will the timer expiring a second time.
312869ec935ab3b Hans de Goede 2012-03-18 307 * This means we must clear the watchdog event bit in case it is set.
312869ec935ab3b Hans de Goede 2012-03-18 308 *
312869ec935ab3b Hans de Goede 2012-03-18 309 * The timer may still be running (after a recent watchdog_stop) and
312869ec935ab3b Hans de Goede 2012-03-18 310 * mere milliseconds away from expiring, so the timer must be reset
312869ec935ab3b Hans de Goede 2012-03-18 311 * first!
312869ec935ab3b Hans de Goede 2012-03-18 312 */
312869ec935ab3b Hans de Goede 2012-03-18 313
312869ec935ab3b Hans de Goede 2012-03-18 314 mutex_lock(data->io_lock);
312869ec935ab3b Hans de Goede 2012-03-18 315
312869ec935ab3b Hans de Goede 2012-03-18 316 /* 1. Reset the watchdog countdown counter */
312869ec935ab3b Hans de Goede 2012-03-18 317 ret = sch56xx_write_virtual_reg(data->addr, SCH56XX_REG_WDOG_PRESET,
312869ec935ab3b Hans de Goede 2012-03-18 318 data->watchdog_preset);
312869ec935ab3b Hans de Goede 2012-03-18 319 if (ret)
312869ec935ab3b Hans de Goede 2012-03-18 320 goto leave;
312869ec935ab3b Hans de Goede 2012-03-18 321
85a2e40cb505357 Hans de Goede 2012-05-22 322 /* 2. Enable output */
85a2e40cb505357 Hans de Goede 2012-05-22 323 val = data->watchdog_output_enable | SCH56XX_WDOG_OUTPUT_ENABLE;
312869ec935ab3b Hans de Goede 2012-03-18 324 ret = sch56xx_write_virtual_reg(data->addr,
85a2e40cb505357 Hans de Goede 2012-05-22 325 SCH56XX_REG_WDOG_OUTPUT_ENABLE, val);
312869ec935ab3b Hans de Goede 2012-03-18 326 if (ret)
312869ec935ab3b Hans de Goede 2012-03-18 327 goto leave;
312869ec935ab3b Hans de Goede 2012-03-18 328
312869ec935ab3b Hans de Goede 2012-03-18 329 data->watchdog_output_enable = val;
312869ec935ab3b Hans de Goede 2012-03-18 330
312869ec935ab3b Hans de Goede 2012-03-18 331 /* 3. Clear the watchdog event bit if set */
312869ec935ab3b Hans de Goede 2012-03-18 332 val = inb(data->addr + 9);
312869ec935ab3b Hans de Goede 2012-03-18 333 if (val & 0x01)
312869ec935ab3b Hans de Goede 2012-03-18 334 outb(0x01, data->addr + 9);
312869ec935ab3b Hans de Goede 2012-03-18 335
312869ec935ab3b Hans de Goede 2012-03-18 336 leave:
312869ec935ab3b Hans de Goede 2012-03-18 337 mutex_unlock(data->io_lock);
312869ec935ab3b Hans de Goede 2012-03-18 338 return ret;
312869ec935ab3b Hans de Goede 2012-03-18 339 }
312869ec935ab3b Hans de Goede 2012-03-18 340
:::::: The code at line 289 was first introduced by commit
:::::: fb551405c0f8e15d6fc7ae6e16a5e15382f8b8ac watchdog: sch56xx: Use watchdog core
:::::: TO: Hans de Goede <hdegoede(a)redhat.com>
:::::: CC: Wim Van Sebroeck <wim(a)iguana.be>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[peterz-queue:locking/irqstate 19/20] include/linux/spinlock_types.h:27:21: error: field 'dep_map' has incomplete type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/irqstate
head: 886d429f4a3a4b0af97566f5f6cb26ae7ddf2807
commit: 5321a620f6eb25e0990612f2e93670851415f344 [19/20] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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 5321a620f6eb25e0990612f2e93670851415f344
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
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 arch/powerpc/include/asm/rtas-types.h:5,
from arch/powerpc/include/asm/paca.h:32,
from arch/powerpc/include/asm/percpu.h:13,
from include/linux/lockdep.h:22,
from drivers/net/ethernet/netronome/nfp/nfp_port.c:4:
>> include/linux/spinlock_types.h:27:21: error: field 'dep_map' has incomplete type
27 | struct lockdep_map dep_map;
| ^~~~~~~
include/linux/spinlock_types.h:79:23: error: field 'dep_map' has incomplete type
79 | struct lockdep_map dep_map;
| ^~~~~~~
In file included from include/linux/spinlock_types.h:99,
from arch/powerpc/include/asm/rtas-types.h:5,
from arch/powerpc/include/asm/paca.h:32,
from arch/powerpc/include/asm/percpu.h:13,
from include/linux/lockdep.h:22,
from drivers/net/ethernet/netronome/nfp/nfp_port.c:4:
>> include/linux/rwlock_types.h:18:21: error: field 'dep_map' has incomplete type
18 | struct lockdep_map dep_map;
| ^~~~~~~
In file included from arch/powerpc/include/asm/rtas-types.h:5,
from arch/powerpc/include/asm/paca.h:32,
from arch/powerpc/include/asm/percpu.h:13,
from include/linux/lockdep.h:22,
from drivers/net/ethernet/netronome/nfp/nfp_port.c:4:
include/linux/semaphore.h: In function 'sema_init':
>> include/linux/spinlock_types.h:38:3: error: field name not in record or union initializer
38 | .name = #lockname, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:11: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:28: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:38:3: note: (near initialization for '(anonymous).dep_map')
38 | .name = #lockname, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:11: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:28: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:39:3: error: field name not in record or union initializer
39 | .wait_type_inner = LD_WAIT_SPIN, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:11: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:28: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:39:3: note: (near initialization for '(anonymous).dep_map')
39 | .wait_type_inner = LD_WAIT_SPIN, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:23:11: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
23 | .lock = __RAW_SPIN_LOCK_UNLOCKED((name).lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/semaphore.h:34:28: note: in expansion of macro '__SEMAPHORE_INITIALIZER'
34 | *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/rtas-types.h:5,
from arch/powerpc/include/asm/paca.h:32,
from arch/powerpc/include/asm/percpu.h:13,
from include/linux/lockdep.h:22,
from drivers/net/ethernet/netronome/nfp/nfp_port.c:4:
include/net/sock.h: In function 'sk_validate_xmit_skb':
>> include/linux/spinlock_types.h:38:3: error: field name not in record or union initializer
38 | .name = #lockname, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:27:12: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:38:3: note: in expansion of macro 'RATELIMIT_STATE_INIT'
38 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:502:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
502 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:523:2: note: in expansion of macro 'printk_ratelimited'
523 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2593:3: note: in expansion of macro 'pr_warn_ratelimited'
2593 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:38:3: note: (near initialization for '(anonymous).dep_map')
38 | .name = #lockname, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:27:12: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:38:3: note: in expansion of macro 'RATELIMIT_STATE_INIT'
38 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:502:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
502 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:523:2: note: in expansion of macro 'printk_ratelimited'
523 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2593:3: note: in expansion of macro 'pr_warn_ratelimited'
2593 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:39:3: error: field name not in record or union initializer
39 | .wait_type_inner = LD_WAIT_SPIN, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:27:12: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:38:3: note: in expansion of macro 'RATELIMIT_STATE_INIT'
38 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:502:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
502 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:523:2: note: in expansion of macro 'printk_ratelimited'
523 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2593:3: note: in expansion of macro 'pr_warn_ratelimited'
2593 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:39:3: note: (near initialization for '(anonymous).dep_map')
39 | .wait_type_inner = LD_WAIT_SPIN, \
| ^
include/linux/spinlock_types.h:64:2: note: in expansion of macro 'RAW_SPIN_DEP_MAP_INIT'
64 | RAW_SPIN_DEP_MAP_INIT(lockname) }
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:67:19: note: in expansion of macro '__RAW_SPIN_LOCK_INITIALIZER'
67 | (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:27:12: note: in expansion of macro '__RAW_SPIN_LOCK_UNLOCKED'
27 | .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ratelimit.h:38:3: note: in expansion of macro 'RATELIMIT_STATE_INIT'
38 | RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
| ^~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:502:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
502 | static DEFINE_RATELIMIT_STATE(_rs, \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:523:2: note: in expansion of macro 'printk_ratelimited'
523 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
include/net/sock.h:2593:3: note: in expansion of macro 'pr_warn_ratelimited'
2593 | pr_warn_ratelimited("unencrypted skb with no associated socket - dropping\n");
| ^~~~~~~~~~~~~~~~~~~
vim +/dep_map +27 include/linux/spinlock_types.h
21f8ca3bf6198b Peter Zijlstra 2007-07-19 19
c2f21ce2e31286 Thomas Gleixner 2009-12-02 20 typedef struct raw_spinlock {
445c89514be242 Thomas Gleixner 2009-12-02 21 arch_spinlock_t raw_lock;
fb1c8f93d869b3 Ingo Molnar 2005-09-10 22 #ifdef CONFIG_DEBUG_SPINLOCK
fb1c8f93d869b3 Ingo Molnar 2005-09-10 23 unsigned int magic, owner_cpu;
fb1c8f93d869b3 Ingo Molnar 2005-09-10 24 void *owner;
fb1c8f93d869b3 Ingo Molnar 2005-09-10 25 #endif
8a25d5debff2da Ingo Molnar 2006-07-03 26 #ifdef CONFIG_DEBUG_LOCK_ALLOC
8a25d5debff2da Ingo Molnar 2006-07-03 @27 struct lockdep_map dep_map;
8a25d5debff2da Ingo Molnar 2006-07-03 28 #endif
c2f21ce2e31286 Thomas Gleixner 2009-12-02 29 } raw_spinlock_t;
fb1c8f93d869b3 Ingo Molnar 2005-09-10 30
fb1c8f93d869b3 Ingo Molnar 2005-09-10 31 #define SPINLOCK_MAGIC 0xdead4ead
fb1c8f93d869b3 Ingo Molnar 2005-09-10 32
fb1c8f93d869b3 Ingo Molnar 2005-09-10 33 #define SPINLOCK_OWNER_INIT ((void *)-1L)
fb1c8f93d869b3 Ingo Molnar 2005-09-10 34
8a25d5debff2da Ingo Molnar 2006-07-03 35 #ifdef CONFIG_DEBUG_LOCK_ALLOC
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 36 # define RAW_SPIN_DEP_MAP_INIT(lockname) \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 37 .dep_map = { \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 @38 .name = #lockname, \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 39 .wait_type_inner = LD_WAIT_SPIN, \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 40 }
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 41 # define SPIN_DEP_MAP_INIT(lockname) \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 42 .dep_map = { \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 43 .name = #lockname, \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 44 .wait_type_inner = LD_WAIT_CONFIG, \
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 45 }
8a25d5debff2da Ingo Molnar 2006-07-03 46 #else
de8f5e4f2dc1f0 Peter Zijlstra 2020-03-21 47 # define RAW_SPIN_DEP_MAP_INIT(lockname)
8a25d5debff2da Ingo Molnar 2006-07-03 48 # define SPIN_DEP_MAP_INIT(lockname)
8a25d5debff2da Ingo Molnar 2006-07-03 49 #endif
8a25d5debff2da Ingo Molnar 2006-07-03 50
:::::: The code at line 27 was first introduced by commit
:::::: 8a25d5debff2daee280e83e09d8c25d67c26a972 [PATCH] lockdep: prove spinlock rwlock locking correctness
:::::: TO: Ingo Molnar <mingo(a)elte.hu>
:::::: CC: Linus Torvalds <torvalds(a)g5.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/gpu/drm/drm_gem_shmem_helper.c:540:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
by kernel test robot
Hi Gerd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4333a9b0b67bb4e8bcd91bdd80da80b0ec151162
commit: 0be895893607fb3447478d6e33dfb60644195a09 drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
date: 8 months ago
config: m68k-randconfig-r016-20200619 (attached as .config)
compiler: m68k-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 0be895893607fb3447478d6e33dfb60644195a09
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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/file.h:9,
from include/linux/dma-buf.h:16,
from drivers/gpu/drm/drm_gem_shmem_helper.c:6:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/drm_gem_shmem_helper.c: In function 'drm_gem_shmem_vmap_locked':
drivers/gpu/drm/drm_gem_shmem_helper.c:261:17: error: implicit declaration of function 'pgprot_writecombine' [-Werror=implicit-function-declaration]
261 | VM_MAP, pgprot_writecombine(PAGE_KERNEL));
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_gem_shmem_helper.c:261:17: error: incompatible type for argument 4 of 'vmap'
261 | VM_MAP, pgprot_writecombine(PAGE_KERNEL));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from include/asm-generic/io.h:887,
from arch/m68k/include/asm/io.h:11,
from arch/m68k/include/asm/pgtable_no.h:14,
from arch/m68k/include/asm/pgtable.h:3,
from include/linux/mm.h:99,
from include/linux/scatterlist.h:8,
from include/linux/dma-buf.h:18,
from drivers/gpu/drm/drm_gem_shmem_helper.c:6:
include/linux/vmalloc.h:119:14: note: expected 'pgprot_t' {aka 'struct <anonymous>'} but argument is of type 'int'
119 | extern void *vmap(struct page **pages, unsigned int count,
| ^~~~
drivers/gpu/drm/drm_gem_shmem_helper.c: In function 'drm_gem_shmem_mmap':
>> drivers/gpu/drm/drm_gem_shmem_helper.c:540:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
540 | vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags));
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +540 drivers/gpu/drm/drm_gem_shmem_helper.c
513
514 /**
515 * drm_gem_shmem_mmap - Memory-map a shmem GEM object
516 * @obj: gem object
517 * @vma: VMA for the area to be mapped
518 *
519 * This function implements an augmented version of the GEM DRM file mmap
520 * operation for shmem objects. Drivers which employ the shmem helpers should
521 * use this function as their &drm_gem_object_funcs.mmap handler.
522 *
523 * Returns:
524 * 0 on success or a negative error code on failure.
525 */
526 int drm_gem_shmem_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
527 {
528 struct drm_gem_shmem_object *shmem;
529 int ret;
530
531 shmem = to_drm_gem_shmem_obj(obj);
532
533 ret = drm_gem_shmem_get_pages(shmem);
534 if (ret) {
535 drm_gem_vm_close(vma);
536 return ret;
537 }
538
539 vma->vm_flags |= VM_IO | VM_MIXEDMAP | VM_DONTEXPAND | VM_DONTDUMP;
> 540 vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags));
541 vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
542 vma->vm_ops = &drm_gem_shmem_vm_ops;
543
544 /* Remove the fake offset */
545 vma->vm_pgoff -= drm_vma_node_start(&shmem->base.vma_node);
546
547 return 0;
548 }
549 EXPORT_SYMBOL_GPL(drm_gem_shmem_mmap);
550
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[jkirsher-next-queue:dev-queue 11/40] include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
head: f97c28a0f623a6d300f7533466cb09c4f1e420af
commit: 15bffa9f7bce7fd38c84c962e8f43eded722e6ae [11/40] virtchnl: Extend AVF ops
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-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 15bffa9f7bce7fd38c84c962e8f43eded722e6ae
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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 >>):
In file included from drivers/net/ethernet/intel/ice/ice.h:36,
from drivers/net/ethernet/intel/ice/ice_main.c:8:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
--
In file included from drivers/net/ethernet/intel/ice/ice.h:36,
from drivers/net/ethernet/intel/ice/ice_common.h:7,
from drivers/net/ethernet/intel/ice/ice_flex_pipe.c:4:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
In file included from drivers/net/ethernet/intel/ice/ice_flex_pipe.c:6:
drivers/net/ethernet/intel/ice/ice_flex_pipe.c: In function 'ice_free_flow_profs':
drivers/net/ethernet/intel/ice/ice_flow.h:197:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
197 | #define ICE_FLOW_ENTRY_HNDL(e) ((u64)e)
| ^
drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2922:9: note: in expansion of macro 'ICE_FLOW_ENTRY_HNDL'
2922 | ICE_FLOW_ENTRY_HNDL(e));
| ^~~~~~~~~~~~~~~~~~~
--
In file included from drivers/net/ethernet/intel/ice/ice.h:36,
from drivers/net/ethernet/intel/ice/ice_common.h:7,
from drivers/net/ethernet/intel/ice/ice_flow.c:4:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
In file included from drivers/net/ethernet/intel/ice/ice_flow.c:5:
drivers/net/ethernet/intel/ice/ice_flow.c: In function 'ice_flow_add_entry':
drivers/net/ethernet/intel/ice/ice_flow.h:197:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
197 | #define ICE_FLOW_ENTRY_HNDL(e) ((u64)e)
| ^
drivers/net/ethernet/intel/ice/ice_flow.c:946:13: note: in expansion of macro 'ICE_FLOW_ENTRY_HNDL'
946 | *entry_h = ICE_FLOW_ENTRY_HNDL(e);
| ^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/ice_flow.c: In function 'ice_flow_rem_entry':
drivers/net/ethernet/intel/ice/ice_flow.h:198:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
198 | #define ICE_FLOW_ENTRY_PTR(h) ((struct ice_flow_entry *)(h))
| ^
drivers/net/ethernet/intel/ice/ice_flow.c:974:10: note: in expansion of macro 'ICE_FLOW_ENTRY_PTR'
974 | entry = ICE_FLOW_ENTRY_PTR(entry_h);
| ^~~~~~~~~~~~~~~~~~
--
In file included from drivers/net/ethernet/intel/i40e/i40e_prototype.h:9,
from drivers/net/ethernet/intel/i40e/i40e.h:40,
from drivers/net/ethernet/intel/i40e/i40e_main.c:10:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/trace_events.h:21,
from include/trace/define_trace.h:102,
from drivers/net/ethernet/intel/i40e/i40e_trace.h:209,
from drivers/net/ethernet/intel/i40e/i40e_main.c:20:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
..
vim +/virtchnl_static_assert_virtchnl_config_rx_queues +952 include/linux/avf/virtchnl.h
951
> 952 VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
953
---
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 9731/9999] arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: e32b8d66db3100a239a87642f0a8025c396c0670
commit: 7580417d2782bc89f27754eefaa2c9f0c8023a48 [9731/9999] UPSTREAM: ASoC: Fix SND_SOC_ALL_CODECS imply misc fallout
config: arm64-randconfig-r003-20200619 (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
git checkout 7580417d2782bc89f27754eefaa2c9f0c8023a48
# 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 errors (new ones prefixed by >>):
WARNING: unmet direct dependencies detected for SND_SOC_WM5110
Depends on SOUND && !UML && SND && SND_SOC && MFD_WM5110
Selected by
- SND_SOC_SAMSUNG_TM2_WM5110 && SOUND && !UML && SND && SND_SOC && SND_SOC_SAMSUNG && MFD_ARIZONA && I2C && SPI_MASTER && (GPIOLIB || COMPILE_TEST
>> arch/arm64/kernel/vdso/vgettimeofday.c:9:5: error: no previous prototype for function '__kernel_clock_gettime'
int __kernel_clock_gettime(clockid_t clock,
^
arch/arm64/kernel/vdso/vgettimeofday.c:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __kernel_clock_gettime(clockid_t clock,
^
static
>> arch/arm64/kernel/vdso/vgettimeofday.c:15:5: error: no previous prototype for function '__kernel_gettimeofday'
int __kernel_gettimeofday(struct __kernel_old_timeval
^
arch/arm64/kernel/vdso/vgettimeofday.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __kernel_gettimeofday(struct __kernel_old_timeval
^
static
>> arch/arm64/kernel/vdso/vgettimeofday.c:21:5: error: no previous prototype for function '__kernel_clock_getres'
int __kernel_clock_getres(clockid_t clock_id,
^
arch/arm64/kernel/vdso/vgettimeofday.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __kernel_clock_getres(clockid_t clock_id,
^
static
3 errors generated.
Makefile arch include kernel null.dwo scripts source usr [scripts/Makefile.build:265: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1
Target 'include/generated/vdso-offsets.h' not remade because of errors.
Makefile arch include kernel null.dwo scripts source usr [arch/arm64/Makefile:163: vdso_prepare] Error 2
Target 'prepare' not remade because of errors.
make: Makefile arch include kernel null.dwo scripts source usr [Makefile:179: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/__kernel_clock_gettime +9 arch/arm64/kernel/vdso/vgettimeofday.c
28b1a824a4f44da Vincenzo Frascino 2019-06-21 @9 int __kernel_clock_gettime(clockid_t clock,
28b1a824a4f44da Vincenzo Frascino 2019-06-21 10 struct __kernel_timespec *ts)
28b1a824a4f44da Vincenzo Frascino 2019-06-21 11 {
28b1a824a4f44da Vincenzo Frascino 2019-06-21 12 return __cvdso_clock_gettime(clock, ts);
28b1a824a4f44da Vincenzo Frascino 2019-06-21 13 }
28b1a824a4f44da Vincenzo Frascino 2019-06-21 14
28b1a824a4f44da Vincenzo Frascino 2019-06-21 @15 int __kernel_gettimeofday(struct __kernel_old_timeval *tv,
28b1a824a4f44da Vincenzo Frascino 2019-06-21 16 struct timezone *tz)
28b1a824a4f44da Vincenzo Frascino 2019-06-21 17 {
28b1a824a4f44da Vincenzo Frascino 2019-06-21 18 return __cvdso_gettimeofday(tv, tz);
28b1a824a4f44da Vincenzo Frascino 2019-06-21 19 }
28b1a824a4f44da Vincenzo Frascino 2019-06-21 20
28b1a824a4f44da Vincenzo Frascino 2019-06-21 @21 int __kernel_clock_getres(clockid_t clock_id,
:::::: The code at line 9 was first introduced by commit
:::::: 28b1a824a4f44da46983cd2c3249f910bd4b797b arm64: vdso: Substitute gettimeofday() with C implementation
:::::: TO: Vincenzo Frascino <vincenzo.frascino(a)arm.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[ipmi:ipmi-wdt-rework 6/10] ipmi_watchdog.c:(.rodata.cst4+0x18): undefined reference to `watchdog_unregister_device'
by kernel test robot
tree: https://github.com/cminyard/linux-ipmi ipmi-wdt-rework
head: a22010ce71ef67492980e4c55ad7864679826b53
commit: e51fbadc1895c1b020a8121bf2f37cf207acb39a [6/10] ipmi:watchdog: Convert over to the watchdog framework
config: parisc-randconfig-c021-20200620 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
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 >>):
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC6':
>> ipmi_watchdog.c:(.rodata.cst4+0x18): undefined reference to `watchdog_unregister_device'
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC26':
>> ipmi_watchdog.c:(.rodata.cst4+0x58): undefined reference to `watchdog_set_pretimeout'
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC27':
>> ipmi_watchdog.c:(.rodata.cst4+0x5c): undefined reference to `watchdog_set_timeout'
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC48':
ipmi_watchdog.c:(.rodata.cst4+0x88): undefined reference to `watchdog_set_timeout'
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC86':
>> ipmi_watchdog.c:(.rodata.cst4+0xf4): undefined reference to `watchdog_init_timeout'
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC89':
>> ipmi_watchdog.c:(.rodata.cst4+0xfc): undefined reference to `watchdog_register_device'
hppa-linux-ld: drivers/char/ipmi/ipmi_watchdog.o: in function `.LC91':
>> ipmi_watchdog.c:(.rodata.cst4+0x100): undefined reference to `watchdog_start'
---
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 net-next] ipv6: icmp6: avoid indirect call for icmpv6_send()
by kernel test robot
Hi Eric,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/ipv6-icmp6-avoid-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 0fb9fbab405351aa0c18973881c4103e4da886b6
config: riscv-randconfig-r033-20200619 (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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 <<):
>> net/ipv6/icmp.c:442:6: warning: no previous prototype for function 'icmp6_send' [-Wmissing-prototypes]
void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
^
net/ipv6/icmp.c:442:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
^
static
1 warning generated.
vim +/icmp6_send +442 net/ipv6/icmp.c
438
439 /*
440 * Send an ICMP message in response to a packet in error
441 */
> 442 void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
443 const struct in6_addr *force_saddr)
444 {
445 struct inet6_dev *idev = NULL;
446 struct ipv6hdr *hdr = ipv6_hdr(skb);
447 struct sock *sk;
448 struct net *net;
449 struct ipv6_pinfo *np;
450 const struct in6_addr *saddr = NULL;
451 struct dst_entry *dst;
452 struct icmp6hdr tmp_hdr;
453 struct flowi6 fl6;
454 struct icmpv6_msg msg;
455 struct ipcm6_cookie ipc6;
456 int iif = 0;
457 int addr_type = 0;
458 int len;
459 u32 mark;
460
461 if ((u8 *)hdr < skb->head ||
462 (skb_network_header(skb) + sizeof(*hdr)) > skb_tail_pointer(skb))
463 return;
464
465 if (!skb->dev)
466 return;
467 net = dev_net(skb->dev);
468 mark = IP6_REPLY_MARK(net, skb->mark);
469 /*
470 * Make sure we respect the rules
471 * i.e. RFC 1885 2.4(e)
472 * Rule (e.1) is enforced by not using icmp6_send
473 * in any code that processes icmp errors.
474 */
475 addr_type = ipv6_addr_type(&hdr->daddr);
476
477 if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) ||
478 ipv6_chk_acast_addr_src(net, skb->dev, &hdr->daddr))
479 saddr = &hdr->daddr;
480
481 /*
482 * Dest addr check
483 */
484
485 if (addr_type & IPV6_ADDR_MULTICAST || skb->pkt_type != PACKET_HOST) {
486 if (type != ICMPV6_PKT_TOOBIG &&
487 !(type == ICMPV6_PARAMPROB &&
488 code == ICMPV6_UNK_OPTION &&
489 (opt_unrec(skb, info))))
490 return;
491
492 saddr = NULL;
493 }
494
495 addr_type = ipv6_addr_type(&hdr->saddr);
496
497 /*
498 * Source addr check
499 */
500
501 if (__ipv6_addr_needs_scope_id(addr_type)) {
502 iif = icmp6_iif(skb);
503 } else {
504 dst = skb_dst(skb);
505 iif = l3mdev_master_ifindex(dst ? dst->dev : skb->dev);
506 }
507
508 /*
509 * Must not send error if the source does not uniquely
510 * identify a single node (RFC2463 Section 2.4).
511 * We check unspecified / multicast addresses here,
512 * and anycast addresses will be checked later.
513 */
514 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) {
515 net_dbg_ratelimited("icmp6_send: addr_any/mcast source [%pI6c > %pI6c]\n",
516 &hdr->saddr, &hdr->daddr);
517 return;
518 }
519
520 /*
521 * Never answer to a ICMP packet.
522 */
523 if (is_ineligible(skb)) {
524 net_dbg_ratelimited("icmp6_send: no reply to icmp error [%pI6c > %pI6c]\n",
525 &hdr->saddr, &hdr->daddr);
526 return;
527 }
528
529 /* Needed by both icmp_global_allow and icmpv6_xmit_lock */
530 local_bh_disable();
531
532 /* Check global sysctl_icmp_msgs_per_sec ratelimit */
533 if (!(skb->dev->flags & IFF_LOOPBACK) && !icmpv6_global_allow(net, type))
534 goto out_bh_enable;
535
536 mip6_addr_swap(skb);
537
538 sk = icmpv6_xmit_lock(net);
539 if (!sk)
540 goto out_bh_enable;
541
542 memset(&fl6, 0, sizeof(fl6));
543 fl6.flowi6_proto = IPPROTO_ICMPV6;
544 fl6.daddr = hdr->saddr;
545 if (force_saddr)
546 saddr = force_saddr;
547 if (saddr) {
548 fl6.saddr = *saddr;
549 } else if (!icmpv6_rt_has_prefsrc(sk, type, &fl6)) {
550 /* select a more meaningful saddr from input if */
551 struct net_device *in_netdev;
552
553 in_netdev = dev_get_by_index(net, IP6CB(skb)->iif);
554 if (in_netdev) {
555 ipv6_dev_get_saddr(net, in_netdev, &fl6.daddr,
556 inet6_sk(sk)->srcprefs,
557 &fl6.saddr);
558 dev_put(in_netdev);
559 }
560 }
561 fl6.flowi6_mark = mark;
562 fl6.flowi6_oif = iif;
563 fl6.fl6_icmp_type = type;
564 fl6.fl6_icmp_code = code;
565 fl6.flowi6_uid = sock_net_uid(net, NULL);
566 fl6.mp_hash = rt6_multipath_hash(net, &fl6, skb, NULL);
567 security_skb_classify_flow(skb, flowi6_to_flowi(&fl6));
568
569 sk->sk_mark = mark;
570 np = inet6_sk(sk);
571
572 if (!icmpv6_xrlim_allow(sk, type, &fl6))
573 goto out;
574
575 tmp_hdr.icmp6_type = type;
576 tmp_hdr.icmp6_code = code;
577 tmp_hdr.icmp6_cksum = 0;
578 tmp_hdr.icmp6_pointer = htonl(info);
579
580 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr))
581 fl6.flowi6_oif = np->mcast_oif;
582 else if (!fl6.flowi6_oif)
583 fl6.flowi6_oif = np->ucast_oif;
584
585 ipcm6_init_sk(&ipc6, np);
586 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel);
587
588 dst = icmpv6_route_lookup(net, skb, sk, &fl6);
589 if (IS_ERR(dst))
590 goto out;
591
592 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst);
593
594 msg.skb = skb;
595 msg.offset = skb_network_offset(skb);
596 msg.type = type;
597
598 len = skb->len - msg.offset;
599 len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr));
600 if (len < 0) {
601 net_dbg_ratelimited("icmp: len problem [%pI6c > %pI6c]\n",
602 &hdr->saddr, &hdr->daddr);
603 goto out_dst_release;
604 }
605
606 rcu_read_lock();
607 idev = __in6_dev_get(skb->dev);
608
609 if (ip6_append_data(sk, icmpv6_getfrag, &msg,
610 len + sizeof(struct icmp6hdr),
611 sizeof(struct icmp6hdr),
612 &ipc6, &fl6, (struct rt6_info *)dst,
613 MSG_DONTWAIT)) {
614 ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTERRORS);
615 ip6_flush_pending_frames(sk);
616 } else {
617 icmpv6_push_pending_frames(sk, &fl6, &tmp_hdr,
618 len + sizeof(struct icmp6hdr));
619 }
620 rcu_read_unlock();
621 out_dst_release:
622 dst_release(dst);
623 out:
624 icmpv6_xmit_unlock(sk);
625 out_bh_enable:
626 local_bh_enable();
627 }
628 EXPORT_SYMBOL(icmp6_send);
629
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[jkirsher-next-queue:dev-queue 11/40] include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
head: f97c28a0f623a6d300f7533466cb09c4f1e420af
commit: 15bffa9f7bce7fd38c84c962e8f43eded722e6ae [11/40] virtchnl: Extend AVF ops
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 15bffa9f7bce7fd38c84c962e8f43eded722e6ae
# 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 >>):
In file included from drivers/net/ethernet/intel/i40e/i40e_prototype.h:9,
from drivers/net/ethernet/intel/i40e/i40e.h:40,
from drivers/net/ethernet/intel/i40e/i40e_main.c:10:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
In file included from drivers/net/ethernet/intel/i40e/i40e_trace.h:209,
from drivers/net/ethernet/intel/i40e/i40e_main.c:20:
include/trace/define_trace.h:95:42: fatal error: ./i40e_trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from drivers/net/ethernet/intel/i40e/i40e_prototype.h:9,
from drivers/net/ethernet/intel/i40e/i40e.h:40,
from drivers/net/ethernet/intel/i40e/i40e_ethtool.c:6:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
--
In file included from drivers/net/ethernet/intel/iavf/iavf.h:38,
from drivers/net/ethernet/intel/iavf/iavf_main.c:4:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
In file included from drivers/net/ethernet/intel/iavf/iavf_trace.h:209,
from drivers/net/ethernet/intel/iavf/iavf_main.c:12:
include/trace/define_trace.h:95:42: fatal error: ./iavf_trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from drivers/net/ethernet/intel/ice/ice.h:36,
from drivers/net/ethernet/intel/ice/ice_common.h:7,
from drivers/net/ethernet/intel/ice/ice_flex_pipe.c:4:
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:809:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:809:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_get_capabilities' is not an integer constant
809 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_get_capabilities);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:891:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:891:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_txq_info_v2' is not an integer constant
891 | VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:907:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:907:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_tx_queues' is not an integer constant
907 | VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:937:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:937:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rxq_info_v2' is not an integer constant
937 | VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:952:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:952:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_config_rx_queues' is not an integer constant
952 | VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:175:36: warning: division by zero [-Wdiv-by-zero]
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/avf/virtchnl.h:1090:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:1090:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_rss_hash' is not an integer constant
1090 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
| ^~~~~~~~~~~~~~~~~
include/linux/avf/virtchnl.h:175:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
175 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
In file included from drivers/net/ethernet/intel/ice/ice_flex_pipe.c:6:
drivers/net/ethernet/intel/ice/ice_flex_pipe.c: In function 'ice_free_flow_profs':
drivers/net/ethernet/intel/ice/ice_flow.h:197:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
197 | #define ICE_FLOW_ENTRY_HNDL(e) ((u64)e)
| ^
drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2922:9: note: in expansion of macro 'ICE_FLOW_ENTRY_HNDL'
2922 | ICE_FLOW_ENTRY_HNDL(e));
| ^~~~~~~~~~~~~~~~~~~
..
vim +/virtchnl_static_assert_virtchnl_txq_info_v2 +891 include/linux/avf/virtchnl.h
890
> 891 VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_txq_info_v2);
892
893 /* VIRTCHNL_OP_CONFIG_TX_QUEUES
894 * PF sends this message to set up parameters for one or more TX queues.
895 * This message contains an array of num_qinfo instances of virtchnl_txq_info_v2
896 * structures. CP configures requested queues and returns a status code. If
897 * num_qinfo specified is greater than the number of queues associated with the
898 * vport, an error is returned and no queues are configured.
899 */
900 struct virtchnl_config_tx_queues {
901 u16 vport_id;
902 u16 num_qinfo;
903 u32 rsvd;
904 struct virtchnl_txq_info_v2 qinfo[1];
905 };
906
907 VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_config_tx_queues);
908
909 /* Rx queue config info */
910 struct virtchnl_rxq_info_v2 {
911 u16 queue_id;
912 /* single or split */
913 enum virtchnl_queue_model model;
914 /* rx or rx buffer */
915 enum virtchnl_queue_type type;
916 /* base or native */
917 enum virtchnl_desc_profile desc_profile;
918 /* rsc, header-split, immediate write back */
919 u16 queue_flags;
920 /* 16 or 32 byte */
921 enum virtchnl_rxq_desc_size desc_size;
922 u16 ring_len;
923 u16 hdr_buffer_size;
924 u32 data_buffer_size;
925 u32 max_pkt_size;
926 u64 dma_ring_addr;
927 u64 dma_head_wb_addr;
928 u16 rsc_low_watermark;
929 u8 buffer_notif_stride;
930 enum virtchnl_rx_hsplit rx_split_pos;
931 /* valid only if queue model is split and type is rx buffer*/
932 u16 rx_bufq1_id;
933 /* valid only if queue model is split and type is rx buffer*/
934 u16 rx_bufq2_id;
935 };
936
937 VIRTCHNL_CHECK_STRUCT_LEN(72, virtchnl_rxq_info_v2);
938
939 /* VIRTCHNL_OP_CONFIG_RX_QUEUES
940 * PF sends this message to set up parameters for one or more RX queues.
941 * This message contains an array of num_qinfo instances of virtchnl_rxq_info_v2
942 * structures. CP configures requested queues and returns a status code.
943 * If the number of queues specified is greater than the number of queues
944 * associated with the vport, an error is returned and no queues are configured.
945 */
946 struct virtchnl_config_rx_queues {
947 u16 vport_id;
948 u16 num_qinfo;
949 struct virtchnl_rxq_info_v2 qinfo[1];
950 };
951
952 VIRTCHNL_CHECK_STRUCT_LEN(80, virtchnl_config_rx_queues);
953
954 /* VIRTCHNL_OP_ADD_QUEUES
955 * PF sends this message to request additional TX/RX queues beyond the ones
956 * that were assigned via CREATE_VPORT request. virtchnl_add_queues structure is
957 * used to specify the number of each type of queues.
958 * CP responds with the same structure with the actual number of queues assigned
959 * followed by num_chunks of virtchnl_queue_chunk structures.
960 */
961 struct virtchnl_add_queues {
962 u16 vport_id;
963 u16 num_tx_q;
964 u16 num_tx_complq;
965 u16 num_rx_q;
966 u16 num_rx_bufq;
967 struct virtchnl_queue_chunks chunks;
968 };
969
970 VIRTCHNL_CHECK_STRUCT_LEN(24, virtchnl_add_queues);
971
972 /* VIRTCHNL_OP_ENABLE_QUEUES
973 * VIRTCHNL_OP_DISABLE_QUEUES
974 * VIRTCHNL_OP_DEL_QUEUES
975 * PF sends these messages to enable, disable or delete queues specified in
976 * chunks. PF sends virtchnl_del_ena_dis_queues struct to specify the queues
977 * to be enabled/disabled/deleted. Also applicable to single queue RX or
978 * TX. CP performs requested action and returns status.
979 */
980 struct virtchnl_del_ena_dis_queues {
981 u16 vport_id;
982 struct virtchnl_queue_chunks chunks;
983 };
984
985 VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_del_ena_dis_queues);
986
987 /* Virtchannel interrupt throttling rate index */
988 enum virtchnl_itr_idx {
989 VIRTCHNL_ITR_IDX_0 = 0,
990 VIRTCHNL_ITR_IDX_1 = 1,
991 VIRTCHNL_ITR_IDX_NO_ITR = 3,
992 };
993
994 /* Queue to vector mapping */
995 struct virtchnl_queue_vector {
996 u16 queue_id;
997 u16 vector_id;
998 enum virtchnl_itr_idx itr_idx;
999 enum virtchnl_queue_type queue_type;
1000 };
1001
1002 VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_queue_vector);
1003
1004 /* VIRTCHNL_OP_MAP_QUEUE_VECTOR
1005 * VIRTCHNL_OP_UNMAP_QUEUE_VECTOR
1006 * PF sends this message to map or unmap queues to vectors and ITR index
1007 * registers. External data buffer contains virtchnl_queue_vector_maps structure
1008 * that contains num_maps of virtchnl_queue_vector structures.
1009 * CP maps the requested queue vector maps after validating the queue and vector
1010 * ids and returns a status code.
1011 */
1012 struct virtchnl_queue_vector_maps {
1013 u16 vport_id;
1014 u16 num_maps;
1015 struct virtchnl_queue_vector qv_maps[1];
1016 };
1017
1018 VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_queue_vector_maps);
1019
1020 /* Structure to specify a chunk of contiguous interrupt vectors */
1021 struct virtchnl_vector_chunk {
1022 u16 start_vector_id;
1023 u16 num_vectors;
1024 };
1025
1026 VIRTCHNL_CHECK_STRUCT_LEN(4, virtchnl_vector_chunk);
1027
1028 /* Structure to specify several chunks of contiguous interrupt vectors */
1029 struct virtchnl_vector_chunks {
1030 u16 num_vector_chunks;
1031 struct virtchnl_vector_chunk num_vchunk[1];
1032 };
1033
1034 VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_vector_chunks);
1035
1036 /* VIRTCHNL_OP_ALLOC_VECTORS
1037 * PF sends this message to request additional interrupt vectors beyond the
1038 * ones that were assigned via GET_CAPS request. virtchnl_alloc_vectors
1039 * structure is used to specify the number of vectors requested. CP responds
1040 * with the same structure with the actual number of vectors assigned followed
1041 * by virtchnl_vector_chunks structure identifying the vector ids.
1042 */
1043 struct virtchnl_alloc_vectors {
1044 u16 num_vectors;
1045 struct virtchnl_vector_chunks vchunks;
1046 };
1047
1048 VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_alloc_vectors);
1049
1050 /* VIRTCHNL_OP_DEALLOC_VECTORS
1051 * PF sends this message to release the vectors.
1052 * PF sends virtchnl_vector_chunks struct to specify the vectors it is giving
1053 * away. CP performs requested action and returns status.
1054 */
1055
1056 /* VIRTCHNL_OP_GET_RSS_LUT
1057 * VIRTCHNL_OP_SET_RSS_LUT
1058 * PF sends this message to get or set RSS lookup table. Only supported if
1059 * both PF and CP drivers set the VIRTCHNL_CAP_RSS bit during configuration
1060 * negotiation. Uses the virtchnl_rss_lut_v2 structure
1061 */
1062 struct virtchnl_rss_lut_v2 {
1063 u16 vport_id;
1064 u16 lut_entries;
1065 u16 lut[1]; /* RSS lookup table */
1066 };
1067
1068 VIRTCHNL_CHECK_STRUCT_LEN(6, virtchnl_rss_lut_v2);
1069
1070 /* VIRTCHNL_OP_GET_RSS_KEY
1071 * PF sends this message to get RSS key. Only supported if
1072 * both PF and CP drivers set the VIRTCHNL_CAP_RSS bit during configuration
1073 * negotiation. Uses the virtchnl_rss_key structure
1074 */
1075
1076 /* VIRTCHNL_OP_GET_RSS_HASH
1077 * VIRTCHNL_OP_SET_RSS_HASH
1078 * PF sends these messages to get and set the hash filter enable bits for RSS.
1079 * By default, the CP sets these to all possible traffic types that the
1080 * hardware supports. The PF can query this value if it wants to change the
1081 * traffic types that are hashed by the hardware.
1082 * Only supported if both PF and CP drivers set the VIRTCHNL_CAP_RSS bit
1083 * during configuration negotiation.
1084 */
1085 struct virtchnl_rss_hash {
1086 u64 hash;
1087 u16 vport_id;
1088 };
1089
> 1090 VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_rss_hash);
1091
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[peterz-queue:x86/module 3/5] module.c:undefined reference to `split_lock_enabled'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/module
head: c9a32b3020effe753a95d2e26662206b7aadf832
commit: b88bbb9edf5931e928d27169d4b223f8a99313bb [3/5] x86,module: Detect VMX vs SLD conflicts
config: um-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout b88bbb9edf5931e928d27169d4b223f8a99313bb
# 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 >>):
/usr/bin/ld: arch/x86/um/../kernel/module.o: in function `decode_module':
>> module.c:(.text+0x26): undefined reference to `split_lock_enabled'
/usr/bin/ld: module.c:(.text+0x39): undefined reference to `insn_init'
/usr/bin/ld: module.c:(.text+0x6b): undefined reference to `insn_get_length'
>> /usr/bin/ld: module.c:(.text+0x162): undefined reference to `insn_get_prefixes'
collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-platform-linux:for-kernelci 5/9] drivers/platform/chrome/cros_ec_typec.c:364:5: warning: no previous prototype for 'cros_typec_configure_mux'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-kernelci
head: 565ffffee3366a1a9bc4fc040088f1b57bd6c6f9
commit: 7e7def15fa4bc9d6a2fa3d1d379286591c249381 [5/9] platform/chrome: cros_ec_typec: Add USB mux control
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-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 7e7def15fa4bc9d6a2fa3d1d379286591c249381
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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 warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/platform/chrome/cros_ec_typec.c:364:5: warning: no previous prototype for 'cros_typec_configure_mux' [-Wmissing-prototypes]
364 | int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/cros_typec_configure_mux +364 drivers/platform/chrome/cros_ec_typec.c
363
> 364 int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
365 uint8_t mux_flags)
366 {
367 struct cros_typec_port *port = typec->ports[port_num];
368 enum typec_orientation orientation;
369 int ret;
370
371 if (!port->partner)
372 return 0;
373
374 if (mux_flags & USB_PD_MUX_POLARITY_INVERTED)
375 orientation = TYPEC_ORIENTATION_REVERSE;
376 else
377 orientation = TYPEC_ORIENTATION_NORMAL;
378
379 ret = typec_switch_set(port->ori_sw, orientation);
380 if (ret)
381 return ret;
382
383 port->state.alt = NULL;
384 port->state.mode = TYPEC_STATE_USB;
385
386 if (mux_flags & USB_PD_MUX_SAFE_MODE)
387 ret = cros_typec_usb_safe_state(port);
388 else if (mux_flags & USB_PD_MUX_USB_ENABLED)
389 ret = typec_mux_set(port->mux, &port->state);
390 else {
391 dev_info(typec->dev,
392 "Unsupported mode requested, mux flags: %x\n",
393 mux_flags);
394 ret = -ENOTSUPP;
395 }
396
397 return ret;
398 }
399
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months