[linux-next:master 341/8516] drivers/gpu/drm/i915/gem/i915_gem_ttm.c:173:36: warning: unused parameter 'place'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9803fb968c8c2e1283f67b3baeb88e0adba435b4
commit: d53ec322dc7de32a59bf1c2a56b93e90fc2f1c28 [341/8516] drm/i915/ttm: switch over to ttm_buddy_man
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d53ec322dc7de32a59bf1c2a56b93e90fc2f1c28
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
^
include/linux/pci.h:2154:69: warning: unused parameter 'dev' [-Wunused-parameter]
static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno)
^
include/linux/pci.h:2154:78: warning: unused parameter 'resno' [-Wunused-parameter]
static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno)
^
include/linux/pci.h:2156:61: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool probe) { }
^
include/linux/pci.h:2156:71: warning: unused parameter 'probe' [-Wunused-parameter]
static inline void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool probe) { }
^
In file included from drivers/gpu/drm/i915/gem/i915_gem_ttm.c:9:
In file included from drivers/gpu/drm/i915/i915_drv.h:84:
In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9:
drivers/gpu/drm/i915/gt/uc/intel_guc.h:109:59: warning: unused parameter 'guc' [-Wunused-parameter]
static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
^
In file included from drivers/gpu/drm/i915/gem/i915_gem_ttm.c:9:
In file included from drivers/gpu/drm/i915/i915_drv.h:84:
In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:10:
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h:24:72: warning: unused parameter 'guc' [-Wunused-parameter]
static inline bool intel_guc_submission_is_supported(struct intel_guc *guc)
^
In file included from drivers/gpu/drm/i915/gem/i915_gem_ttm.c:9:
In file included from drivers/gpu/drm/i915/i915_drv.h:101:
drivers/gpu/drm/i915/i915_gpu_error.h:276:43: warning: unused parameter 'gt' [-Wunused-parameter]
i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask)
^
drivers/gpu/drm/i915/i915_gpu_error.h:276:67: warning: unused parameter 'engine_mask' [-Wunused-parameter]
i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask)
^
drivers/gpu/drm/i915/i915_gpu_error.h:281:50: warning: unused parameter 'i915' [-Wunused-parameter]
i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:281:62: warning: unused parameter 'gfp' [-Wunused-parameter]
i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:287:42: warning: unused parameter 'gt' [-Wunused-parameter]
intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:287:52: warning: unused parameter 'gfp' [-Wunused-parameter]
intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:293:53: warning: unused parameter 'engine' [-Wunused-parameter]
intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:293:67: warning: unused parameter 'gfp' [-Wunused-parameter]
intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:299:65: warning: unused parameter 'ee' [-Wunused-parameter]
intel_engine_coredump_add_request(struct intel_engine_coredump *ee,
^
drivers/gpu/drm/i915/i915_gpu_error.h:300:28: warning: unused parameter 'rq' [-Wunused-parameter]
struct i915_request *rq,
^
drivers/gpu/drm/i915/i915_gpu_error.h:301:13: warning: unused parameter 'gfp' [-Wunused-parameter]
gfp_t gfp)
^
drivers/gpu/drm/i915/i915_gpu_error.h:307:61: warning: unused parameter 'ee' [-Wunused-parameter]
intel_engine_coredump_add_vma(struct intel_engine_coredump *ee,
^
drivers/gpu/drm/i915/i915_gpu_error.h:308:43: warning: unused parameter 'capture' [-Wunused-parameter]
struct intel_engine_capture_vma *capture,
^
drivers/gpu/drm/i915/i915_gpu_error.h:309:36: warning: unused parameter 'compress' [-Wunused-parameter]
struct i915_vma_compress *compress)
^
drivers/gpu/drm/i915/i915_gpu_error.h:314:52: warning: unused parameter 'gt' [-Wunused-parameter]
i915_vma_capture_prepare(struct intel_gt_coredump *gt)
^
drivers/gpu/drm/i915/i915_gpu_error.h:320:51: warning: unused parameter 'gt' [-Wunused-parameter]
i915_vma_capture_finish(struct intel_gt_coredump *gt,
^
drivers/gpu/drm/i915/i915_gpu_error.h:321:30: warning: unused parameter 'compress' [-Wunused-parameter]
struct i915_vma_compress *compress)
^
drivers/gpu/drm/i915/i915_gpu_error.h:326:50: warning: unused parameter 'error' [-Wunused-parameter]
i915_error_state_store(struct i915_gpu_coredump *error)
^
drivers/gpu/drm/i915/i915_gpu_error.h:330:68: warning: unused parameter 'gpu' [-Wunused-parameter]
static inline void i915_gpu_coredump_put(struct i915_gpu_coredump *gpu)
^
drivers/gpu/drm/i915/i915_gpu_error.h:335:49: warning: unused parameter 'i915' [-Wunused-parameter]
i915_first_error_state(struct drm_i915_private *i915)
^
drivers/gpu/drm/i915/i915_gpu_error.h:340:68: warning: unused parameter 'i915' [-Wunused-parameter]
static inline void i915_reset_error_state(struct drm_i915_private *i915)
^
drivers/gpu/drm/i915/i915_gpu_error.h:344:70: warning: unused parameter 'i915' [-Wunused-parameter]
static inline void i915_disable_error_state(struct drm_i915_private *i915,
^
drivers/gpu/drm/i915/i915_gpu_error.h:345:14: warning: unused parameter 'err' [-Wunused-parameter]
int err)
^
>> drivers/gpu/drm/i915/gem/i915_gem_ttm.c:173:36: warning: unused parameter 'place' [-Wunused-parameter]
const struct ttm_place *place)
^
drivers/gpu/drm/i915/gem/i915_gem_ttm.c:181:60: warning: unused parameter 'bo' [-Wunused-parameter]
static void i915_ttm_evict_flags(struct ttm_buffer_object *bo,
^
drivers/gpu/drm/i915/gem/i915_gem_ttm.c:329:61: warning: unused parameter 'evict' [-Wunused-parameter]
static int i915_ttm_move(struct ttm_buffer_object *bo, bool evict,
^
drivers/gpu/drm/i915/gem/i915_gem_ttm.c:332:23: warning: unused parameter 'hop' [-Wunused-parameter]
struct ttm_place *hop)
^
drivers/gpu/drm/i915/gem/i915_gem_ttm.c:404:55: warning: unused parameter 'bdev' [-Wunused-parameter]
static int i915_ttm_io_mem_reserve(struct ttm_device *bdev, struct ttm_resource *mem)
^
drivers/gpu/drm/i915/gem/i915_gem_ttm.c:486:28: warning: unused parameter 'st' [-Wunused-parameter]
struct sg_table *st)
^
1568 warnings and 1 error generated.
vim +/place +173 drivers/gpu/drm/i915/gem/i915_gem_ttm.c
213d5092776345 Thomas Hellström 2021-06-10 171
213d5092776345 Thomas Hellström 2021-06-10 172 static bool i915_ttm_eviction_valuable(struct ttm_buffer_object *bo,
213d5092776345 Thomas Hellström 2021-06-10 @173 const struct ttm_place *place)
213d5092776345 Thomas Hellström 2021-06-10 174 {
213d5092776345 Thomas Hellström 2021-06-10 175 struct drm_i915_gem_object *obj = i915_ttm_to_gem(bo);
213d5092776345 Thomas Hellström 2021-06-10 176
213d5092776345 Thomas Hellström 2021-06-10 177 /* Will do for now. Our pinned objects are still on TTM's LRU lists */
d53ec322dc7de3 Matthew Auld 2021-06-16 178 return i915_gem_object_evictable(obj);
213d5092776345 Thomas Hellström 2021-06-10 179 }
213d5092776345 Thomas Hellström 2021-06-10 180
:::::: The code at line 173 was first introduced by commit
:::::: 213d5092776345ad5d6e2efa36a6bfbe9899e8b3 drm/i915/ttm: Introduce a TTM i915 gem object backend
:::::: TO: Thomas Hellström <thomas.hellstrom(a)linux.intel.com>
:::::: CC: Maarten Lankhorst <maarten.lankhorst(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 8399/8516] include/linux/cpumask.h:126:68: warning: unused parameter 'srcp1'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9803fb968c8c2e1283f67b3baeb88e0adba435b4
commit: ceeec6f49cb30b8ba321677f4498e6158c6b4deb [8399/8516] cpumask: use find_first_and_bit()
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ceeec6f49cb30b8ba321677f4498e6158c6b4deb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:17:
arch/x86/include/asm/alternative.h:90:63: warning: unused parameter 'mod' [-Wunused-parameter]
static inline void alternatives_smp_module_add(struct module *mod, char *name,
^
arch/x86/include/asm/alternative.h:90:74: warning: unused parameter 'name' [-Wunused-parameter]
static inline void alternatives_smp_module_add(struct module *mod, char *name,
^
arch/x86/include/asm/alternative.h:91:19: warning: unused parameter 'locks' [-Wunused-parameter]
void *locks, void *locks_end,
^
arch/x86/include/asm/alternative.h:91:32: warning: unused parameter 'locks_end' [-Wunused-parameter]
void *locks, void *locks_end,
^
arch/x86/include/asm/alternative.h:92:19: warning: unused parameter 'text' [-Wunused-parameter]
void *text, void *text_end) {}
^
arch/x86/include/asm/alternative.h:92:31: warning: unused parameter 'text_end' [-Wunused-parameter]
void *text, void *text_end) {}
^
arch/x86/include/asm/alternative.h:93:63: warning: unused parameter 'mod' [-Wunused-parameter]
static inline void alternatives_smp_module_del(struct module *mod) {}
^
arch/x86/include/asm/alternative.h:95:52: warning: unused parameter 'start' [-Wunused-parameter]
static inline int alternatives_text_reserved(void *start, void *end)
^
arch/x86/include/asm/alternative.h:95:65: warning: unused parameter 'end' [-Wunused-parameter]
static inline int alternatives_text_reserved(void *start, void *end)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:389:
In file included from include/asm-generic/bitops/instrumented-atomic.h:14:
include/linux/instrumented.h:116:38: warning: unused parameter 'to' [-Wunused-parameter]
instrument_copy_to_user(void __user *to, const void *from, unsigned long n)
^
include/linux/instrumented.h:133:62: warning: unused parameter 'from' [-Wunused-parameter]
instrument_copy_from_user(const void *to, const void __user *from, unsigned long n)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:393:
In file included from include/asm-generic/bitops/le.h:6:
In file included from arch/x86/include/uapi/asm/byteorder.h:5:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:19:
In file included from include/linux/list.h:9:
include/linux/kernel.h:323:48: warning: unused parameter 'fmt' [-Wunused-parameter]
void ____trace_printk_check_format(const char *fmt, ...)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:12:
In file included from include/linux/mutex.h:14:
In file included from arch/x86/include/asm/current.h:6:
In file included from arch/x86/include/asm/percpu.h:390:
In file included from include/asm-generic/percpu.h:7:
include/linux/percpu-defs.h:313:57: warning: unused parameter 'op' [-Wunused-parameter]
static inline void __this_cpu_preempt_check(const char *op) { }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:12:
In file included from include/linux/mutex.h:17:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:13:
include/linux/cpumask.h:105:51: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
^
include/linux/cpumask.h:105:69: warning: unused parameter 'bits' [-Wunused-parameter]
static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
^
include/linux/cpumask.h:121:64: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_first(const struct cpumask *srcp)
^
>> include/linux/cpumask.h:126:68: warning: unused parameter 'srcp1' [-Wunused-parameter]
static inline unsigned int cpumask_first_and(const struct cpumask *srcp1,
^
>> include/linux/cpumask.h:127:33: warning: unused parameter 'srcp2' [-Wunused-parameter]
const struct cpumask *srcp2)
^
include/linux/cpumask.h:132:63: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_last(const struct cpumask *srcp)
^
include/linux/cpumask.h:138:70: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
^
include/linux/cpumask.h:143:75: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp)
^
include/linux/cpumask.h:149:32: warning: unused parameter 'srcp' [-Wunused-parameter]
const struct cpumask *srcp,
^
include/linux/cpumask.h:150:32: warning: unused parameter 'andp' [-Wunused-parameter]
const struct cpumask *andp)
^
include/linux/cpumask.h:155:75: warning: unused parameter 'mask' [-Wunused-parameter]
static inline unsigned int cpumask_next_wrap(int n, const struct cpumask *mask,
^
include/linux/cpumask.h:156:15: warning: unused parameter 'start' [-Wunused-parameter]
int start, bool wrap)
^
include/linux/cpumask.h:163:66: warning: unused parameter 'mask' [-Wunused-parameter]
static inline unsigned int cpumask_any_but(const struct cpumask *mask,
^
include/linux/cpumask.h:164:22: warning: unused parameter 'cpu' [-Wunused-parameter]
unsigned int cpu)
^
include/linux/cpumask.h:169:62: warning: unused parameter 'i' [-Wunused-parameter]
static inline unsigned int cpumask_local_spread(unsigned int i, int node)
^
include/linux/cpumask.h:169:69: warning: unused parameter 'node' [-Wunused-parameter]
static inline unsigned int cpumask_local_spread(unsigned int i, int node)
^
include/linux/cpumask.h:748:53: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:748:65: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:753:58: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:753:70: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:754:12: warning: unused parameter 'node' [-Wunused-parameter]
int node)
^
include/linux/cpumask.h:759:66: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:765:71: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:766:12: warning: unused parameter 'node' [-Wunused-parameter]
int node)
^
include/linux/cpumask.h:772:61: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void alloc_bootmem_cpumask_var(cpumask_var_t *mask)
^
include/linux/cpumask.h:776:51: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void free_cpumask_var(cpumask_var_t mask)
^
include/linux/cpumask.h:780:59: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void free_bootmem_cpumask_var(cpumask_var_t mask)
^
include/linux/cpumask.h:784:52: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool cpumask_available(cpumask_var_t mask)
^
include/linux/cpumask.h:864:58: warning: unused parameter 'bitmap' [-Wunused-parameter]
static inline int __check_is_bitmap(const unsigned long *bitmap)
^
include/linux/cpumask.h:955:43: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool cpu_dying(unsigned int cpu)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:12:
In file included from include/linux/mutex.h:17:
In file included from include/linux/lockdep.h:14:
include/linux/smp.h:193:57: warning: unused parameter 'func' [-Wunused-parameter]
static inline void up_smp_call_function(smp_call_func_t func, void *info)
^
include/linux/smp.h:193:69: warning: unused parameter 'info' [-Wunused-parameter]
static inline void up_smp_call_function(smp_call_func_t func, void *info)
^
include/linux/smp.h:199:44: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void smp_send_reschedule(int cpu) { }
^
include/linux/smp.h:206:45: warning: unused parameter 'mask' [-Wunused-parameter]
smp_call_function_any(const struct cpumask *mask, smp_call_func_t func,
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
--
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:40:
In file included from arch/x86/include/asm/nospec-branch.h:12:
In file included from arch/x86/include/asm/unwind_hints.h:6:
In file included from arch/x86/include/asm/orc_types.h:43:
In file included from arch/x86/include/uapi/asm/byteorder.h:5:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
arch/x86/include/asm/ptrace.h:149:52: warning: unused parameter 'regs' [-Wunused-parameter]
static inline bool user_64bit_mode(struct pt_regs *regs)
^
arch/x86/include/asm/ptrace.h:171:51: warning: unused parameter 'regs' [-Wunused-parameter]
static inline bool any_64bit_mode(struct pt_regs *regs)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:17:
In file included from arch/x86/include/asm/current.h:6:
In file included from arch/x86/include/asm/percpu.h:27:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:389:
In file included from include/asm-generic/bitops/instrumented-atomic.h:14:
include/linux/instrumented.h:116:38: warning: unused parameter 'to' [-Wunused-parameter]
instrument_copy_to_user(void __user *to, const void *from, unsigned long n)
^
include/linux/instrumented.h:133:62: warning: unused parameter 'from' [-Wunused-parameter]
instrument_copy_from_user(const void *to, const void __user *from, unsigned long n)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:17:
In file included from arch/x86/include/asm/current.h:6:
In file included from arch/x86/include/asm/percpu.h:27:
include/linux/kernel.h:323:48: warning: unused parameter 'fmt' [-Wunused-parameter]
void ____trace_printk_check_format(const char *fmt, ...)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:17:
In file included from arch/x86/include/asm/current.h:6:
In file included from arch/x86/include/asm/percpu.h:390:
In file included from include/asm-generic/percpu.h:7:
include/linux/percpu-defs.h:313:57: warning: unused parameter 'op' [-Wunused-parameter]
static inline void __this_cpu_preempt_check(const char *op) { }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:19:
arch/x86/include/asm/page.h:25:62: warning: unused parameter 'vaddr' [-Wunused-parameter]
static inline void clear_user_page(void *page, unsigned long vaddr,
^
arch/x86/include/asm/page.h:26:21: warning: unused parameter 'pg' [-Wunused-parameter]
struct page *pg)
^
arch/x86/include/asm/page.h:31:71: warning: unused parameter 'vaddr' [-Wunused-parameter]
static inline void copy_user_page(void *to, void *from, unsigned long vaddr,
^
arch/x86/include/asm/page.h:32:20: warning: unused parameter 'topage' [-Wunused-parameter]
struct page *topage)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:22:
In file included from arch/x86/include/asm/msr.h:11:
In file included from arch/x86/include/asm/cpumask.h:5:
include/linux/cpumask.h:105:51: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
^
include/linux/cpumask.h:105:69: warning: unused parameter 'bits' [-Wunused-parameter]
static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
^
include/linux/cpumask.h:121:64: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_first(const struct cpumask *srcp)
^
>> include/linux/cpumask.h:126:68: warning: unused parameter 'srcp1' [-Wunused-parameter]
static inline unsigned int cpumask_first_and(const struct cpumask *srcp1,
^
>> include/linux/cpumask.h:127:33: warning: unused parameter 'srcp2' [-Wunused-parameter]
const struct cpumask *srcp2)
^
include/linux/cpumask.h:132:63: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_last(const struct cpumask *srcp)
^
include/linux/cpumask.h:138:70: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
^
include/linux/cpumask.h:143:75: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp)
^
include/linux/cpumask.h:149:32: warning: unused parameter 'srcp' [-Wunused-parameter]
const struct cpumask *srcp,
^
include/linux/cpumask.h:150:32: warning: unused parameter 'andp' [-Wunused-parameter]
const struct cpumask *andp)
^
include/linux/cpumask.h:155:75: warning: unused parameter 'mask' [-Wunused-parameter]
static inline unsigned int cpumask_next_wrap(int n, const struct cpumask *mask,
^
include/linux/cpumask.h:156:15: warning: unused parameter 'start' [-Wunused-parameter]
int start, bool wrap)
^
include/linux/cpumask.h:163:66: warning: unused parameter 'mask' [-Wunused-parameter]
static inline unsigned int cpumask_any_but(const struct cpumask *mask,
^
include/linux/cpumask.h:164:22: warning: unused parameter 'cpu' [-Wunused-parameter]
unsigned int cpu)
^
include/linux/cpumask.h:169:62: warning: unused parameter 'i' [-Wunused-parameter]
static inline unsigned int cpumask_local_spread(unsigned int i, int node)
^
include/linux/cpumask.h:169:69: warning: unused parameter 'node' [-Wunused-parameter]
static inline unsigned int cpumask_local_spread(unsigned int i, int node)
^
include/linux/cpumask.h:748:53: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:748:65: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:753:58: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:753:70: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:754:12: warning: unused parameter 'node' [-Wunused-parameter]
int node)
^
include/linux/cpumask.h:759:66: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:765:71: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:766:12: warning: unused parameter 'node' [-Wunused-parameter]
int node)
^
include/linux/cpumask.h:772:61: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void alloc_bootmem_cpumask_var(cpumask_var_t *mask)
^
include/linux/cpumask.h:776:51: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void free_cpumask_var(cpumask_var_t mask)
^
include/linux/cpumask.h:780:59: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void free_bootmem_cpumask_var(cpumask_var_t mask)
^
include/linux/cpumask.h:784:52: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool cpumask_available(cpumask_var_t mask)
^
include/linux/cpumask.h:864:58: warning: unused parameter 'bitmap' [-Wunused-parameter]
static inline int __check_is_bitmap(const unsigned long *bitmap)
^
include/linux/cpumask.h:955:43: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool cpu_dying(unsigned int cpu)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:22:
arch/x86/include/asm/msr.h:346:45: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h)
^
arch/x86/include/asm/msr.h:351:45: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h)
^
arch/x86/include/asm/msr.h:356:46: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline int rdmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 *q)
^
arch/x86/include/asm/msr.h:361:46: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline int wrmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 q)
^
arch/x86/include/asm/msr.h:366:56: warning: unused parameter 'm' [-Wunused-parameter]
static inline void rdmsr_on_cpus(const struct cpumask *m, u32 msr_no,
^
arch/x86/include/asm/msr.h:371:56: warning: unused parameter 'm' [-Wunused-parameter]
static inline void wrmsr_on_cpus(const struct cpumask *m, u32 msr_no,
^
..
vim +/srcp1 +126 include/linux/cpumask.h
104
> 105 static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
106 {
107 #ifdef CONFIG_DEBUG_PER_CPU_MAPS
108 WARN_ON_ONCE(cpu >= bits);
109 #endif /* CONFIG_DEBUG_PER_CPU_MAPS */
110 }
111
112 /* verify cpu argument to cpumask_* operators */
113 static inline unsigned int cpumask_check(unsigned int cpu)
114 {
115 cpu_max_bits_warn(cpu, nr_cpumask_bits);
116 return cpu;
117 }
118
119 #if NR_CPUS == 1
120 /* Uniprocessor. Assume all masks are "1". */
121 static inline unsigned int cpumask_first(const struct cpumask *srcp)
122 {
123 return 0;
124 }
125
> 126 static inline unsigned int cpumask_first_and(const struct cpumask *srcp1,
> 127 const struct cpumask *srcp2)
128 {
129 return 0;
130 }
131
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 7380/8516] drivers/net/ethernet/intel/igc/igc_main.c:4994: undefined reference to `ptp_clock_event'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 9803fb968c8c2e1283f67b3baeb88e0adba435b4
commit: e5f31552674e88bff3a4e3ca3e5357668b5f2973 [7380/8516] ethernet: fix PTP_1588_CLOCK dependencies
config: x86_64-randconfig-s021-20210817 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e5f31552674e88bff3a4e3ca3e5357668b5f2973
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_resume_worker':
drivers/gpu/drm/drm_fb_helper.c:370: undefined reference to `fb_set_suspend'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_fini':
drivers/gpu/drm/drm_fb_helper.c:634: undefined reference to `framebuffer_release'
ld: drivers/gpu/drm/drm_fb_helper.c:633: undefined reference to `fb_dealloc_cmap'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_write':
drivers/gpu/drm/drm_fb_helper.c:746: undefined reference to `fb_sys_write'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_fillrect':
drivers/gpu/drm/drm_fb_helper.c:764: undefined reference to `sys_fillrect'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_copyarea':
drivers/gpu/drm/drm_fb_helper.c:779: undefined reference to `sys_copyarea'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_imageblit':
drivers/gpu/drm/drm_fb_helper.c:794: undefined reference to `sys_imageblit'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_fillrect':
drivers/gpu/drm/drm_fb_helper.c:809: undefined reference to `cfb_fillrect'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_copyarea':
drivers/gpu/drm/drm_fb_helper.c:824: undefined reference to `cfb_copyarea'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_imageblit':
drivers/gpu/drm/drm_fb_helper.c:839: undefined reference to `cfb_imageblit'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend_unlocked':
drivers/gpu/drm/drm_fb_helper.c:901: undefined reference to `fb_set_suspend'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `__drm_fb_helper_initial_config_and_unlock':
drivers/gpu/drm/drm_fb_helper.c:1855: undefined reference to `register_framebuffer'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_cleanup':
drivers/gpu/drm/drm_fb_helper.c:2042: undefined reference to `fb_deferred_io_cleanup'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_alloc_fbi':
drivers/gpu/drm/drm_fb_helper.c:559: undefined reference to `framebuffer_alloc'
ld: drivers/gpu/drm/drm_fb_helper.c:563: undefined reference to `fb_alloc_cmap'
ld: drivers/gpu/drm/drm_fb_helper.c:589: undefined reference to `framebuffer_release'
ld: drivers/gpu/drm/drm_fb_helper.c:587: undefined reference to `fb_dealloc_cmap'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_generic_probe':
drivers/gpu/drm/drm_fb_helper.c:2347: undefined reference to `fb_deferred_io_init'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend':
drivers/gpu/drm/drm_fb_helper.c:856: undefined reference to `fb_set_suspend'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_unregister_fbi':
drivers/gpu/drm/drm_fb_helper.c:605: undefined reference to `unregister_framebuffer'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_read':
drivers/gpu/drm/drm_fb_helper.c:728: undefined reference to `fb_sys_read'
ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_unregister_fbi':
drivers/gpu/drm/drm_fb_helper.c:605: undefined reference to `unregister_framebuffer'
ld: drivers/net/ethernet/intel/igc/igc_main.o: in function `igc_tsync_interrupt':
>> drivers/net/ethernet/intel/igc/igc_main.c:4994: undefined reference to `ptp_clock_event'
>> ld: drivers/net/ethernet/intel/igc/igc_main.c:5048: undefined reference to `ptp_clock_event'
ld: drivers/net/ethernet/intel/igc/igc_main.c:5038: undefined reference to `ptp_clock_event'
ld: drivers/net/ethernet/intel/igc/igc_ethtool.o: in function `igc_ethtool_get_ts_info':
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1513: undefined reference to `ptp_clock_index'
ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_feature_enable_i225':
>> drivers/net/ethernet/intel/igc/igc_ptp.c:303: undefined reference to `ptp_find_pin'
>> ld: drivers/net/ethernet/intel/igc/igc_ptp.c:269: undefined reference to `ptp_find_pin'
ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_init':
>> drivers/net/ethernet/intel/igc/igc_ptp.c:806: undefined reference to `ptp_clock_register'
ld: drivers/net/ethernet/intel/igc/igc_ptp.o: in function `igc_ptp_stop':
>> drivers/net/ethernet/intel/igc/igc_ptp.c:866: undefined reference to `ptp_clock_unregister'
vim +4994 drivers/net/ethernet/intel/igc/igc_main.c
3df25e4c1e66a6 Sasha Neftin 2018-10-11 4980
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 4981 static void igc_tsync_interrupt(struct igc_adapter *adapter)
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 4982 {
87938851b6efb6 Ederson de Souza 2021-02-18 4983 u32 ack, tsauxc, sec, nsec, tsicr;
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 4984 struct igc_hw *hw = &adapter->hw;
64433e5bf40abf Ederson de Souza 2021-02-18 4985 struct ptp_clock_event event;
87938851b6efb6 Ederson de Souza 2021-02-18 4986 struct timespec64 ts;
87938851b6efb6 Ederson de Souza 2021-02-18 4987
87938851b6efb6 Ederson de Souza 2021-02-18 4988 tsicr = rd32(IGC_TSICR);
87938851b6efb6 Ederson de Souza 2021-02-18 4989 ack = 0;
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 4990
64433e5bf40abf Ederson de Souza 2021-02-18 4991 if (tsicr & IGC_TSICR_SYS_WRAP) {
64433e5bf40abf Ederson de Souza 2021-02-18 4992 event.type = PTP_CLOCK_PPS;
64433e5bf40abf Ederson de Souza 2021-02-18 4993 if (adapter->ptp_caps.pps)
64433e5bf40abf Ederson de Souza 2021-02-18 @4994 ptp_clock_event(adapter->ptp_clock, &event);
64433e5bf40abf Ederson de Souza 2021-02-18 4995 ack |= IGC_TSICR_SYS_WRAP;
64433e5bf40abf Ederson de Souza 2021-02-18 4996 }
64433e5bf40abf Ederson de Souza 2021-02-18 4997
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 4998 if (tsicr & IGC_TSICR_TXTS) {
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 4999 /* retrieve hardware timestamp */
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5000 schedule_work(&adapter->ptp_tx_work);
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5001 ack |= IGC_TSICR_TXTS;
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5002 }
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5003
87938851b6efb6 Ederson de Souza 2021-02-18 5004 if (tsicr & IGC_TSICR_TT0) {
87938851b6efb6 Ederson de Souza 2021-02-18 5005 spin_lock(&adapter->tmreg_lock);
87938851b6efb6 Ederson de Souza 2021-02-18 5006 ts = timespec64_add(adapter->perout[0].start,
87938851b6efb6 Ederson de Souza 2021-02-18 5007 adapter->perout[0].period);
87938851b6efb6 Ederson de Souza 2021-02-18 5008 wr32(IGC_TRGTTIML0, ts.tv_nsec | IGC_TT_IO_TIMER_SEL_SYSTIM0);
87938851b6efb6 Ederson de Souza 2021-02-18 5009 wr32(IGC_TRGTTIMH0, (u32)ts.tv_sec);
87938851b6efb6 Ederson de Souza 2021-02-18 5010 tsauxc = rd32(IGC_TSAUXC);
87938851b6efb6 Ederson de Souza 2021-02-18 5011 tsauxc |= IGC_TSAUXC_EN_TT0;
87938851b6efb6 Ederson de Souza 2021-02-18 5012 wr32(IGC_TSAUXC, tsauxc);
87938851b6efb6 Ederson de Souza 2021-02-18 5013 adapter->perout[0].start = ts;
87938851b6efb6 Ederson de Souza 2021-02-18 5014 spin_unlock(&adapter->tmreg_lock);
87938851b6efb6 Ederson de Souza 2021-02-18 5015 ack |= IGC_TSICR_TT0;
87938851b6efb6 Ederson de Souza 2021-02-18 5016 }
87938851b6efb6 Ederson de Souza 2021-02-18 5017
87938851b6efb6 Ederson de Souza 2021-02-18 5018 if (tsicr & IGC_TSICR_TT1) {
87938851b6efb6 Ederson de Souza 2021-02-18 5019 spin_lock(&adapter->tmreg_lock);
87938851b6efb6 Ederson de Souza 2021-02-18 5020 ts = timespec64_add(adapter->perout[1].start,
87938851b6efb6 Ederson de Souza 2021-02-18 5021 adapter->perout[1].period);
87938851b6efb6 Ederson de Souza 2021-02-18 5022 wr32(IGC_TRGTTIML1, ts.tv_nsec | IGC_TT_IO_TIMER_SEL_SYSTIM0);
87938851b6efb6 Ederson de Souza 2021-02-18 5023 wr32(IGC_TRGTTIMH1, (u32)ts.tv_sec);
87938851b6efb6 Ederson de Souza 2021-02-18 5024 tsauxc = rd32(IGC_TSAUXC);
87938851b6efb6 Ederson de Souza 2021-02-18 5025 tsauxc |= IGC_TSAUXC_EN_TT1;
87938851b6efb6 Ederson de Souza 2021-02-18 5026 wr32(IGC_TSAUXC, tsauxc);
87938851b6efb6 Ederson de Souza 2021-02-18 5027 adapter->perout[1].start = ts;
87938851b6efb6 Ederson de Souza 2021-02-18 5028 spin_unlock(&adapter->tmreg_lock);
87938851b6efb6 Ederson de Souza 2021-02-18 5029 ack |= IGC_TSICR_TT1;
87938851b6efb6 Ederson de Souza 2021-02-18 5030 }
87938851b6efb6 Ederson de Souza 2021-02-18 5031
87938851b6efb6 Ederson de Souza 2021-02-18 5032 if (tsicr & IGC_TSICR_AUTT0) {
87938851b6efb6 Ederson de Souza 2021-02-18 5033 nsec = rd32(IGC_AUXSTMPL0);
87938851b6efb6 Ederson de Souza 2021-02-18 5034 sec = rd32(IGC_AUXSTMPH0);
87938851b6efb6 Ederson de Souza 2021-02-18 5035 event.type = PTP_CLOCK_EXTTS;
87938851b6efb6 Ederson de Souza 2021-02-18 5036 event.index = 0;
87938851b6efb6 Ederson de Souza 2021-02-18 5037 event.timestamp = sec * NSEC_PER_SEC + nsec;
87938851b6efb6 Ederson de Souza 2021-02-18 5038 ptp_clock_event(adapter->ptp_clock, &event);
87938851b6efb6 Ederson de Souza 2021-02-18 5039 ack |= IGC_TSICR_AUTT0;
87938851b6efb6 Ederson de Souza 2021-02-18 5040 }
87938851b6efb6 Ederson de Souza 2021-02-18 5041
87938851b6efb6 Ederson de Souza 2021-02-18 5042 if (tsicr & IGC_TSICR_AUTT1) {
87938851b6efb6 Ederson de Souza 2021-02-18 5043 nsec = rd32(IGC_AUXSTMPL1);
87938851b6efb6 Ederson de Souza 2021-02-18 5044 sec = rd32(IGC_AUXSTMPH1);
87938851b6efb6 Ederson de Souza 2021-02-18 5045 event.type = PTP_CLOCK_EXTTS;
87938851b6efb6 Ederson de Souza 2021-02-18 5046 event.index = 1;
87938851b6efb6 Ederson de Souza 2021-02-18 5047 event.timestamp = sec * NSEC_PER_SEC + nsec;
87938851b6efb6 Ederson de Souza 2021-02-18 @5048 ptp_clock_event(adapter->ptp_clock, &event);
87938851b6efb6 Ederson de Souza 2021-02-18 5049 ack |= IGC_TSICR_AUTT1;
87938851b6efb6 Ederson de Souza 2021-02-18 5050 }
87938851b6efb6 Ederson de Souza 2021-02-18 5051
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5052 /* acknowledge the interrupts */
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5053 wr32(IGC_TSICR, ack);
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5054 }
2c344ae2450155 Vinicius Costa Gomes 2019-12-02 5055
:::::: The code at line 4994 was first introduced by commit
:::::: 64433e5bf40abf893c7edbc60899bdcdd7c70b76 igc: Enable internal i225 PPS
:::::: TO: Ederson de Souza <ederson.desouza(a)intel.com>
:::::: CC: Tony Nguyen <anthony.l.nguyen(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH 2/5] interconnect: sdm660: merge common code into icc-rpm
by kernel test robot
Hi Dmitry,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.14-rc6 next-20210817]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dmitry-Baryshkov/interconnect-me...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 614cb2751d3150850d459bee596c397f344a7936
config: arm64-randconfig-r016-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project af7818093677dcb4c0840aef96bc029deb219e57)
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
# https://github.com/0day-ci/linux/commit/d00e2bca640c9ad7926d58651be95a7b9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Baryshkov/interconnect-merge-AP-owned-support-into-icc-rpm/20210818-095820
git checkout d00e2bca640c9ad7926d58651be95a7b9cf7dec9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/interconnect/qcom/sdm660.c:130:35: warning: unused variable 'bus_clocks' [-Wunused-const-variable]
static const struct clk_bulk_data bus_clocks[] = {
^
>> drivers/interconnect/qcom/sdm660.c:135:35: warning: unused variable 'bus_mm_clocks' [-Wunused-const-variable]
static const struct clk_bulk_data bus_mm_clocks[] = {
^
2 warnings generated.
vim +/bus_clocks +130 drivers/interconnect/qcom/sdm660.c
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 129
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 @130 static const struct clk_bulk_data bus_clocks[] = {
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 131 { .id = "bus" },
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 132 { .id = "bus_a" },
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 133 };
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 134
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 @135 static const struct clk_bulk_data bus_mm_clocks[] = {
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 136 { .id = "bus" },
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 137 { .id = "bus_a" },
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 138 { .id = "iface" },
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 139 };
f80a1d41432869 AngeloGioacchino Del Regno 2021-03-08 140
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-rt-devel:linux-5.14.y-rt-rebase 13/245] include/linux/printk.h:300:52: warning: unused parameter 'cpu'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.14.y-rt-rebase
head: 0eead4e5a60cb716ec911a552787a69332cf6943
commit: 5a78a76f0b525fc1a5c07b86810bd8842357e1d3 [13/245] console: add write_atomic interface
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.14.y-rt-rebase
git checkout 5a78a76f0b525fc1a5c07b86810bd8842357e1d3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
static inline void __kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:149:10: warning: unused parameter 'type' [-Wunused-parameter]
int type) { }
^
include/linux/kcsan-checks.h:158:42: warning: unused parameter 'n' [-Wunused-parameter]
static inline void kcsan_atomic_next(int n) { }
^
include/linux/kcsan-checks.h:159:56: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void kcsan_set_access_mask(unsigned long mask) { }
^
include/linux/kcsan-checks.h:164:48: warning: unused parameter 'ptr' [-Wunused-parameter]
kcsan_begin_scoped_access(const volatile void *ptr, size_t size, int type,
^
include/linux/kcsan-checks.h:164:60: warning: unused parameter 'size' [-Wunused-parameter]
kcsan_begin_scoped_access(const volatile void *ptr, size_t size, int type,
^
include/linux/kcsan-checks.h:164:70: warning: unused parameter 'type' [-Wunused-parameter]
kcsan_begin_scoped_access(const volatile void *ptr, size_t size, int type,
^
include/linux/kcsan-checks.h:166:72: warning: unused parameter 'sa' [-Wunused-parameter]
static inline void kcsan_end_scoped_access(struct kcsan_scoped_access *sa) { }
^
include/linux/kcsan-checks.h:184:60: warning: unused parameter 'ptr' [-Wunused-parameter]
static inline void kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:184:72: warning: unused parameter 'size' [-Wunused-parameter]
static inline void kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:185:15: warning: unused parameter 'type' [-Wunused-parameter]
int type) { }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:17:
arch/x86/include/asm/alternative.h:90:63: warning: unused parameter 'mod' [-Wunused-parameter]
static inline void alternatives_smp_module_add(struct module *mod, char *name,
^
arch/x86/include/asm/alternative.h:90:74: warning: unused parameter 'name' [-Wunused-parameter]
static inline void alternatives_smp_module_add(struct module *mod, char *name,
^
arch/x86/include/asm/alternative.h:91:19: warning: unused parameter 'locks' [-Wunused-parameter]
void *locks, void *locks_end,
^
arch/x86/include/asm/alternative.h:91:32: warning: unused parameter 'locks_end' [-Wunused-parameter]
void *locks, void *locks_end,
^
arch/x86/include/asm/alternative.h:92:19: warning: unused parameter 'text' [-Wunused-parameter]
void *text, void *text_end) {}
^
arch/x86/include/asm/alternative.h:92:31: warning: unused parameter 'text_end' [-Wunused-parameter]
void *text, void *text_end) {}
^
arch/x86/include/asm/alternative.h:93:63: warning: unused parameter 'mod' [-Wunused-parameter]
static inline void alternatives_smp_module_del(struct module *mod) {}
^
arch/x86/include/asm/alternative.h:95:52: warning: unused parameter 'start' [-Wunused-parameter]
static inline int alternatives_text_reserved(void *start, void *end)
^
arch/x86/include/asm/alternative.h:95:65: warning: unused parameter 'end' [-Wunused-parameter]
static inline int alternatives_text_reserved(void *start, void *end)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:391:
In file included from include/asm-generic/bitops/instrumented-atomic.h:14:
include/linux/instrumented.h:116:38: warning: unused parameter 'to' [-Wunused-parameter]
instrument_copy_to_user(void __user *to, const void *from, unsigned long n)
^
include/linux/instrumented.h:133:62: warning: unused parameter 'from' [-Wunused-parameter]
instrument_copy_from_user(const void *to, const void __user *from, unsigned long n)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:395:
In file included from include/asm-generic/bitops/le.h:7:
In file included from arch/x86/include/uapi/asm/byteorder.h:5:
In file included from include/linux/byteorder/little_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:19:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:19:
>> include/linux/printk.h:300:52: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool kgdb_roundup_delay(unsigned int cpu)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:19:
In file included from include/linux/list.h:9:
include/linux/kernel.h:323:48: warning: unused parameter 'fmt' [-Wunused-parameter]
void ____trace_printk_check_format(const char *fmt, ...)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:12:
In file included from include/linux/mutex.h:14:
In file included from arch/x86/include/asm/current.h:6:
In file included from arch/x86/include/asm/percpu.h:390:
In file included from include/asm-generic/percpu.h:7:
include/linux/percpu-defs.h:313:57: warning: unused parameter 'op' [-Wunused-parameter]
static inline void __this_cpu_preempt_check(const char *op) { }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:12:
In file included from include/linux/mutex.h:17:
In file included from include/linux/lockdep.h:14:
In file included from include/linux/smp.h:13:
include/linux/cpumask.h:105:51: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
^
include/linux/cpumask.h:105:69: warning: unused parameter 'bits' [-Wunused-parameter]
static inline void cpu_max_bits_warn(unsigned int cpu, unsigned int bits)
^
include/linux/cpumask.h:121:64: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_first(const struct cpumask *srcp)
^
include/linux/cpumask.h:126:63: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_last(const struct cpumask *srcp)
^
include/linux/cpumask.h:132:70: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
^
include/linux/cpumask.h:137:75: warning: unused parameter 'srcp' [-Wunused-parameter]
static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp)
^
include/linux/cpumask.h:143:32: warning: unused parameter 'srcp' [-Wunused-parameter]
const struct cpumask *srcp,
^
include/linux/cpumask.h:144:32: warning: unused parameter 'andp' [-Wunused-parameter]
const struct cpumask *andp)
^
include/linux/cpumask.h:149:75: warning: unused parameter 'mask' [-Wunused-parameter]
static inline unsigned int cpumask_next_wrap(int n, const struct cpumask *mask,
^
include/linux/cpumask.h:150:15: warning: unused parameter 'start' [-Wunused-parameter]
int start, bool wrap)
^
include/linux/cpumask.h:157:66: warning: unused parameter 'mask' [-Wunused-parameter]
static inline unsigned int cpumask_any_but(const struct cpumask *mask,
^
include/linux/cpumask.h:158:22: warning: unused parameter 'cpu' [-Wunused-parameter]
unsigned int cpu)
^
include/linux/cpumask.h:163:62: warning: unused parameter 'i' [-Wunused-parameter]
static inline unsigned int cpumask_local_spread(unsigned int i, int node)
^
include/linux/cpumask.h:163:69: warning: unused parameter 'node' [-Wunused-parameter]
static inline unsigned int cpumask_local_spread(unsigned int i, int node)
^
include/linux/cpumask.h:738:53: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:738:65: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:743:58: warning: unused parameter 'mask' [-Wunused-parameter]
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:743:70: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:744:12: warning: unused parameter 'node' [-Wunused-parameter]
int node)
^
include/linux/cpumask.h:749:66: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
^
include/linux/cpumask.h:755:71: warning: unused parameter 'flags' [-Wunused-parameter]
static inline bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
^
include/linux/cpumask.h:756:12: warning: unused parameter 'node' [-Wunused-parameter]
int node)
--
^~~~~~~~~~~~
include/linux/ftrace.h:831:38: note: expanded from macro 'CALLER_ADDR2'
#define CALLER_ADDR2 ((unsigned long)ftrace_return_address(2))
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h:823:36: note: expanded from macro 'ftrace_return_address'
# define ftrace_return_address(n) __builtin_return_address(n)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:5:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:32:
arch/x86/include/asm/kprobes.h:125:56: warning: unused parameter 'regs' [-Wunused-parameter]
static inline int kprobe_debug_handler(struct pt_regs *regs) { return 0; }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:5:
In file included from include/linux/kgdb.h:19:
include/linux/kprobes.h:417:56: warning: unused parameter 'regs' [-Wunused-parameter]
static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr)
^
include/linux/kprobes.h:417:66: warning: unused parameter 'trapnr' [-Wunused-parameter]
static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr)
^
include/linux/kprobes.h:421:47: warning: unused parameter 'addr' [-Wunused-parameter]
static inline struct kprobe *get_kprobe(void *addr)
^
include/linux/kprobes.h:429:50: warning: unused parameter 'p' [-Wunused-parameter]
static inline int register_kprobe(struct kprobe *p)
^
include/linux/kprobes.h:433:52: warning: unused parameter 'kps' [-Wunused-parameter]
static inline int register_kprobes(struct kprobe **kps, int num)
^
include/linux/kprobes.h:433:61: warning: unused parameter 'num' [-Wunused-parameter]
static inline int register_kprobes(struct kprobe **kps, int num)
^
include/linux/kprobes.h:437:53: warning: unused parameter 'p' [-Wunused-parameter]
static inline void unregister_kprobe(struct kprobe *p)
^
include/linux/kprobes.h:440:55: warning: unused parameter 'kps' [-Wunused-parameter]
static inline void unregister_kprobes(struct kprobe **kps, int num)
^
include/linux/kprobes.h:440:64: warning: unused parameter 'num' [-Wunused-parameter]
static inline void unregister_kprobes(struct kprobe **kps, int num)
^
include/linux/kprobes.h:443:56: warning: unused parameter 'rp' [-Wunused-parameter]
static inline int register_kretprobe(struct kretprobe *rp)
^
include/linux/kprobes.h:447:58: warning: unused parameter 'rps' [-Wunused-parameter]
static inline int register_kretprobes(struct kretprobe **rps, int num)
^
include/linux/kprobes.h:447:67: warning: unused parameter 'num' [-Wunused-parameter]
static inline int register_kretprobes(struct kretprobe **rps, int num)
^
include/linux/kprobes.h:451:59: warning: unused parameter 'rp' [-Wunused-parameter]
static inline void unregister_kretprobe(struct kretprobe *rp)
^
include/linux/kprobes.h:454:61: warning: unused parameter 'rps' [-Wunused-parameter]
static inline void unregister_kretprobes(struct kretprobe **rps, int num)
^
include/linux/kprobes.h:454:70: warning: unused parameter 'num' [-Wunused-parameter]
static inline void unregister_kretprobes(struct kretprobe **rps, int num)
^
include/linux/kprobes.h:457:58: warning: unused parameter 'tk' [-Wunused-parameter]
static inline void kprobe_flush_task(struct task_struct *tk)
^
include/linux/kprobes.h:463:49: warning: unused parameter 'kp' [-Wunused-parameter]
static inline int disable_kprobe(struct kprobe *kp)
^
include/linux/kprobes.h:467:48: warning: unused parameter 'kp' [-Wunused-parameter]
static inline int enable_kprobe(struct kprobe *kp)
^
include/linux/kprobes.h:472:58: warning: unused parameter 'addr' [-Wunused-parameter]
static inline bool within_kprobe_blacklist(unsigned long addr)
^
include/linux/kprobes.h:476:51: warning: unused parameter 'symnum' [-Wunused-parameter]
static inline int kprobe_get_kallsym(unsigned int symnum, unsigned long *value,
^
include/linux/kprobes.h:476:74: warning: unused parameter 'value' [-Wunused-parameter]
static inline int kprobe_get_kallsym(unsigned int symnum, unsigned long *value,
^
include/linux/kprobes.h:477:16: warning: unused parameter 'type' [-Wunused-parameter]
char *type, char *sym)
^
include/linux/kprobes.h:477:28: warning: unused parameter 'sym' [-Wunused-parameter]
char *type, char *sym)
^
include/linux/kprobes.h:492:54: warning: unused parameter 'addr' [-Wunused-parameter]
static inline bool is_kprobe_insn_slot(unsigned long addr)
^
include/linux/kprobes.h:498:57: warning: unused parameter 'addr' [-Wunused-parameter]
static inline bool is_kprobe_optinsn_slot(unsigned long addr)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:5:
include/linux/kgdb.h:368:43: warning: unused parameter 'msg' [-Wunused-parameter]
static inline void kgdb_panic(const char *msg) {}
^
>> include/linux/kgdb.h:370:50: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void kgdb_roundup_cpu(unsigned int cpu) {}
^
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:18:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
include/linux/kernel_stat.h:86:37: warning: unused parameter 'cpu' [-Wunused-parameter]
enum cpu_usage_stat usage, int cpu)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:18:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:28:
In file included from include/linux/cgroup-defs.h:20:
include/linux/u64_stats_sync.h:121:58: warning: unused parameter 'syncp' [-Wunused-parameter]
static inline void u64_stats_init(struct u64_stats_sync *syncp)
^
include/linux/u64_stats_sync.h:126:66: warning: unused parameter 'syncp' [-Wunused-parameter]
static inline void u64_stats_update_begin(struct u64_stats_sync *syncp)
^
include/linux/u64_stats_sync.h:133:64: warning: unused parameter 'syncp' [-Wunused-parameter]
static inline void u64_stats_update_end(struct u64_stats_sync *syncp)
^
include/linux/u64_stats_sync.h:141:55: warning: unused parameter 'syncp' [-Wunused-parameter]
u64_stats_update_begin_irqsave(struct u64_stats_sync *syncp)
^
include/linux/u64_stats_sync.h:153:56: warning: unused parameter 'syncp' [-Wunused-parameter]
u64_stats_update_end_irqrestore(struct u64_stats_sync *syncp,
^
include/linux/u64_stats_sync.h:154:19: warning: unused parameter 'flags' [-Wunused-parameter]
unsigned long flags)
^
include/linux/u64_stats_sync.h:162:81: warning: unused parameter 'syncp' [-Wunused-parameter]
static inline unsigned int __u64_stats_fetch_begin(const struct u64_stats_sync *syncp)
^
include/linux/u64_stats_sync.h:179:73: warning: unused parameter 'syncp' [-Wunused-parameter]
static inline bool __u64_stats_fetch_retry(const struct u64_stats_sync *syncp,
^
include/linux/u64_stats_sync.h:180:20: warning: unused parameter 'start' [-Wunused-parameter]
unsigned int start)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:18:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:28:
In file included from include/linux/cgroup-defs.h:22:
In file included from include/linux/bpf-cgroup.h:5:
In file included from include/linux/bpf.h:22:
include/linux/sched/mm.h:103:59: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void mm_update_next_owner(struct mm_struct *mm)
^
include/linux/sched/mm.h:321:37: warning: unused parameter 'memcg' [-Wunused-parameter]
set_active_memcg(struct mem_cgroup *memcg)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:39:
In file included from include/linux/vga_switcheroo.h:34:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:18:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:28:
In file included from include/linux/cgroup-defs.h:22:
In file included from include/linux/bpf-cgroup.h:5:
include/linux/bpf.h:740:61: warning: unused parameter 'prog' [-Wunused-parameter]
static inline int bpf_trampoline_link_prog(struct bpf_prog *prog,
^
include/linux/bpf.h:741:32: warning: unused parameter 'tr' [-Wunused-parameter]
struct bpf_trampoline *tr)
^
include/linux/bpf.h:745:63: warning: unused parameter 'prog' [-Wunused-parameter]
static inline int bpf_trampoline_unlink_prog(struct bpf_prog *prog,
^
include/linux/bpf.h:746:34: warning: unused parameter 'tr' [-Wunused-parameter]
struct bpf_trampoline *tr)
^
include/linux/bpf.h:750:61: warning: unused parameter 'key' [-Wunused-parameter]
static inline struct bpf_trampoline *bpf_trampoline_get(u64 key,
^
include/linux/bpf.h:751:39: warning: unused parameter 'tgt_info' [-Wunused-parameter]
..
vim +/cpu +300 include/linux/printk.h
299
> 300 static inline bool kgdb_roundup_delay(unsigned int cpu)
301 {
302 return false;
303 }
304 #endif /* CONFIG_SMP */
305
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v3] soc: rockchip: io-domain: set 3.3V before regulator disable
by kernel test robot
Hi Jianqun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on rockchip/for-next]
[also build test ERROR on asoc/for-next v5.14-rc6 next-20210817]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jianqun-Xu/soc-rockchip-io-domai...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/883d33a4052a54385679fe84a17345d70...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jianqun-Xu/soc-rockchip-io-domain-set-3-3V-before-regulator-disable/20210818-091213
git checkout 883d33a4052a54385679fe84a17345d7083f3a76
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/soc/rockchip/io-domain.c: In function 'rockchip_iodomain_notify':
>> drivers/soc/rockchip/io-domain.c:173:28: error: 'REGULATOR_EVENT_PRE_ENABLE' undeclared (first use in this function); did you mean 'REGULATOR_EVENT_PRE_DISABLE'?
173 | } else if (event & REGULATOR_EVENT_PRE_ENABLE) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| REGULATOR_EVENT_PRE_DISABLE
drivers/soc/rockchip/io-domain.c:173:28: note: each undeclared identifier is reported only once for each function it appears in
vim +173 drivers/soc/rockchip/io-domain.c
143
144 static int rockchip_iodomain_notify(struct notifier_block *nb,
145 unsigned long event,
146 void *data)
147 {
148 struct rockchip_iodomain_supply *supply =
149 container_of(nb, struct rockchip_iodomain_supply, nb);
150 int uV;
151 int ret;
152
153 /*
154 * According to Rockchip it's important to keep the SoC IO domain
155 * higher than (or equal to) the external voltage. That means we need
156 * to change it before external voltage changes happen in the case
157 * of an increase.
158 *
159 * Note that in the "pre" change we pick the max possible voltage that
160 * the regulator might end up at (the client requests a range and we
161 * don't know for certain the exact voltage). Right now we rely on the
162 * slop in MAX_VOLTAGE_1_8 and MAX_VOLTAGE_3_3 to save us if clients
163 * request something like a max of 3.6V when they really want 3.3V.
164 * We could attempt to come up with better rules if this fails.
165 */
166 if (event & REGULATOR_EVENT_PRE_VOLTAGE_CHANGE) {
167 struct pre_voltage_change_data *pvc_data = data;
168
169 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV);
170 } else if (event & (REGULATOR_EVENT_VOLTAGE_CHANGE |
171 REGULATOR_EVENT_ABORT_VOLTAGE_CHANGE)) {
172 uV = (unsigned long)data;
> 173 } else if (event & REGULATOR_EVENT_PRE_ENABLE) {
174 uV = MAX_VOLTAGE_3_3;
175 } else if (event & REGULATOR_EVENT_PRE_DISABLE) {
176 uV = MAX_VOLTAGE_3_3;
177 } else if (event & REGULATOR_EVENT_ENABLE) {
178 uV = regulator_get_voltage(supply->reg);
179 } else {
180 return NOTIFY_OK;
181 }
182
183 dev_dbg(supply->iod->dev, "Setting to %d\n", uV);
184
185 if (uV > MAX_VOLTAGE_3_3) {
186 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV);
187
188 if (event == REGULATOR_EVENT_PRE_VOLTAGE_CHANGE)
189 return NOTIFY_BAD;
190 }
191
192 ret = supply->iod->write(supply, uV);
193 if (ret && event == REGULATOR_EVENT_PRE_VOLTAGE_CHANGE)
194 return NOTIFY_BAD;
195
196 dev_dbg(supply->iod->dev, "Setting to %d done\n", uV);
197 return NOTIFY_OK;
198 }
199
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v7 1/5] platform/x86/intel: intel_pmc_core: Move intel_pmc_core* files to pmc subfolder
by kernel test robot
Hi Gayatri,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on 7c60610d476766e128cc4284bb6349732cbd6606]
url: https://github.com/0day-ci/linux/commits/Gayatri-Kammela/Add-Alder-Lake-P...
base: 7c60610d476766e128cc4284bb6349732cbd6606
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/2c7fa756944b862813729397f1fd1b383...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gayatri-Kammela/Add-Alder-Lake-PCH-S-support-to-PMC-core-driver/20210817-010347
git checkout 2c7fa756944b862813729397f1fd1b383743b56b
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/platform/x86/intel/pmc/core_platform.o: in function `pmc_core_platform_init':
>> drivers/platform/x86/intel/pmc/core_platform.c:49: multiple definition of `init_module'; drivers/platform/x86/intel/pmc/core.o:drivers/platform/x86/intel/pmc/core.c:1819: first defined here
ld: drivers/platform/x86/intel/pmc/core_platform.o: in function `pmc_core_platform_exit':
>> drivers/platform/x86/intel/pmc/core_platform.c:75: multiple definition of `cleanup_module'; drivers/platform/x86/intel/pmc/core.o:drivers/platform/x86/intel/pmc/core.c:1819: first defined here
vim +49 drivers/platform/x86/intel/pmc/core_platform.c
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 47
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 48 static int __init pmc_core_platform_init(void)
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 @49 {
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 50 int retval;
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 51
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 52 /* Skip creating the platform device if ACPI already has a device */
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 53 if (acpi_dev_present("INT33A1", NULL, -1))
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 54 return -ENODEV;
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 55
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 56 if (!x86_match_cpu(intel_pmc_core_platform_ids))
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 57 return -ENODEV;
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 58
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 59 pmc_core_device = kzalloc(sizeof(*pmc_core_device), GFP_KERNEL);
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 60 if (!pmc_core_device)
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 61 return -ENOMEM;
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 62
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 63 pmc_core_device->name = "intel_pmc_core";
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 64 pmc_core_device->dev.release = intel_pmc_core_release;
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 65
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 66 retval = platform_device_register(pmc_core_device);
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 67 if (retval)
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 68 kfree(pmc_core_device);
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 69
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 70 return retval;
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 71 }
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 72
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 73 static void __exit pmc_core_platform_exit(void)
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 74 {
938835aa903ae1 drivers/platform/x86/intel_pmc_core_pltdrv.c Greg Kroah-Hartman 2020-09-23 @75 platform_device_unregister(pmc_core_device);
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 76 }
b02f6a2ef0a14a drivers/platform/x86/intel_pmc_core_pltdrv.c Rajat Jain 2019-06-27 77
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month