tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 86ed57fd8c93fdfaabb4f58e78455180fa7d8a84 commit: f4111e39a52aa5d5136d890bbd1aa87c1c8fe3bc [1105/9522] swiotlb: Add restricted DMA alloc/free support config: i386-randconfig-a016-20210820 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa) 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/commit/?id=f4111e39a52aa5d5136d890bbd1aa87c1c8fe3bc 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 f4111e39a52aa5d5136d890bbd1aa87c1c8fe3bc # 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@xxxxxxxxx> All warnings (new ones prefixed by >>): static inline int mpol_misplaced(struct page *page, struct vm_area_struct *vma, ^ include/linux/mempolicy.h:282:20: warning: unused parameter 'address' [-Wunused-parameter] unsigned long address) ^ include/linux/mempolicy.h:287:61: warning: unused parameter 'task' [-Wunused-parameter] static inline void mpol_put_task_policy(struct task_struct *task) ^ include/linux/mempolicy.h:291:57: warning: unused parameter 'gfp' [-Wunused-parameter] static inline nodemask_t *policy_nodemask_current(gfp_t gfp) ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:59: In file included from include/drm/drm_atomic.h:31: In file included from include/drm/drm_crtc.h:40: include/drm/drm_modes.h:470:63: warning: unused parameter 'np' [-Wunused-parameter] static inline int of_get_drm_display_mode(struct device_node *np, ^ include/drm/drm_modes.h:471:33: warning: unused parameter 'dmode' [-Wunused-parameter] struct drm_display_mode *dmode, ^ include/drm/drm_modes.h:472:13: warning: unused parameter 'bus_flags' [-Wunused-parameter] u32 *bus_flags, int index) ^ include/drm/drm_modes.h:472:28: warning: unused parameter 'index' [-Wunused-parameter] u32 *bus_flags, int index) ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:62: In file included from include/drm/ttm/ttm_device.h:30: include/drm/ttm/ttm_resource.h:229:16: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] for (i = 0; i < TTM_MAX_BO_PRIORITY; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:74: In file included from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30: In file included from drivers/gpu/drm/i915/gem/i915_gem_object_types.h:16: In file included from drivers/gpu/drm/i915/i915_active.h:13: In file included from drivers/gpu/drm/i915/i915_request.h:34: In file included from drivers/gpu/drm/i915/gem/i915_gem_context_types.h:20: In file included from drivers/gpu/drm/i915/gt/intel_context_types.h:17: In file included from drivers/gpu/drm/i915/gt/intel_engine_types.h:23: drivers/gpu/drm/i915/i915_selftest.h:115:55: warning: unused parameter 'pdev' [-Wunused-parameter] static inline int i915_live_selftests(struct pci_dev *pdev) { return 0; } ^ drivers/gpu/drm/i915/i915_selftest.h:116:55: warning: unused parameter 'pdev' [-Wunused-parameter] static inline int i915_perf_selftests(struct pci_dev *pdev) { return 0; } ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:74: In file included from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30: In file included from drivers/gpu/drm/i915/gem/i915_gem_object_types.h:16: In file included from drivers/gpu/drm/i915/i915_active.h:13: In file included from drivers/gpu/drm/i915/i915_request.h:34: In file included from drivers/gpu/drm/i915/gem/i915_gem_context_types.h:23: drivers/gpu/drm/i915/i915_sw_fence.h:62:61: warning: unused parameter 'fence' [-Wunused-parameter] static inline void i915_sw_fence_fini(struct i915_sw_fence *fence) {} ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:77: In file included from drivers/gpu/drm/i915/display/intel_opregion.h:29: include/linux/pci.h:1567:58: warning: unused parameter 'd' [-Wunused-parameter] static inline int pci_irqd_intx_xlate(struct irq_domain *d, ^ include/linux/pci.h:1568:31: warning: unused parameter 'node' [-Wunused-parameter] struct device_node *node, ^ include/linux/pci.h:1570:24: warning: unused parameter 'intsize' [-Wunused-parameter] unsigned int intsize, ^ include/linux/pci.h:1572:25: warning: unused parameter 'out_type' [-Wunused-parameter] unsigned int *out_type) ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:77: In file included from drivers/gpu/drm/i915/display/intel_opregion.h:29: In file included from include/linux/pci.h:1840: In file included from arch/x86/include/asm/pci.h:109: include/asm-generic/pci.h:11:58: warning: unused parameter 'dev' [-Wunused-parameter] static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: In file included from drivers/gpu/drm/i915/i915_drv.h:77: In file included from drivers/gpu/drm/i915/display/intel_opregion.h:29: include/linux/pci.h:2364:47: warning: unused parameter 'bus' [-Wunused-parameter] pci_host_bridge_of_msi_domain(struct pci_bus *bus) { return NULL; } ^ include/linux/pci.h:2365:59: warning: unused parameter 'dev' [-Wunused-parameter] static inline bool pci_host_of_has_msi_map(struct device *dev) { return false; } ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: 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: In file included from drivers/gpu/drm/i915/gt/uc/intel_guc.h:17: In file included from drivers/gpu/drm/i915/i915_vma.h:34: In file included from drivers/gpu/drm/i915/gem/i915_gem_object.h:16: In file included from drivers/gpu/drm/i915/i915_gem_gtt.h:15: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12: >> include/linux/swiotlb.h:172:57: warning: unused parameter 'dev' [-Wunused-parameter] static inline struct page *swiotlb_alloc(struct device *dev, size_t size) ^ >> include/linux/swiotlb.h:172:69: warning: unused parameter 'size' [-Wunused-parameter] static inline struct page *swiotlb_alloc(struct device *dev, size_t size) ^ include/linux/swiotlb.h:176:48: warning: unused parameter 'dev' [-Wunused-parameter] static inline bool swiotlb_free(struct device *dev, struct page *page, ^ >> include/linux/swiotlb.h:176:66: warning: unused parameter 'page' [-Wunused-parameter] static inline bool swiotlb_free(struct device *dev, struct page *page, ^ include/linux/swiotlb.h:177:12: warning: unused parameter 'size' [-Wunused-parameter] size_t size) ^ include/linux/swiotlb.h:181:56: warning: unused parameter 'dev' [-Wunused-parameter] static inline bool is_swiotlb_for_alloc(struct device *dev) ^ In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7: 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/gt/gen8_engine_cs.c:7: 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) ^ drivers/gpu/drm/i915/gt/gen8_engine_cs.c:399:25: warning: unused parameter 'len' [-Wunused-parameter] u64 offset, u32 len, ^ 1645 warnings generated. -- include/linux/sched/topology.h:211:37: warning: unused parameter 'dattr_new' [-Wunused-parameter] struct sched_domain_attr *dattr_new) ^ include/linux/sched/topology.h:216:29: warning: unused parameter 'ndoms_new' [-Wunused-parameter] partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], ^ include/linux/sched/topology.h:216:54: warning: unused parameter 'doms_new' [-Wunused-parameter] partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[], ^ include/linux/sched/topology.h:217:30: warning: unused parameter 'dattr_new' [-Wunused-parameter] struct sched_domain_attr *dattr_new) ^ include/linux/sched/topology.h:221:41: warning: unused parameter 'this_cpu' [-Wunused-parameter] static inline bool cpus_share_cache(int this_cpu, int that_cpu) ^ include/linux/sched/topology.h:221:55: warning: unused parameter 'that_cpu' [-Wunused-parameter] static inline bool cpus_share_cache(int this_cpu, int that_cpu) ^ include/linux/sched/topology.h:248:43: warning: unused parameter 'cpu' [-Wunused-parameter] unsigned long arch_scale_cpu_capacity(int cpu) ^ include/linux/sched/topology.h:256:47: warning: unused parameter 'cpu' [-Wunused-parameter] unsigned long arch_scale_thermal_pressure(int cpu) ^ include/linux/sched/topology.h:264:54: warning: unused parameter 'cpus' [-Wunused-parameter] void arch_set_thermal_pressure(const struct cpumask *cpus, ^ include/linux/sched/topology.h:265:25: warning: unused parameter 'th_pressure' [-Wunused-parameter] unsigned long th_pressure) ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12: In file included from include/linux/swiotlb.h:5: In file included from include/linux/device.h:16: include/linux/energy_model.h:203:48: warning: unused parameter 'dev' [-Wunused-parameter] int em_dev_register_perf_domain(struct device *dev, unsigned int nr_states, ^ include/linux/energy_model.h:203:66: warning: unused parameter 'nr_states' [-Wunused-parameter] int em_dev_register_perf_domain(struct device *dev, unsigned int nr_states, ^ include/linux/energy_model.h:204:30: warning: unused parameter 'cb' [-Wunused-parameter] struct em_data_callback *cb, cpumask_t *span, ^ include/linux/energy_model.h:204:45: warning: unused parameter 'span' [-Wunused-parameter] struct em_data_callback *cb, cpumask_t *span, ^ include/linux/energy_model.h:205:10: warning: unused parameter 'milliwatts' [-Wunused-parameter] bool milliwatts) ^ include/linux/energy_model.h:209:65: warning: unused parameter 'dev' [-Wunused-parameter] static inline void em_dev_unregister_perf_domain(struct device *dev) ^ include/linux/energy_model.h:212:53: warning: unused parameter 'cpu' [-Wunused-parameter] static inline struct em_perf_domain *em_cpu_get(int cpu) ^ include/linux/energy_model.h:216:63: warning: unused parameter 'dev' [-Wunused-parameter] static inline struct em_perf_domain *em_pd_get(struct device *dev) ^ include/linux/energy_model.h:220:66: warning: unused parameter 'pd' [-Wunused-parameter] static inline unsigned long em_cpu_energy(struct em_perf_domain *pd, ^ include/linux/energy_model.h:221:18: warning: unused parameter 'max_util' [-Wunused-parameter] unsigned long max_util, unsigned long sum_util, ^ include/linux/energy_model.h:221:42: warning: unused parameter 'sum_util' [-Wunused-parameter] unsigned long max_util, unsigned long sum_util, ^ include/linux/energy_model.h:222:18: warning: unused parameter 'allowed_cpu_cap' [-Wunused-parameter] unsigned long allowed_cpu_cap) ^ include/linux/energy_model.h:226:63: warning: unused parameter 'pd' [-Wunused-parameter] static inline int em_pd_nr_perf_states(struct em_perf_domain *pd) ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12: In file included from include/linux/swiotlb.h:5: In file included from include/linux/device.h:25: include/linux/pm.h:30:57: warning: unused parameter 'dev' [-Wunused-parameter] static inline void pm_vt_switch_required(struct device *dev, bool required) ^ include/linux/pm.h:30:67: warning: unused parameter 'required' [-Wunused-parameter] static inline void pm_vt_switch_required(struct device *dev, bool required) ^ include/linux/pm.h:33:59: warning: unused parameter 'dev' [-Wunused-parameter] static inline void pm_vt_switch_unregister(struct device *dev) ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12: In file included from include/linux/swiotlb.h:5: include/linux/device.h:657:46: warning: unused parameter 'dev' [-Wunused-parameter] static inline int dev_to_node(struct device *dev) ^ include/linux/device.h:661:48: warning: unused parameter 'dev' [-Wunused-parameter] static inline void set_dev_node(struct device *dev, int node) ^ include/linux/device.h:661:57: warning: unused parameter 'node' [-Wunused-parameter] static inline void set_dev_node(struct device *dev, int node) ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12: >> include/linux/swiotlb.h:172:57: warning: unused parameter 'dev' [-Wunused-parameter] static inline struct page *swiotlb_alloc(struct device *dev, size_t size) ^ >> include/linux/swiotlb.h:172:69: warning: unused parameter 'size' [-Wunused-parameter] static inline struct page *swiotlb_alloc(struct device *dev, size_t size) ^ include/linux/swiotlb.h:176:48: warning: unused parameter 'dev' [-Wunused-parameter] static inline bool swiotlb_free(struct device *dev, struct page *page, ^ >> include/linux/swiotlb.h:176:66: warning: unused parameter 'page' [-Wunused-parameter] static inline bool swiotlb_free(struct device *dev, struct page *page, ^ include/linux/swiotlb.h:177:12: warning: unused parameter 'size' [-Wunused-parameter] size_t size) ^ include/linux/swiotlb.h:181:56: warning: unused parameter 'dev' [-Wunused-parameter] static inline bool is_swiotlb_for_alloc(struct device *dev) ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14: In file included from drivers/gpu/drm/i915/i915_gem.h:29: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:5: include/linux/context_tracking_state.h:51:53: warning: unused parameter 'cpu' [-Wunused-parameter] static inline bool context_tracking_enabled_cpu(int cpu) { return false; } ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14: In file included from drivers/gpu/drm/i915/i915_gem.h:29: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:10: include/linux/vtime.h:28:57: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_user_enter(struct task_struct *tsk) { } ^ include/linux/vtime.h:29:56: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_user_exit(struct task_struct *tsk) { } ^ include/linux/vtime.h:30:58: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_guest_enter(struct task_struct *tsk) { } ^ include/linux/vtime.h:31:57: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_guest_exit(struct task_struct *tsk) { } ^ include/linux/vtime.h:32:56: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { } ^ include/linux/vtime.h:32:65: warning: unused parameter 'cpu' [-Wunused-parameter] static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { } ^ include/linux/vtime.h:41:58: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { } ^ include/linux/vtime.h:41:76: warning: unused parameter 'offset' [-Wunused-parameter] static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { } ^ include/linux/vtime.h:42:62: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_account_softirq(struct task_struct *tsk) { } ^ include/linux/vtime.h:43:62: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_account_hardirq(struct task_struct *tsk) { } ^ include/linux/vtime.h:44:52: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void vtime_flush(struct task_struct *tsk) { } ^ include/linux/vtime.h:117:58: warning: unused parameter 'prev' [-Wunused-parameter] static inline void vtime_task_switch(struct task_struct *prev) { } ^ include/linux/vtime.h:135:60: warning: unused parameter 'tsk' [-Wunused-parameter] static inline void irqtime_account_irq(struct task_struct *tsk, unsigned int offset) { } ^ include/linux/vtime.h:135:78: warning: unused parameter 'offset' [-Wunused-parameter] static inline void irqtime_account_irq(struct task_struct *tsk, unsigned int offset) { } ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14: In file included from drivers/gpu/drm/i915/i915_gem.h:29: In file included from include/linux/interrupt.h:20: In file included from arch/x86/include/asm/sections.h:7: include/asm-generic/sections.h:70:53: warning: unused parameter 'addr' [-Wunused-parameter] static inline int arch_is_kernel_text(unsigned long addr) ^ include/asm-generic/sections.h:77:53: warning: unused parameter 'addr' [-Wunused-parameter] static inline int arch_is_kernel_data(unsigned long addr) ^ In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11: In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14: In file included from drivers/gpu/drm/i915/i915_gem.h:29: include/linux/interrupt.h:346:49: warning: unused parameter 'irq' [-Wunused-parameter] static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m) ^ include/linux/interrupt.h:346:76: warning: unused parameter 'm' [-Wunused-parameter] static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m) ^ include/linux/interrupt.h:351:51: warning: unused parameter 'irq' [-Wunused-parameter] static inline int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask) ^ include/linux/interrupt.h:351:78: warning: unused parameter 'cpumask' [-Wunused-parameter] static inline int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask) ^ include/linux/interrupt.h:356:53: warning: unused parameter 'irq' [-Wunused-parameter] static inline int irq_can_set_affinity(unsigned int irq) ^ include/linux/interrupt.h:361:52: warning: unused parameter 'irq' [-Wunused-parameter] static inline int irq_select_affinity(unsigned int irq) { return 0; } ^ include/linux/interrupt.h:363:54: warning: unused parameter 'irq' [-Wunused-parameter] static inline int irq_set_affinity_hint(unsigned int irq, ^ include/linux/interrupt.h:364:28: warning: unused parameter 'm' [-Wunused-parameter] const struct cpumask *m) .. vim +/dev +172 include/linux/swiotlb.h 166 167 static inline bool is_swiotlb_for_alloc(struct device *dev) 168 { 169 return dev->dma_io_tlb_mem->for_alloc; 170 } 171 #else > 172 static inline struct page *swiotlb_alloc(struct device *dev, size_t size) 173 { 174 return NULL; 175 } > 176 static inline bool swiotlb_free(struct device *dev, struct page *page, 177 size_t size) 178 { 179 return false; 180 } 181 static inline bool is_swiotlb_for_alloc(struct device *dev) 182 { 183 return false; 184 } 185 #endif /* CONFIG_DMA_RESTRICTED_POOL */ 186 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip