[chrome-os:chromeos-5.4 18886/19232] drivers/gpu/drm/drm_dp_mst_topology.c:1453:6: error: implicit declaration of function 'stack_trace_save'; did you mean
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: b1b5665b308091ba0eb8964d702f320d36f13a8e
commit: 06acf9702e7abcfb2cdc9e0a9c468533376dc803 [18886/19232] UPSTREAM: drm/dp_mst: Add topology ref history tracking for debugging
config: x86_64-randconfig-a002-20201029 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 06acf9702e7abcfb2cdc9e0a9c468533376dc803
# 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 >>):
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_sideband_msg_build':
drivers/gpu/drm/drm_dp_mst_topology.c:691:5: warning: variable 'crc4' set but not used [-Wunused-but-set-variable]
691 | u8 crc4;
| ^~~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function '__topology_ref_save':
>> drivers/gpu/drm/drm_dp_mst_topology.c:1453:6: error: implicit declaration of function 'stack_trace_save'; did you mean 'stack_depot_save'? [-Werror=implicit-function-declaration]
1453 | n = stack_trace_save(stack_entries, ARRAY_SIZE(stack_entries), 1);
| ^~~~~~~~~~~~~~~~
| stack_depot_save
drivers/gpu/drm/drm_dp_mst_topology.c: In function '__dump_topology_ref_history':
drivers/gpu/drm/drm_dp_mst_topology.c:1542:3: error: implicit declaration of function 'stack_trace_snprint'; did you mean 'acpi_trace_point'? [-Werror=implicit-function-declaration]
1542 | stack_trace_snprint(buf, PAGE_SIZE, entries, nr_entries, 4);
| ^~~~~~~~~~~~~~~~~~~
| acpi_trace_point
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_check_mstb_guid':
drivers/gpu/drm/drm_dp_mst_topology.c:2068:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
2068 | int ret;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_send_link_address':
drivers/gpu/drm/drm_dp_mst_topology.c:2825:9: warning: variable 'len' set but not used [-Wunused-but-set-variable]
2825 | int i, len, ret, port_mask = 0;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_send_enum_path_resources':
drivers/gpu/drm/drm_dp_mst_topology.c:2898:6: warning: variable 'len' set but not used [-Wunused-but-set-variable]
2898 | int len;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_payload_send_msg':
drivers/gpu/drm/drm_dp_mst_topology.c:2989:6: warning: variable 'len' set but not used [-Wunused-but-set-variable]
2989 | int len, ret, port_num;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_send_power_updown_phy':
drivers/gpu/drm/drm_dp_mst_topology.c:3045:6: warning: variable 'len' set but not used [-Wunused-but-set-variable]
3045 | int len, ret;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_send_dpcd_read':
drivers/gpu/drm/drm_dp_mst_topology.c:3280:6: warning: variable 'len' set but not used [-Wunused-but-set-variable]
3280 | int len;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_send_dpcd_write':
drivers/gpu/drm/drm_dp_mst_topology.c:3333:6: warning: variable 'len' set but not used [-Wunused-but-set-variable]
3333 | int len;
| ^~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_get_one_sb_msg':
drivers/gpu/drm/drm_dp_mst_topology.c:3620:16: warning: variable 'origlen' set but not used [-Wunused-but-set-variable]
3620 | int replylen, origlen, curreply;
| ^~~~~~~
drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dump_topology':
drivers/gpu/drm/drm_dp_mst_topology.c:4513:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
4513 | int ret;
| ^~~
cc1: some warnings being treated as errors
vim +1453 drivers/gpu/drm/drm_dp_mst_topology.c
1441
1442 static noinline void
1443 __topology_ref_save(struct drm_dp_mst_topology_mgr *mgr,
1444 struct drm_dp_mst_topology_ref_history *history,
1445 enum drm_dp_mst_topology_ref_type type)
1446 {
1447 struct drm_dp_mst_topology_ref_entry *entry = NULL;
1448 depot_stack_handle_t backtrace;
1449 ulong stack_entries[STACK_DEPTH];
1450 uint n;
1451 int i;
1452
> 1453 n = stack_trace_save(stack_entries, ARRAY_SIZE(stack_entries), 1);
1454 backtrace = stack_depot_save(stack_entries, n, GFP_KERNEL);
1455 if (!backtrace)
1456 return;
1457
1458 /* Try to find an existing entry for this backtrace */
1459 for (i = 0; i < history->len; i++) {
1460 if (history->entries[i].backtrace == backtrace) {
1461 entry = &history->entries[i];
1462 break;
1463 }
1464 }
1465
1466 /* Otherwise add one */
1467 if (!entry) {
1468 struct drm_dp_mst_topology_ref_entry *new;
1469 int new_len = history->len + 1;
1470
1471 new = krealloc(history->entries, sizeof(*new) * new_len,
1472 GFP_KERNEL);
1473 if (!new)
1474 return;
1475
1476 entry = &new[history->len];
1477 history->len = new_len;
1478 history->entries = new;
1479
1480 entry->backtrace = backtrace;
1481 entry->type = type;
1482 entry->count = 0;
1483 }
1484 entry->count++;
1485 entry->ts_nsec = ktime_get_ns();
1486 }
1487
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[tglx-devel:highmem 1/18] kernel/sched/sched.h:1059:5: warning: "CONFIG_SMP" is not defined, evaluates to 0
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git highmem
head: 4025d33ae44c6f748765f64dcb1c97ed4b55e756
commit: 0a361f5e6796503d574de4eb613ba730008fc439 [1/18] sched: Make migrate_disable/enable() independent of RT
config: nios2-randconfig-r004-20201030 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel highmem
git checkout 0a361f5e6796503d574de4eb613ba730008fc439
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
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 kernel/sched/swait.c:5:
>> kernel/sched/sched.h:1059:5: warning: "CONFIG_SMP" is not defined, evaluates to 0 [-Wundef]
1059 | #if CONFIG_SMP
| ^~~~~~~~~~
--
In file included from kernel/sched/fair.c:23:
>> kernel/sched/sched.h:1059:5: warning: "CONFIG_SMP" is not defined, evaluates to 0 [-Wundef]
1059 | #if CONFIG_SMP
| ^~~~~~~~~~
kernel/sched/fair.c:5377:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes]
5377 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11145:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
11145 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11147:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
11147 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11152:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
11152 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11154:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
11154 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from kernel/sched/rt.c:6:
>> kernel/sched/sched.h:1059:5: warning: "CONFIG_SMP" is not defined, evaluates to 0 [-Wundef]
1059 | #if CONFIG_SMP
| ^~~~~~~~~~
kernel/sched/rt.c:253:6: warning: no previous prototype for 'free_rt_sched_group' [-Wmissing-prototypes]
253 | void free_rt_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:255:5: warning: no previous prototype for 'alloc_rt_sched_group' [-Wmissing-prototypes]
255 | int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:669:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
669 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from kernel/sched/core.c:13:
>> kernel/sched/sched.h:1059:5: warning: "CONFIG_SMP" is not defined, evaluates to 0 [-Wundef]
1059 | #if CONFIG_SMP
| ^~~~~~~~~~
kernel/sched/core.c: In function 'ttwu_stat':
kernel/sched/core.c:2861:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
2861 | struct rq *rq;
| ^~
kernel/sched/core.c: In function 'schedule_tail':
kernel/sched/core.c:4189:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
4189 | struct rq *rq;
| ^~
vim +/CONFIG_SMP +1059 kernel/sched/sched.h
1058
> 1059 #if CONFIG_SMP
1060 unsigned int nr_pinned;
1061 #endif
1062 unsigned int push_busy;
1063 struct cpu_stop_work push_work;
1064 };
1065
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH for-next] RDMA/rxe: fix regression caused by recent patch
by kernel test robot
Hi Bob,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on rdma/for-next]
[also build test WARNING on v5.10-rc1 next-20201029]
[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/Bob-Pearson/RDMA-rxe-fix-regress...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/880fe509bd2bdc73c885fd887cb393500...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bob-Pearson/RDMA-rxe-fix-regression-caused-by-recent-patch/20201030-052848
git checkout 880fe509bd2bdc73c885fd887cb3935000855d49
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/infiniband/sw/rxe/rxe_verbs.c: In function 'rxe_register_device':
>> drivers/infiniband/sw/rxe/rxe_verbs.c:1143:20: warning: assignment to 'u64 *' {aka 'long long unsigned int *'} from 'long long unsigned int' makes pointer from integer without a cast [-Wint-conversion]
1143 | dev->dev.dma_mask = DMA_BIT_MASK(64);
| ^
vim +1143 drivers/infiniband/sw/rxe/rxe_verbs.c
1125
1126 int rxe_register_device(struct rxe_dev *rxe, const char *ibdev_name)
1127 {
1128 int err;
1129 struct ib_device *dev = &rxe->ib_dev;
1130 struct crypto_shash *tfm;
1131
1132 strlcpy(dev->node_desc, "rxe", sizeof(dev->node_desc));
1133
1134 dev->node_type = RDMA_NODE_IB_CA;
1135 dev->phys_port_cnt = 1;
1136 dev->num_comp_vectors = num_possible_cpus();
1137
1138 /* rdma_rxe never does real DMA but does rely on
1139 * pinning user memory in MRs to avoid page faults
1140 * in responder and completer tasklets
1141 */
1142 dev->dev.parent = rxe_dma_device(rxe);
> 1143 dev->dev.dma_mask = DMA_BIT_MASK(64);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 06/16] mm/pagemap: Cleanup PREEMPT_COUNT leftovers
by kernel test robot
Hi "Uladzislau,
I love your patch! Yet something to improve:
[auto build test ERROR on arm/for-next]
[also build test ERROR on tip/sched/core linus/master v5.10-rc1]
[cannot apply to rcu/dev drm-intel/for-linux-next next-20201029]
[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/Uladzislau-Rezki-Sony/rcu-tree-A...
base: git://git.armlinux.org.uk/~rmk/linux-arm.git for-next
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/1e0b66ce2b779463194f8b398b8e48caa...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Uladzislau-Rezki-Sony/rcu-tree-Add-a-work-to-allocate-pages-from-regular-context/20201030-005247
git checkout 1e0b66ce2b779463194f8b398b8e48caa95aabf4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/gfp.h:5,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/staging/wlan-ng/p80211req.c:54:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
--
In file included from include/linux/percpu.h:5,
from include/linux/radix-tree.h:14,
from include/linux/fs.h:15,
from include/linux/dax.h:5,
from mm/filemap.c:15:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
mm/filemap.c: At top level:
mm/filemap.c:830:14: warning: no previous prototype for '__add_to_page_cache_locked' [-Wmissing-prototypes]
830 | noinline int __add_to_page_cache_locked(struct page *page,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/percpu.h:5,
from include/linux/radix-tree.h:14,
from include/linux/fs.h:15,
from include/linux/backing-dev.h:13,
from mm/truncate.c:12:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
mm/truncate.c: At top level:
mm/truncate.c:531:15: warning: no previous prototype for '__invalidate_mapping_pages' [-Wmissing-prototypes]
531 | unsigned long __invalidate_mapping_pages(struct address_space *mapping,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/percpu.h:5,
from include/linux/hrtimer.h:19,
from include/linux/sched.h:20,
from include/linux/cgroup.h:12,
from include/linux/memcontrol.h:13,
from mm/workingset.c:8:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
mm/workingset.c: In function 'unpack_shadow':
mm/workingset.c:201:15: warning: variable 'nid' set but not used [-Wunused-but-set-variable]
201 | int memcgid, nid;
| ^~~
--
In file included from include/linux/mm.h:9,
from mm/vmalloc.c:12:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
mm/vmalloc.c: At top level:
mm/vmalloc.c:1318:6: warning: no previous prototype for 'set_iounmap_nonlazy' [-Wmissing-prototypes]
1318 | void set_iounmap_nonlazy(void)
| ^~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/mm.h:9,
from mm/page_alloc.c:19:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
mm/page_alloc.c: At top level:
mm/page_alloc.c:3558:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes]
3558 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:6183:23: warning: no previous prototype for 'memmap_init' [-Wmissing-prototypes]
6183 | void __meminit __weak memmap_init(unsigned long size, int nid,
| ^~~~~~~~~~~
--
In file included from include/linux/percpu.h:5,
from include/linux/hrtimer.h:19,
from include/linux/sched.h:20,
from include/linux/cgroup.h:12,
from include/linux/memcontrol.h:13,
from mm/memcontrol.c:26:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
In file included from arch/xtensa/include/asm/atomic.h:19,
from include/linux/atomic.h:7,
from include/linux/page_counter.h:5,
from mm/memcontrol.c:25:
mm/memcontrol.c: In function 'memcg_reparent_objcgs':
arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value]
173 | ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/memcontrol.c:328:2: note: in expansion of macro 'xchg'
328 | xchg(&objcg->memcg, parent);
| ^~~~
arch/xtensa/include/asm/cmpxchg.h:173:3: warning: value computed is not used [-Wunused-value]
173 | ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/memcontrol.c:335:3: note: in expansion of macro 'xchg'
335 | xchg(&iter->memcg, parent);
| ^~~~
--
In file included from include/linux/percpu.h:5,
from include/linux/hrtimer.h:19,
from include/linux/sched.h:20,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/sound/core.h:10,
from drivers/gpu/drm/bridge/adv7511/adv7511_audio.c:9:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
drivers/gpu/drm/bridge/adv7511/adv7511_audio.c: At top level:
drivers/gpu/drm/bridge/adv7511/adv7511_audio.c:58:5: warning: no previous prototype for 'adv7511_hdmi_hw_params' [-Wmissing-prototypes]
58 | int adv7511_hdmi_hw_params(struct device *dev, void *data,
| ^~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/percpu.h:5,
from include/linux/bpf.h:11,
from security/security.c:13:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
At top level:
include/linux/lsm_hook_defs.h:394:18: warning: 'perf_event_write_default' defined but not used [-Wunused-const-variable=]
394 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)
| ^~~~~~~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:394:1: note: in expansion of macro 'LSM_HOOK'
394 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:393:18: warning: 'perf_event_read_default' defined but not used [-Wunused-const-variable=]
393 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
| ^~~~~~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:393:1: note: in expansion of macro 'LSM_HOOK'
393 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:391:18: warning: 'perf_event_alloc_default' defined but not used [-Wunused-const-variable=]
391 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event)
| ^~~~~~~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:391:1: note: in expansion of macro 'LSM_HOOK'
391 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:390:18: warning: 'perf_event_open_default' defined but not used [-Wunused-const-variable=]
390 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
| ^~~~~~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:390:1: note: in expansion of macro 'LSM_HOOK'
390 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:387:18: warning: 'locked_down_default' defined but not used [-Wunused-const-variable=]
387 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
| ^~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:387:1: note: in expansion of macro 'LSM_HOOK'
387 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:383:18: warning: 'bpf_prog_alloc_security_default' defined but not used [-Wunused-const-variable=]
383 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux)
| ^~~~~~~~~~~~~~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:383:1: note: in expansion of macro 'LSM_HOOK'
383 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:381:18: warning: 'bpf_map_alloc_security_default' defined but not used [-Wunused-const-variable=]
381 | LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map)
| ^~~~~~~~~~~~~~~~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:381:1: note: in expansion of macro 'LSM_HOOK'
381 | LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:380:18: warning: 'bpf_prog_default' defined but not used [-Wunused-const-variable=]
380 | LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog)
| ^~~~~~~~
security/security.c:681:32: note: in definition of macro 'LSM_RET_DEFAULT'
681 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:686:2: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
686 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:380:1: note: in expansion of macro 'LSM_HOOK'
--
In file included from include/linux/gfp.h:5,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/staging/vt6655/device.h:19,
from drivers/staging/vt6655/device_main.c:37:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
In file included from drivers/staging/vt6655/device_main.c:43:
drivers/staging/vt6655/rxtx.h: At top level:
drivers/staging/vt6655/rxtx.h:114:1: warning: alignment 1 of 'struct vnt_rts_g' is less than 2 [-Wpacked-not-aligned]
114 | } __packed;
| ^
drivers/staging/vt6655/rxtx.h:128:1: warning: alignment 1 of 'struct vnt_rts_g_fb' is less than 2 [-Wpacked-not-aligned]
128 | } __packed;
| ^
drivers/staging/vt6655/rxtx.h:135:1: warning: alignment 1 of 'struct vnt_rts_ab' is less than 2 [-Wpacked-not-aligned]
135 | } __packed;
| ^
drivers/staging/vt6655/rxtx.h:144:1: warning: alignment 1 of 'struct vnt_rts_a_fb' is less than 2 [-Wpacked-not-aligned]
144 | } __packed;
| ^
drivers/staging/vt6655/rxtx.h:153:1: warning: alignment 1 of 'struct vnt_cts' is less than 2 [-Wpacked-not-aligned]
153 | } __packed;
| ^
drivers/staging/vt6655/rxtx.h:163:1: warning: alignment 1 of 'struct vnt_cts_fb' is less than 2 [-Wpacked-not-aligned]
163 | } __packed;
| ^
--
In file included from include/linux/gfp.h:5,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:16,
from drivers/staging/vt6655/device.h:19,
from drivers/staging/vt6655/upc.h:19,
from drivers/staging/vt6655/srom.c:32:
include/linux/pagemap.h: In function '__page_cache_add_speculative':
>> include/linux/mmdebug.h:20:2: error: expected ';' before 'do'
20 | do { \
| ^~
include/linux/pagemap.h:217:2: note: in expansion of macro 'VM_BUG_ON_PAGE'
217 | VM_BUG_ON_PAGE(page_count(page) == 0, page);
| ^~~~~~~~~~~~~~
In file included from drivers/staging/vt6655/srom.c:32:
drivers/staging/vt6655/srom.c: In function 'SROMbyReadEmbedded':
drivers/staging/vt6655/upc.h:45:16: warning: variable 'byData' set but not used [-Wunused-but-set-variable]
45 | unsigned char byData; \
| ^~~~~~
drivers/staging/vt6655/srom.c:85:4: note: in expansion of macro 'PCAvDelayByIO'
85 | PCAvDelayByIO(CB_DELAY_LOOP_WAIT);
| ^~~~~~~~~~~~~
..
vim +20 include/linux/mmdebug.h
309381feaee5642 Sasha Levin 2014-01-23 16
59ea746337c69f6 Jiri Slaby 2008-06-12 17 #ifdef CONFIG_DEBUG_VM
59ea746337c69f6 Jiri Slaby 2008-06-12 18 #define VM_BUG_ON(cond) BUG_ON(cond)
309381feaee5642 Sasha Levin 2014-01-23 19 #define VM_BUG_ON_PAGE(cond, page) \
e4f674229ce63da Dave Hansen 2014-06-04 @20 do { \
e4f674229ce63da Dave Hansen 2014-06-04 21 if (unlikely(cond)) { \
e4f674229ce63da Dave Hansen 2014-06-04 22 dump_page(page, "VM_BUG_ON_PAGE(" __stringify(cond)")");\
e4f674229ce63da Dave Hansen 2014-06-04 23 BUG(); \
e4f674229ce63da Dave Hansen 2014-06-04 24 } \
e4f674229ce63da Dave Hansen 2014-06-04 25 } while (0)
fa3759ccd5651c4 Sasha Levin 2014-10-09 26 #define VM_BUG_ON_VMA(cond, vma) \
fa3759ccd5651c4 Sasha Levin 2014-10-09 27 do { \
fa3759ccd5651c4 Sasha Levin 2014-10-09 28 if (unlikely(cond)) { \
fa3759ccd5651c4 Sasha Levin 2014-10-09 29 dump_vma(vma); \
fa3759ccd5651c4 Sasha Levin 2014-10-09 30 BUG(); \
fa3759ccd5651c4 Sasha Levin 2014-10-09 31 } \
fa3759ccd5651c4 Sasha Levin 2014-10-09 32 } while (0)
31c9afa6db122a5 Sasha Levin 2014-10-09 33 #define VM_BUG_ON_MM(cond, mm) \
31c9afa6db122a5 Sasha Levin 2014-10-09 34 do { \
31c9afa6db122a5 Sasha Levin 2014-10-09 35 if (unlikely(cond)) { \
31c9afa6db122a5 Sasha Levin 2014-10-09 36 dump_mm(mm); \
31c9afa6db122a5 Sasha Levin 2014-10-09 37 BUG(); \
31c9afa6db122a5 Sasha Levin 2014-10-09 38 } \
31c9afa6db122a5 Sasha Levin 2014-10-09 39 } while (0)
91241681c62a5a6 Michal Hocko 2018-04-05 40 #define VM_WARN_ON(cond) (void)WARN_ON(cond)
91241681c62a5a6 Michal Hocko 2018-04-05 41 #define VM_WARN_ON_ONCE(cond) (void)WARN_ON_ONCE(cond)
91241681c62a5a6 Michal Hocko 2018-04-05 42 #define VM_WARN_ONCE(cond, format...) (void)WARN_ONCE(cond, format)
91241681c62a5a6 Michal Hocko 2018-04-05 43 #define VM_WARN(cond, format...) (void)WARN(cond, format)
59ea746337c69f6 Jiri Slaby 2008-06-12 44 #else
02602a18c32d76f Konstantin Khlebnikov 2012-05-29 45 #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond)
309381feaee5642 Sasha Levin 2014-01-23 46 #define VM_BUG_ON_PAGE(cond, page) VM_BUG_ON(cond)
fa3759ccd5651c4 Sasha Levin 2014-10-09 47 #define VM_BUG_ON_VMA(cond, vma) VM_BUG_ON(cond)
31c9afa6db122a5 Sasha Levin 2014-10-09 48 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
02a8efeda894d35 Andrew Morton 2014-06-04 49 #define VM_WARN_ON(cond) BUILD_BUG_ON_INVALID(cond)
02a8efeda894d35 Andrew Morton 2014-06-04 50 #define VM_WARN_ON_ONCE(cond) BUILD_BUG_ON_INVALID(cond)
ef6b571fb8920d5 Andrew Morton 2014-08-06 51 #define VM_WARN_ONCE(cond, format...) BUILD_BUG_ON_INVALID(cond)
a54f9aebaa9f0ea Aneesh Kumar K.V 2016-07-26 52 #define VM_WARN(cond, format...) BUILD_BUG_ON_INVALID(cond)
59ea746337c69f6 Jiri Slaby 2008-06-12 53 #endif
59ea746337c69f6 Jiri Slaby 2008-06-12 54
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[jolsa-perf:rostedt_ftrace/core 2/3] include/linux/ftrace.h:107:9: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git rostedt_ftrace/core
head: 4c704bce795d69a9db9d2d21d11612bc78b3e54a
commit: ab1b08b2eb044cc90aba1f2732442214433cd1ed [2/3] ftrace/x86: Allow for arguments to be passed in to ftrace_regs by default
config: x86_64-randconfig-a006-20201029 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id...
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf rostedt_ftrace/core
git checkout ab1b08b2eb044cc90aba1f2732442214433cd1ed
# 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 error/warnings (new ones prefixed by >>):
In file included from include/linux/perf_event.h:49,
from include/linux/trace_events.h:10,
from kernel/trace/synth_event_gen_test.c:9:
>> include/linux/ftrace.h:102:63: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
102 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
| ^~~~~~~~~~~
include/linux/ftrace.h: In function 'ftrace_get_regs':
>> include/linux/ftrace.h:107:9: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? [-Werror=implicit-function-declaration]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~
| ftrace_get_regs
>> include/linux/ftrace.h:107:9: warning: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h: At top level:
include/linux/ftrace.h:111:40: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
111 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
include/linux/ftrace.h:279:34: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
279 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from kernel/trace/ftrace.c:29:
>> include/linux/ftrace.h:102:63: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
102 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
| ^~~~~~~~~~~
include/linux/ftrace.h: In function 'ftrace_get_regs':
>> include/linux/ftrace.h:107:9: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? [-Werror=implicit-function-declaration]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~
| ftrace_get_regs
>> include/linux/ftrace.h:107:9: warning: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h: At top level:
include/linux/ftrace.h:111:40: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
111 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
include/linux/ftrace.h:279:34: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
279 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
>> kernel/trace/ftrace.c:82:11: error: initialization of 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
82 | .func = ftrace_stub,
| ^~~~~~~~~~~
kernel/trace/ftrace.c:82:11: note: (near initialization for 'ftrace_list_end.func')
>> kernel/trace/ftrace.c:119:53: error: initialization of 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
119 | ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub;
| ^~~~~~~~~~~
>> kernel/trace/ftrace.c:143:38: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
143 | struct ftrace_ops *op, struct ftrace_regs *fregs)
| ^~~~~~~~~~~
kernel/trace/ftrace.c: In function 'ftrace_pid_func':
>> kernel/trace/ftrace.c:157:36: error: passing argument 4 of 'op->saved_func' from incompatible pointer type [-Werror=incompatible-pointer-types]
157 | op->saved_func(ip, parent_ip, op, fregs);
| ^~~~~
| |
| struct ftrace_regs *
kernel/trace/ftrace.c:157:36: note: expected 'struct ftrace_regs *' but argument is of type 'struct ftrace_regs *'
kernel/trace/ftrace.c: In function 'ftrace_ops_get_list_func':
kernel/trace/ftrace.c:128:31: warning: cast between incompatible function types from 'void (*)(long unsigned int, long unsigned int)' to 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Wcast-function-type]
128 | #define ftrace_ops_list_func ((ftrace_func_t)ftrace_ops_no_ops)
| ^
kernel/trace/ftrace.c:174:10: note: in expansion of macro 'ftrace_ops_list_func'
174 | return ftrace_ops_list_func;
| ^~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c: In function 'update_ftrace_function':
>> kernel/trace/ftrace.c:193:8: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
193 | func = ftrace_stub;
| ^
kernel/trace/ftrace.c:128:31: warning: cast between incompatible function types from 'void (*)(long unsigned int, long unsigned int)' to 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Wcast-function-type]
128 | #define ftrace_ops_list_func ((ftrace_func_t)ftrace_ops_no_ops)
| ^
kernel/trace/ftrace.c:207:10: note: in expansion of macro 'ftrace_ops_list_func'
207 | func = ftrace_ops_list_func;
| ^~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:128:31: warning: cast between incompatible function types from 'void (*)(long unsigned int, long unsigned int)' to 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Wcast-function-type]
128 | #define ftrace_ops_list_func ((ftrace_func_t)ftrace_ops_no_ops)
| ^
kernel/trace/ftrace.c:220:14: note: in expansion of macro 'ftrace_ops_list_func'
220 | if (func == ftrace_ops_list_func) {
| ^~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:128:31: warning: cast between incompatible function types from 'void (*)(long unsigned int, long unsigned int)' to 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Wcast-function-type]
128 | #define ftrace_ops_list_func ((ftrace_func_t)ftrace_ops_no_ops)
| ^
kernel/trace/ftrace.c:240:26: note: in expansion of macro 'ftrace_ops_list_func'
240 | ftrace_trace_function = ftrace_ops_list_func;
| ^~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c: In function '__register_ftrace_function':
kernel/trace/ftrace.c:335:13: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
335 | ops->func = ftrace_pid_func;
| ^
kernel/trace/ftrace.c: In function 'ftrace_update_pid_func':
>> kernel/trace/ftrace.c:370:28: warning: comparison of distinct pointer types lacks a cast
370 | if (ftrace_trace_function == ftrace_stub)
| ^~
>> kernel/trace/ftrace.c:376:21: warning: pointer type mismatch in conditional expression
376 | ftrace_pid_func : op->saved_func;
| ^
kernel/trace/ftrace.c: At top level:
kernel/trace/ftrace.c:584:5: warning: no previous prototype for 'ftrace_profile_pages_init' [-Wmissing-prototypes]
584 | int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c:757:40: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
757 | struct ftrace_ops *ops, struct ftrace_regs *fregs)
| ^~~~~~~~~~~
kernel/trace/ftrace.c:6867:12: error: initialization of 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
6867 | .func = ftrace_stub,
| ^~~~~~~~~~~
kernel/trace/ftrace.c:6867:12: note: (near initialization for 'global_ops.func')
In file included from arch/x86/include/asm/bug.h:93,
from include/linux/bug.h:5,
from include/linux/jump_label.h:250,
from include/linux/static_key.h:1,
from arch/x86/include/asm/nospec-branch.h:6,
from arch/x86/include/asm/irqflags.h:9,
from include/linux/irqflags.h:16,
from include/linux/rcupdate.h:26,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/stop_machine.h:5,
from kernel/trace/ftrace.c:17:
kernel/trace/ftrace.c: In function 'ftrace_init_array_ops':
kernel/trace/ftrace.c:6903:29: warning: comparison of distinct pointer types lacks a cast
6903 | if (WARN_ON(tr->ops->func != ftrace_stub))
| ^~
include/asm-generic/bug.h:119:25: note: in definition of macro 'WARN_ON'
119 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
kernel/trace/ftrace.c: In function 'ftrace_reset_array_ops':
kernel/trace/ftrace.c:6913:16: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
6913 | tr->ops->func = ftrace_stub;
| ^
kernel/trace/ftrace.c: At top level:
kernel/trace/ftrace.c:6918:45: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
6918 | struct ftrace_ops *ignored, struct ftrace_regs *fregs)
| ^~~~~~~~~~~
kernel/trace/ftrace.c: In function '__ftrace_ops_list_func':
>> kernel/trace/ftrace.c:6920:41: error: passing argument 1 of 'ftrace_get_regs' from incompatible pointer type [-Werror=incompatible-pointer-types]
6920 | struct pt_regs *regs = ftrace_get_regs(fregs);
| ^~~~~
| |
| struct ftrace_regs *
In file included from kernel/trace/ftrace.c:29:
include/linux/ftrace.h:102:76: note: expected 'struct ftrace_regs *' but argument is of type 'struct ftrace_regs *'
102 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
>> kernel/trace/ftrace.c:6953:32: error: passing argument 4 of 'op->func' from incompatible pointer type [-Werror=incompatible-pointer-types]
6953 | op->func(ip, parent_ip, op, fregs);
| ^~~~~
| |
| struct ftrace_regs *
kernel/trace/ftrace.c:6953:32: note: expected 'struct ftrace_regs *' but argument is of type 'struct ftrace_regs *'
kernel/trace/ftrace.c: At top level:
kernel/trace/ftrace.c:6995:38: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
6995 | struct ftrace_ops *op, struct ftrace_regs *fregs)
| ^~~~~~~~~~~
kernel/trace/ftrace.c: In function 'ftrace_ops_assist_func':
kernel/trace/ftrace.c:7008:30: error: passing argument 4 of 'op->func' from incompatible pointer type [-Werror=incompatible-pointer-types]
7008 | op->func(ip, parent_ip, op, fregs);
| ^~~~~
| |
| struct ftrace_regs *
kernel/trace/ftrace.c:7008:30: note: expected 'struct ftrace_regs *' but argument is of type 'struct ftrace_regs *'
kernel/trace/ftrace.c: In function 'ftrace_ops_get_func':
>> kernel/trace/ftrace.c:7034:10: error: returning 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' from a function with incompatible return type 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} [-Werror=incompatible-pointer-types]
7034 | return ftrace_ops_assist_func;
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/trace/ftrace.c: In function 'ftrace_kill':
kernel/trace/ftrace.c:7470:24: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
7470 | ftrace_trace_function = ftrace_stub;
| ^
kernel/trace/ftrace.c: In function 'ftrace_enable_sysctl':
kernel/trace/ftrace.c:7571:25: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
7571 | ftrace_trace_function = ftrace_stub;
| ^
cc1: some warnings being treated as errors
--
In file included from kernel/trace/trace_output.c:10:
>> include/linux/ftrace.h:102:63: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
102 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
| ^~~~~~~~~~~
include/linux/ftrace.h: In function 'ftrace_get_regs':
>> include/linux/ftrace.h:107:9: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? [-Werror=implicit-function-declaration]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~
| ftrace_get_regs
>> include/linux/ftrace.h:107:9: warning: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h: At top level:
include/linux/ftrace.h:111:40: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
111 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
include/linux/ftrace.h:279:34: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
279 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
kernel/trace/trace_output.c: In function 'trace_output_raw':
kernel/trace/trace_output.c:321:2: warning: function 'trace_output_raw' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
321 | trace_seq_vprintf(s, fmt, ap);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from kernel/trace/trace_functions.c:16:
>> include/linux/ftrace.h:102:63: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
102 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
| ^~~~~~~~~~~
include/linux/ftrace.h: In function 'ftrace_get_regs':
>> include/linux/ftrace.h:107:9: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? [-Werror=implicit-function-declaration]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~
| ftrace_get_regs
>> include/linux/ftrace.h:107:9: warning: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h: At top level:
include/linux/ftrace.h:111:40: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
111 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
include/linux/ftrace.h:279:34: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
279 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
>> kernel/trace/trace_functions.c:26:37: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
26 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
kernel/trace/trace_functions.c:29:36: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
29 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
kernel/trace/trace_functions.c: In function 'ftrace_allocate_ftrace_ops':
>> kernel/trace/trace_functions.c:50:12: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
50 | ops->func = function_trace_call;
| ^
kernel/trace/trace_functions.c: In function 'function_trace_init':
kernel/trace/trace_functions.c:103:8: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
103 | func = function_stack_trace_call;
| ^
kernel/trace/trace_functions.c:105:8: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
105 | func = function_trace_call;
| ^
kernel/trace/trace_functions.c: At top level:
kernel/trace/trace_functions.c:131:37: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
131 | struct ftrace_ops *op, struct ftrace_regs *fregs)
| ^~~~~~~~~~~
>> kernel/trace/trace_functions.c:130:1: error: conflicting types for 'function_trace_call'
130 | function_trace_call(unsigned long ip, unsigned long parent_ip,
| ^~~~~~~~~~~~~~~~~~~
kernel/trace/trace_functions.c:25:1: note: previous declaration of 'function_trace_call' was here
25 | function_trace_call(unsigned long ip, unsigned long parent_ip,
| ^~~~~~~~~~~~~~~~~~~
kernel/trace/trace_functions.c:180:36: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
180 | struct ftrace_ops *op, struct ftrace_regs *fregs)
| ^~~~~~~~~~~
>> kernel/trace/trace_functions.c:179:1: error: conflicting types for 'function_stack_trace_call'
179 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_functions.c:28:1: note: previous declaration of 'function_stack_trace_call' was here
28 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_functions.c: In function 'func_set_flag':
kernel/trace/trace_functions.c:254:18: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
254 | tr->ops->func = function_stack_trace_call;
| ^
kernel/trace/trace_functions.c:257:18: error: assignment to 'ftrace_func_t' {aka 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)'} from incompatible pointer type 'void (*)(long unsigned int, long unsigned int, struct ftrace_ops *, struct ftrace_regs *)' [-Werror=incompatible-pointer-types]
257 | tr->ops->func = function_trace_call;
| ^
kernel/trace/trace_functions.c: At top level:
>> kernel/trace/trace_functions.c:25:1: warning: 'function_trace_call' used but never defined
25 | function_trace_call(unsigned long ip, unsigned long parent_ip,
| ^~~~~~~~~~~~~~~~~~~
>> kernel/trace/trace_functions.c:28:1: warning: 'function_stack_trace_call' used but never defined
28 | function_stack_trace_call(unsigned long ip, unsigned long parent_ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from kernel/trace/trace_preemptirq.c:11:
>> include/linux/ftrace.h:102:63: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
102 | static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
| ^~~~~~~~~~~
include/linux/ftrace.h: In function 'ftrace_get_regs':
>> include/linux/ftrace.h:107:9: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? [-Werror=implicit-function-declaration]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~
| ftrace_get_regs
>> include/linux/ftrace.h:107:9: warning: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion]
107 | return arch_ftrace_get_regs(fregs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/ftrace.h: At top level:
include/linux/ftrace.h:111:40: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
111 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
include/linux/ftrace.h:279:34: warning: 'struct ftrace_regs' declared inside parameter list will not be visible outside of this definition or declaration
279 | struct ftrace_ops *op, struct ftrace_regs *fregs);
| ^~~~~~~~~~~
kernel/trace/trace_preemptirq.c:88:16: warning: no previous prototype for 'trace_hardirqs_on_caller' [-Wmissing-prototypes]
88 | __visible void trace_hardirqs_on_caller(unsigned long caller_addr)
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_preemptirq.c:103:16: warning: no previous prototype for 'trace_hardirqs_off_caller' [-Wmissing-prototypes]
103 | __visible void trace_hardirqs_off_caller(unsigned long caller_addr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
..
vim +107 include/linux/ftrace.h
101
> 102 static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
103 {
104 if (!fregs)
105 return NULL;
106
> 107 return arch_ftrace_get_regs(fregs);
108 }
109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [RFC PATCH v2] net: bridge: mcast: add support for raw L2 multicast groups
by kernel test robot
Hi Vladimir,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[also build test ERROR on v5.10-rc1 next-20201029]
[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/Vladimir-Oltean/net-bridge-mcast...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d76913908102044f14381df865bb74df17a538cb
config: nds32-randconfig-s031-20201029 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-56-gc09e8239-dirty
# https://github.com/0day-ci/linux/commit/74edb63ab6703b3b0a770ebec9603deff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vladimir-Oltean/net-bridge-mcast-add-support-for-raw-L2-multicast-groups/20201026-012242
git checkout 74edb63ab6703b3b0a770ebec9603deff90d1e2b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/bridge/br_device.c: In function 'br_dev_xmit':
>> net/bridge/br_device.c:96:7: error: too many arguments to function 'br_multicast_querier_exists'
96 | br_multicast_querier_exists(br, eth_hdr(skb), mdst))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from net/bridge/br_device.c:19:
net/bridge/br_private.h:1001:20: note: declared here
1001 | static inline bool br_multicast_querier_exists(struct net_bridge *br,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
--
net/bridge/br_input.c: In function 'br_handle_frame_finish':
>> net/bridge/br_input.c:137:7: error: too many arguments to function 'br_multicast_querier_exists'
137 | br_multicast_querier_exists(br, eth_hdr(skb), mdst)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from net/bridge/br_input.c:23:
net/bridge/br_private.h:1001:20: note: declared here
1001 | static inline bool br_multicast_querier_exists(struct net_bridge *br,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/br_multicast_querier_exists +96 net/bridge/br_device.c
26
27 /* net device transmit always called with BH disabled */
28 netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)
29 {
30 struct net_bridge *br = netdev_priv(dev);
31 struct net_bridge_fdb_entry *dst;
32 struct net_bridge_mdb_entry *mdst;
33 struct pcpu_sw_netstats *brstats = this_cpu_ptr(br->stats);
34 const struct nf_br_ops *nf_ops;
35 u8 state = BR_STATE_FORWARDING;
36 const unsigned char *dest;
37 u16 vid = 0;
38
39 memset(skb->cb, 0, sizeof(struct br_input_skb_cb));
40
41 rcu_read_lock();
42 nf_ops = rcu_dereference(nf_br_ops);
43 if (nf_ops && nf_ops->br_dev_xmit_hook(skb)) {
44 rcu_read_unlock();
45 return NETDEV_TX_OK;
46 }
47
48 u64_stats_update_begin(&brstats->syncp);
49 brstats->tx_packets++;
50 brstats->tx_bytes += skb->len;
51 u64_stats_update_end(&brstats->syncp);
52
53 br_switchdev_frame_unmark(skb);
54 BR_INPUT_SKB_CB(skb)->brdev = dev;
55 BR_INPUT_SKB_CB(skb)->frag_max_size = 0;
56
57 skb_reset_mac_header(skb);
58 skb_pull(skb, ETH_HLEN);
59
60 if (!br_allowed_ingress(br, br_vlan_group_rcu(br), skb, &vid, &state))
61 goto out;
62
63 if (IS_ENABLED(CONFIG_INET) &&
64 (eth_hdr(skb)->h_proto == htons(ETH_P_ARP) ||
65 eth_hdr(skb)->h_proto == htons(ETH_P_RARP)) &&
66 br_opt_get(br, BROPT_NEIGH_SUPPRESS_ENABLED)) {
67 br_do_proxy_suppress_arp(skb, br, vid, NULL);
68 } else if (IS_ENABLED(CONFIG_IPV6) &&
69 skb->protocol == htons(ETH_P_IPV6) &&
70 br_opt_get(br, BROPT_NEIGH_SUPPRESS_ENABLED) &&
71 pskb_may_pull(skb, sizeof(struct ipv6hdr) +
72 sizeof(struct nd_msg)) &&
73 ipv6_hdr(skb)->nexthdr == IPPROTO_ICMPV6) {
74 struct nd_msg *msg, _msg;
75
76 msg = br_is_nd_neigh_msg(skb, &_msg);
77 if (msg)
78 br_do_suppress_nd(skb, br, vid, NULL, msg);
79 }
80
81 dest = eth_hdr(skb)->h_dest;
82 if (is_broadcast_ether_addr(dest)) {
83 br_flood(br, skb, BR_PKT_BROADCAST, false, true);
84 } else if (is_multicast_ether_addr(dest)) {
85 if (unlikely(netpoll_tx_running(dev))) {
86 br_flood(br, skb, BR_PKT_MULTICAST, false, true);
87 goto out;
88 }
89 if (br_multicast_rcv(br, NULL, skb, vid)) {
90 kfree_skb(skb);
91 goto out;
92 }
93
94 mdst = br_mdb_get(br, skb, vid);
95 if ((mdst || BR_INPUT_SKB_CB_MROUTERS_ONLY(skb)) &&
> 96 br_multicast_querier_exists(br, eth_hdr(skb), mdst))
97 br_multicast_flood(mdst, skb, false, true);
98 else
99 br_flood(br, skb, BR_PKT_MULTICAST, false, true);
100 } else if ((dst = br_fdb_find_rcu(br, dest, vid)) != NULL) {
101 br_forward(dst->dst, skb, false, true);
102 } else {
103 br_flood(br, skb, BR_PKT_UNICAST, false, true);
104 }
105 out:
106 rcu_read_unlock();
107 return NETDEV_TX_OK;
108 }
109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 2/3] Driver core: platform: Add platform_get_irqs_affinity()
by kernel test robot
Hi John,
I love your patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on scsi/for-next tip/irq/core driver-core/driver-core-testing linus/master v5.10-rc1 next-20201029]
[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/John-Garry/Support-managed-inter...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: h8300-randconfig-r025-20201029 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/8675e033c5fd8a87c202e2bc74834122f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review John-Garry/Support-managed-interrupts-for-platform-devices/20201027-201557
git checkout 8675e033c5fd8a87c202e2bc74834122f010adc5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
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 arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/platform_device.h:14,
from include/linux/mfd/core.h:13,
from drivers/mfd/88pm800.c:27:
>> include/linux/irqchip.h:31:42: warning: 'struct platform_device' declared inside parameter list will not be visible outside of this definition or declaration
31 | extern int platform_irqchip_probe(struct platform_device *pdev);
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/irqchip.h:17,
from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/mfd/tps65217.c:21:
>> include/linux/platform_device.h:75:18: warning: 'struct irq_affinity' declared inside parameter list will not be visible outside of this definition or declaration
75 | struct irq_affinity *affd,
| ^~~~~~~~~~~~
In file included from include/linux/dev_printk.h:14,
from include/linux/device.h:15,
from drivers/mfd/tps65217.c:18:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:93:50: warning: ordered comparison of pointer with null pointer [-Wextra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/irqchip.h:17,
from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/mfd/max77650.c:10:
>> include/linux/platform_device.h:75:18: warning: 'struct irq_affinity' declared inside parameter list will not be visible outside of this definition or declaration
75 | struct irq_affinity *affd,
| ^~~~~~~~~~~~
--
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/mfd/si476x-prop.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:93:50: warning: ordered comparison of pointer with null pointer [-Wextra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/platform_device.h:14,
from include/linux/mfd/core.h:13,
from include/linux/mfd/si476x-core.h:20,
from drivers/mfd/si476x-prop.c:13:
include/linux/irqchip.h: At top level:
>> include/linux/irqchip.h:31:42: warning: 'struct platform_device' declared inside parameter list will not be visible outside of this definition or declaration
31 | extern int platform_irqchip_probe(struct platform_device *pdev);
| ^~~~~~~~~~~~~~~
--
In file included from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/platform_device.h:14,
from include/linux/of_device.h:6,
from drivers/irqchip/irqchip.c:13:
>> include/linux/irqchip.h:31:42: warning: 'struct platform_device' declared inside parameter list will not be visible outside of this definition or declaration
31 | extern int platform_irqchip_probe(struct platform_device *pdev);
| ^~~~~~~~~~~~~~~
drivers/irqchip/irqchip.c:35:5: error: conflicting types for 'platform_irqchip_probe'
35 | int platform_irqchip_probe(struct platform_device *pdev)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/platform_device.h:14,
from include/linux/of_device.h:6,
from drivers/irqchip/irqchip.c:13:
include/linux/irqchip.h:31:12: note: previous declaration of 'platform_irqchip_probe' was here
31 | extern int platform_irqchip_probe(struct platform_device *pdev);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/irqchip/irqchip.c:11:
drivers/irqchip/irqchip.c:60:19: error: conflicting types for 'platform_irqchip_probe'
60 | EXPORT_SYMBOL_GPL(platform_irqchip_probe);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/export.h:98:21: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/irqchip/irqchip.c:60:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
60 | EXPORT_SYMBOL_GPL(platform_irqchip_probe);
| ^~~~~~~~~~~~~~~~~
In file included from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/platform_device.h:14,
from include/linux/of_device.h:6,
from drivers/irqchip/irqchip.c:13:
include/linux/irqchip.h:31:12: note: previous declaration of 'platform_irqchip_probe' was here
31 | extern int platform_irqchip_probe(struct platform_device *pdev);
| ^~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/platform_device.h:14,
from drivers/mfd/sm501.c:17:
>> include/linux/irqchip.h:31:42: warning: 'struct platform_device' declared inside parameter list will not be visible outside of this definition or declaration
31 | extern int platform_irqchip_probe(struct platform_device *pdev);
| ^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from drivers/mfd/sm501.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:93:50: warning: ordered comparison of pointer with null pointer [-Wextra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/dev_printk.h:14,
from include/linux/device.h:15,
from include/linux/spi/spi.h:9,
from drivers/mfd/stmpe-spi.c:10:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:93:50: warning: ordered comparison of pointer with null pointer [-Wextra]
93 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from include/linux/irqchip.h:17,
from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from drivers/mfd/stmpe-spi.c:11:
include/linux/platform_device.h: At top level:
>> include/linux/platform_device.h:75:18: warning: 'struct irq_affinity' declared inside parameter list will not be visible outside of this definition or declaration
75 | struct irq_affinity *affd,
| ^~~~~~~~~~~~
--
In file included from include/linux/irqchip.h:17,
from arch/h8300/include/asm/irq.h:5,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from ./arch/h8300/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from arch/h8300/kernel/asm-offsets.c:14:
>> include/linux/platform_device.h:75:18: warning: 'struct irq_affinity' declared inside parameter list will not be visible outside of this definition or declaration
75 | struct irq_affinity *affd,
| ^~~~~~~~~~~~
<stdin>:1511:2: warning: #warning syscall clone3 not implemented [-Wcpp]
vim +31 include/linux/irqchip.h
91e20b5040c67c5 Joel Porquet 2015-07-02 30
f8410e626569324 Saravana Kannan 2020-07-17 @31 extern int platform_irqchip_probe(struct platform_device *pdev);
f8410e626569324 Saravana Kannan 2020-07-17 32
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 6/9] mfd: stmfx: remove unnecessary CONFIG_PM_SLEEP
by kernel test robot
Hi Coiby,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on lee-mfd/for-mfd-next]
[also build test ERROR on chanwoo-extcon/extcon-next v5.10-rc1 next-20201029]
[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/Coiby-Xu/mfd-maxim-remove-unnece...
base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/af64db6e5065ea1b51445005e0e675f8a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Coiby-Xu/mfd-maxim-remove-unnecessary-CONFIG_PM_SLEEP/20201029-180931
git checkout af64db6e5065ea1b51445005e0e675f8a49db5ec
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/mfd/stmfx.c: In function 'stmfx_suspend':
>> drivers/mfd/stmfx.c:478:16: error: 'struct stmfx' has no member named 'bkp_sysctrl'
478 | &stmfx->bkp_sysctrl, sizeof(stmfx->bkp_sysctrl));
| ^~
drivers/mfd/stmfx.c:478:43: error: 'struct stmfx' has no member named 'bkp_sysctrl'
478 | &stmfx->bkp_sysctrl, sizeof(stmfx->bkp_sysctrl));
| ^~
>> drivers/mfd/stmfx.c:483:16: error: 'struct stmfx' has no member named 'bkp_irqoutpin'
483 | &stmfx->bkp_irqoutpin,
| ^~
drivers/mfd/stmfx.c:484:22: error: 'struct stmfx' has no member named 'bkp_irqoutpin'
484 | sizeof(stmfx->bkp_irqoutpin));
| ^~
drivers/mfd/stmfx.c: In function 'stmfx_resume':
drivers/mfd/stmfx.c:518:17: error: 'struct stmfx' has no member named 'bkp_sysctrl'
518 | &stmfx->bkp_sysctrl, sizeof(stmfx->bkp_sysctrl));
| ^~
drivers/mfd/stmfx.c:518:44: error: 'struct stmfx' has no member named 'bkp_sysctrl'
518 | &stmfx->bkp_sysctrl, sizeof(stmfx->bkp_sysctrl));
| ^~
drivers/mfd/stmfx.c:523:17: error: 'struct stmfx' has no member named 'bkp_irqoutpin'
523 | &stmfx->bkp_irqoutpin,
| ^~
drivers/mfd/stmfx.c:524:23: error: 'struct stmfx' has no member named 'bkp_irqoutpin'
524 | sizeof(stmfx->bkp_irqoutpin));
| ^~
At top level:
drivers/mfd/stmfx.c:496:12: warning: 'stmfx_resume' defined but not used [-Wunused-function]
496 | static int stmfx_resume(struct device *dev)
| ^~~~~~~~~~~~
drivers/mfd/stmfx.c:472:12: warning: 'stmfx_suspend' defined but not used [-Wunused-function]
472 | static int stmfx_suspend(struct device *dev)
| ^~~~~~~~~~~~~
vim +478 drivers/mfd/stmfx.c
06252ade9156657 Amelie Delaunay 2019-05-09 471
06252ade9156657 Amelie Delaunay 2019-05-09 472 static int stmfx_suspend(struct device *dev)
06252ade9156657 Amelie Delaunay 2019-05-09 473 {
06252ade9156657 Amelie Delaunay 2019-05-09 474 struct stmfx *stmfx = dev_get_drvdata(dev);
06252ade9156657 Amelie Delaunay 2019-05-09 475 int ret;
06252ade9156657 Amelie Delaunay 2019-05-09 476
06252ade9156657 Amelie Delaunay 2019-05-09 477 ret = regmap_raw_read(stmfx->map, STMFX_REG_SYS_CTRL,
06252ade9156657 Amelie Delaunay 2019-05-09 @478 &stmfx->bkp_sysctrl, sizeof(stmfx->bkp_sysctrl));
06252ade9156657 Amelie Delaunay 2019-05-09 479 if (ret)
06252ade9156657 Amelie Delaunay 2019-05-09 480 return ret;
06252ade9156657 Amelie Delaunay 2019-05-09 481
06252ade9156657 Amelie Delaunay 2019-05-09 482 ret = regmap_raw_read(stmfx->map, STMFX_REG_IRQ_OUT_PIN,
06252ade9156657 Amelie Delaunay 2019-05-09 @483 &stmfx->bkp_irqoutpin,
06252ade9156657 Amelie Delaunay 2019-05-09 484 sizeof(stmfx->bkp_irqoutpin));
06252ade9156657 Amelie Delaunay 2019-05-09 485 if (ret)
06252ade9156657 Amelie Delaunay 2019-05-09 486 return ret;
06252ade9156657 Amelie Delaunay 2019-05-09 487
97eda5dcc2cde5d Amelie Delaunay 2020-04-22 488 disable_irq(stmfx->irq);
97eda5dcc2cde5d Amelie Delaunay 2020-04-22 489
06252ade9156657 Amelie Delaunay 2019-05-09 490 if (stmfx->vdd)
06252ade9156657 Amelie Delaunay 2019-05-09 491 return regulator_disable(stmfx->vdd);
06252ade9156657 Amelie Delaunay 2019-05-09 492
06252ade9156657 Amelie Delaunay 2019-05-09 493 return 0;
06252ade9156657 Amelie Delaunay 2019-05-09 494 }
06252ade9156657 Amelie Delaunay 2019-05-09 495
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months