Skip to content

bfq can't compile 4.2/master #37

Closed

Description

@weedy
  CC      block/bfq-iosched.o
  CC [M]  crypto/serpent_generic.o
In file included from block/bfq-iosched.c:70:0:
block/bfq.h:651:21: error: field ‘service_bytes’ has incomplete type
  struct blkg_rwstat  service_bytes;
                     ^
block/bfq.h:653:21: error: field ‘serviced’ has incomplete type
  struct blkg_rwstat  serviced;
                     ^
block/bfq.h:655:21: error: field ‘merged’ has incomplete type
  struct blkg_rwstat  merged;
                     ^
block/bfq.h:657:21: error: field ‘service_time’ has incomplete type
  struct blkg_rwstat  service_time;
                     ^
block/bfq.h:659:21: error: field ‘wait_time’ has incomplete type
  struct blkg_rwstat  wait_time;
                     ^
block/bfq.h:661:21: error: field ‘queued’ has incomplete type
  struct blkg_rwstat  queued;
                     ^
block/bfq.h:663:19: error: field ‘sectors’ has incomplete type
  struct blkg_stat  sectors;
                   ^
block/bfq.h:665:19: error: field ‘time’ has incomplete type
  struct blkg_stat  time;
                   ^
block/bfq.h:667:19: error: field ‘unaccounted_time’ has incomplete type
  struct blkg_stat  unaccounted_time;
                   ^
block/bfq.h:669:19: error: field ‘avg_queue_size_sum’ has incomplete type
  struct blkg_stat  avg_queue_size_sum;
                   ^
block/bfq.h:671:19: error: field ‘avg_queue_size_samples’ has incomplete type
  struct blkg_stat  avg_queue_size_samples;
                   ^
block/bfq.h:673:19: error: field ‘dequeue’ has incomplete type
  struct blkg_stat  dequeue;
                   ^
block/bfq.h:675:19: error: field ‘group_wait_time’ has incomplete type
  struct blkg_stat  group_wait_time;
                   ^
block/bfq.h:677:19: error: field ‘idle_time’ has incomplete type
  struct blkg_stat  idle_time;
                   ^
block/bfq.h:679:19: error: field ‘empty_time’ has incomplete type
  struct blkg_stat  empty_time;
                   ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c: In function ‘bfqg_stats_update_group_wait_time’:
block/bfq-cgroup.c:54:3: error: implicit declaration of function ‘blkg_stat_add’ [-Werror=implicit-function-declaration]
   blkg_stat_add(&stats->group_wait_time,
   ^
block/bfq-cgroup.c: In function ‘bfqg_stats_set_start_empty_time’:
block/bfq-cgroup.c:97:2: error: implicit declaration of function ‘blkg_rwstat_total’ [-Werror=implicit-function-declaration]
  if (blkg_rwstat_total(&stats->queued))
  ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c: In function ‘bfqg_parent’:
block/bfq-cgroup.c:176:45: error: ‘struct blkcg_gq’ has no member named ‘parent’
  struct blkcg_gq *pblkg = bfqg_to_blkg(bfqg)->parent;
                                             ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c: In function ‘bfqg_stats_update_io_add’:
block/bfq-cgroup.c:209:2: error: implicit declaration of function ‘blkg_rwstat_add’ [-Werror=implicit-function-declaration]
  blkg_rwstat_add(&bfqg->stats.queued, rw, 1);
  ^
block/bfq-cgroup.c: In function ‘bfqg_stats_reset’:
block/bfq-cgroup.c:253:2: error: implicit declaration of function ‘blkg_rwstat_reset’ [-Werror=implicit-function-declaration]
  blkg_rwstat_reset(&stats->service_bytes);
  ^
block/bfq-cgroup.c:258:2: error: implicit declaration of function ‘blkg_stat_reset’ [-Werror=implicit-function-declaration]
  blkg_stat_reset(&stats->time);
  ^
block/bfq-cgroup.c: In function ‘bfqg_stats_merge’:
block/bfq-cgroup.c:275:2: error: implicit declaration of function ‘blkg_rwstat_merge’ [-Werror=implicit-function-declaration]
  blkg_rwstat_merge(&to->service_bytes, &from->service_bytes);
  ^
block/bfq-cgroup.c:280:2: error: implicit declaration of function ‘blkg_stat_merge’ [-Werror=implicit-function-declaration]
  blkg_stat_merge(&from->time, &from->time);
  ^
block/bfq-cgroup.c: In function ‘bfqg_stats_xfer_dead’:
block/bfq-cgroup.c:304:32: error: ‘struct blkcg_gq’ has no member named ‘q’
  lockdep_assert_held(bfqg_to_blkg(bfqg)->q->queue_lock);
                                ^
block/bfq-cgroup.c: In function ‘bfqg_stats_init’:
block/bfq-cgroup.c:333:2: error: implicit declaration of function ‘blkg_rwstat_init’ [-Werror=implicit-function-declaration]
  blkg_rwstat_init(&stats->service_bytes);
  ^
block/bfq-cgroup.c:340:2: error: implicit declaration of function ‘blkg_stat_init’ [-Werror=implicit-function-declaration]
  blkg_stat_init(&stats->sectors);
  ^
block/bfq-cgroup.c: In function ‘blkcg_to_bfqgd’:
block/bfq-cgroup.c:359:2: error: implicit declaration of function ‘blkcg_to_cpd’ [-Werror=implicit-function-declaration]
  return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq));
  ^
block/bfq-cgroup.c:359:22: warning: passing argument 1 of ‘cpd_to_bfqgd’ makes pointer from integer without a cast
  return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq));
                      ^
block/bfq-cgroup.c:352:31: note: expected ‘struct blkcg_policy_data *’ but argument is of type ‘int’
 static struct bfq_group_data *cpd_to_bfqgd(struct blkcg_policy_data *cpd)
                               ^
block/bfq-cgroup.c: In function ‘bfq_cpd_init’:
block/bfq-cgroup.c:365:21: error: ‘const struct blkcg’ has no member named ‘pd’
   cpd_to_bfqgd(blkcg->pd[blkcg_policy_bfq.plid]);
                     ^
block/bfq-cgroup.c:365:42: error: ‘struct blkcg_policy’ has no member named ‘plid’
   cpd_to_bfqgd(blkcg->pd[blkcg_policy_bfq.plid]);
                                          ^
block/bfq-cgroup.c: In function ‘bfq_pd_init’:
block/bfq-cgroup.c:373:30: error: ‘struct blkcg_gq’ has no member named ‘q’
  struct bfq_data *bfqd = blkg->q->elevator->elevator_data;
                              ^
block/bfq-cgroup.c:375:48: error: ‘struct blkcg_gq’ has no member named ‘blkcg’
  struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg);
                                                ^
block/bfq-cgroup.c: In function ‘bfqg_stat_pd_recursive_sum’:
block/bfq-cgroup.c:404:2: error: implicit declaration of function ‘blkg_stat_recursive_sum’ [-Werror=implicit-function-declaration]
  sum += blkg_stat_recursive_sum(pd, off);
  ^
block/bfq-cgroup.c: At top level:
block/bfq-cgroup.c:410:27: error: return type is an incomplete type
 static struct blkg_rwstat bfqg_rwstat_pd_recursive_sum(struct blkg_policy_data *pd,
                           ^
block/bfq-cgroup.c: In function ‘bfqg_rwstat_pd_recursive_sum’:
block/bfq-cgroup.c:413:21: error: storage size of ‘a’ isn’t known
  struct blkg_rwstat a, b;
                     ^
block/bfq-cgroup.c:413:24: error: storage size of ‘b’ isn’t known
  struct blkg_rwstat a, b;
                        ^
block/bfq-cgroup.c:415:2: error: implicit declaration of function ‘blkg_rwstat_recursive_sum’ [-Werror=implicit-function-declaration]
  a = blkg_rwstat_recursive_sum(pd, off);
  ^
block/bfq-cgroup.c:418:2: warning: ‘return’ with a value, in function returning void
  return a;
  ^
block/bfq-cgroup.c:413:24: warning: unused variable ‘b’ [-Wunused-variable]
  struct blkg_rwstat a, b;
                        ^
block/bfq-cgroup.c:413:21: warning: unused variable ‘a’ [-Wunused-variable]
  struct blkg_rwstat a, b;
                     ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c: In function ‘bfq_find_alloc_group’:
block/bfq-cgroup.c:453:16: error: ‘blkcg_root’ undeclared (first use in this function)
  if (blkcg == &blkcg_root) {
                ^
block/bfq-cgroup.c:453:16: note: each undeclared identifier is reported only once for each function it appears in
block/bfq-cgroup.c:458:3: error: implicit declaration of function ‘blkg_lookup_create’ [-Werror=implicit-function-declaration]
   blkg = blkg_lookup_create(blkcg, q);
   ^
block/bfq-cgroup.c:458:8: warning: assignment makes pointer from integer without a cast
   blkg = blkg_lookup_create(blkcg, q);
        ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c: In function ‘bfq_bic_update_cgroup’:
block/bfq-cgroup.c:601:12: error: ‘struct blkcg’ has no member named ‘css’
  id = blkcg->css.serial_nr;
            ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c: In function ‘bfqio_cgroup_weight_read’:
block/bfq-cgroup.c:779:9: error: implicit declaration of function ‘css_to_blkcg’ [-Werror=implicit-function-declaration]
  struct blkcg *blkcg = css_to_blkcg(css);
         ^
block/bfq-cgroup.c:779:24: warning: initialization makes pointer from integer without a cast
  struct blkcg *blkcg = css_to_blkcg(css);
                        ^
block/bfq-cgroup.c:783:22: error: ‘struct blkcg’ has no member named ‘lock’
  spin_lock_irq(&blkcg->lock);
                      ^
block/bfq-cgroup.c:785:24: error: ‘struct blkcg’ has no member named ‘lock’
  spin_unlock_irq(&blkcg->lock);
                        ^
block/bfq-cgroup.c: In function ‘bfqio_cgroup_weight_write’:
block/bfq-cgroup.c:794:24: warning: initialization makes pointer from integer without a cast
  struct blkcg *blkcg = css_to_blkcg(css);
                        ^
block/bfq-cgroup.c:803:22: error: ‘struct blkcg’ has no member named ‘lock’
  spin_lock_irq(&blkcg->lock);
                      ^
block/bfq-cgroup.c:805:31: error: ‘struct blkcg’ has no member named ‘blkg_list’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                               ^
block/bfq-cgroup.c:805:70: error: ‘struct blkcg’ has no member named ‘blkg_list’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                      ^
block/bfq-cgroup.c:805:141: error: ‘struct blkcg_gq’ has no member named ‘blkcg_node’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                             ^
block/bfq-cgroup.c:805:166: warning: initialization makes pointer from integer without a cast
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                      ^
block/bfq-cgroup.c:805:215: error: ‘struct blkcg_gq’ has no member named ‘blkcg_node’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                                                                       ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c:805:316: error: ‘struct blkcg_gq’ has no member named ‘blkcg_node’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                                                                                                                                                                            ^
block/bfq-cgroup.c:805:352: error: ‘struct blkcg_gq’ has no member named ‘blkcg_node’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                                                                                                                                                                                                                ^
block/bfq-cgroup.c:805:421: error: ‘struct blkcg_gq’ has no member named ‘blkcg_node’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
block/bfq-cgroup.c:805:446: warning: initialization makes pointer from integer without a cast
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
block/bfq-cgroup.c:805:495: error: ‘struct blkcg_gq’ has no member named ‘blkcg_node’
  hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
In file included from block/bfq-iosched.c:173:0:
block/bfq-cgroup.c:836:24: error: ‘struct blkcg’ has no member named ‘lock’
  spin_unlock_irq(&blkcg->lock);
                        ^
block/bfq-cgroup.c: In function ‘bfqg_print_stat’:
block/bfq-cgroup.c:843:2: error: implicit declaration of function ‘blkcg_print_blkgs’ [-Werror=implicit-function-declaration]
  blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)), blkg_prfill_stat,
  ^
block/bfq-cgroup.c:843:51: error: ‘blkg_prfill_stat’ undeclared (first use in this function)
  blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)), blkg_prfill_stat,
                                                   ^
block/bfq-cgroup.c: In function ‘bfqg_print_rwstat’:
block/bfq-cgroup.c:850:51: error: ‘blkg_prfill_rwstat’ undeclared (first use in this function)
  blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)), blkg_prfill_rwstat,
                                                   ^
block/bfq-cgroup.c: In function ‘bfqg_prfill_stat_recursive’:
block/bfq-cgroup.c:860:2: error: implicit declaration of function ‘__blkg_prfill_u64’ [-Werror=implicit-function-declaration]
  return __blkg_prfill_u64(sf, pd, sum);
  ^
block/bfq-cgroup.c: In function ‘bfqg_prfill_rwstat_recursive’:
block/bfq-cgroup.c:866:9: error: variable ‘sum’ has initializer but incomplete type
  struct blkg_rwstat sum = bfqg_rwstat_pd_recursive_sum(pd, off);
         ^
block/bfq-cgroup.c:866:21: error: storage size of ‘sum’ isn’t known
  struct blkg_rwstat sum = bfqg_rwstat_pd_recursive_sum(pd, off);
                     ^
block/bfq-cgroup.c:868:2: error: implicit declaration of function ‘__blkg_prfill_rwstat’ [-Werror=implicit-function-declaration]
  return __blkg_prfill_rwstat(sf, pd, &sum);
  ^
block/bfq-cgroup.c:866:21: warning: unused variable ‘sum’ [-Wunused-variable]
  struct blkg_rwstat sum = bfqg_rwstat_pd_recursive_sum(pd, off);
                     ^
block/bfq-cgroup.c: In function ‘bfqg_prfill_avg_queue_size’:
block/bfq-cgroup.c:891:2: error: implicit declaration of function ‘blkg_stat_read’ [-Werror=implicit-function-declaration]
  u64 samples = blkg_stat_read(&bfqg->stats.avg_queue_size_samples);
  ^
block/bfq-cgroup.c: In function ‘bfq_create_group_hierarchy’:
block/bfq-cgroup.c:919:40: error: ‘struct request_queue’ has no member named ‘root_blkg’
         return blkg_to_bfqg(bfqd->queue->root_blkg);
                                        ^
block/bfq-cgroup.c: At top level:
block/bfq-cgroup.c:1044:8: error: unknown field ‘pd_size’ specified in initializer
        .pd_size                = sizeof(struct bfq_group),
        ^
block/bfq-cgroup.c:1044:33: warning: excess elements in struct initializer
        .pd_size                = sizeof(struct bfq_group),
                                 ^
block/bfq-cgroup.c:1044:33: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c:1045:8: error: unknown field ‘cpd_size’ specified in initializer
        .cpd_size               = sizeof(struct bfq_group_data),
        ^
block/bfq-cgroup.c:1045:34: warning: excess elements in struct initializer
        .cpd_size               = sizeof(struct bfq_group_data),
                                  ^
block/bfq-cgroup.c:1045:34: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c:1046:8: error: unknown field ‘cftypes’ specified in initializer
        .cftypes                = bfqio_files,
        ^
block/bfq-cgroup.c:1046:8: warning: excess elements in struct initializer
block/bfq-cgroup.c:1046:8: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c:1047:8: error: unknown field ‘pd_init_fn’ specified in initializer
        .pd_init_fn             = bfq_pd_init,
        ^
block/bfq-cgroup.c:1047:8: warning: excess elements in struct initializer
block/bfq-cgroup.c:1047:8: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c:1048:8: error: unknown field ‘cpd_init_fn’ specified in initializer
        .cpd_init_fn            = bfq_cpd_init,
        ^
block/bfq-cgroup.c:1048:8: warning: excess elements in struct initializer
block/bfq-cgroup.c:1048:8: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c:1049:8: error: unknown field ‘pd_offline_fn’ specified in initializer
        .pd_offline_fn          = bfq_pd_offline,
        ^
block/bfq-cgroup.c:1049:8: warning: excess elements in struct initializer
block/bfq-cgroup.c:1049:8: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c:1050:8: error: unknown field ‘pd_reset_stats_fn’ specified in initializer
        .pd_reset_stats_fn      = bfq_pd_reset_stats,
        ^
block/bfq-cgroup.c:1050:8: warning: excess elements in struct initializer
block/bfq-cgroup.c:1050:8: warning: (near initialization for ‘blkcg_policy_bfq’)
block/bfq-cgroup.c: In function ‘bfq_create_group_hierarchy’:
block/bfq-cgroup.c:920:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target 'block/bfq-iosched.o' failed
make[1]: *** [block/bfq-iosched.o] Error 1
Makefile:949: recipe for target 'block' failed
make: *** [block] Error 2
make: *** Waiting for unfinished jobs....

Activity

  1. heftig commented on Nov 3, 2015

    @heftig

    Seems to be a Kconfig issue - BFQ_GROUP_IOSCHED needs to depend on BLK_CGROUP. Disable the former or enable the latter.

    Please also report this to the BFQ authors at https://groups.google.com/forum/#!forum/bfq-iosched.

  2. added a commit that references this issue on May 19, 2018
  3. 5 remaining items

  4. added a commit that references this issue on Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions