[hare-scsi-devel:blk-namespace.v2 5/6] block/genhd.c:946:25: error: 'user_ns_type_operations' undeclared; did you mean 'kobj_ns_type_operations'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git blk-namespace.v2
head: 292c56144bc8965fbf622e63bda66cc40deeac87
commit: eddd528a51cc0838c23fd1436b6d880ccc66ac45 [5/6] block: user namespace support
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel blk-namespace.v2
git checkout eddd528a51cc0838c23fd1436b6d880ccc66ac45
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
block/genhd.c: In function 'genhd_device_init':
>> block/genhd.c:946:25: error: 'user_ns_type_operations' undeclared (first use in this function); did you mean 'kobj_ns_type_operations'?
946 | kobj_ns_type_register(&user_ns_type_operations);
| ^~~~~~~~~~~~~~~~~~~~~~~
| kobj_ns_type_operations
block/genhd.c:946:25: note: each undeclared identifier is reported only once for each function it appears in
block/genhd.c: At top level:
>> block/genhd.c:1212:14: error: 'user_ns_type_operations' undeclared here (not in a function); did you mean 'kobj_ns_type_operations'?
1212 | .ns_type = &user_ns_type_operations,
| ^~~~~~~~~~~~~~~~~~~~~~~
| kobj_ns_type_operations
>> block/genhd.c:1213:15: error: 'block_class_user_namespace' undeclared here (not in a function)
1213 | .namespace = block_class_user_namespace,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> block/genhd.c:1214:19: error: 'block_class_get_ownership' undeclared here (not in a function); did you mean 'kobject_get_ownership'?
1214 | .get_ownership = block_class_get_ownership,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| kobject_get_ownership
vim +946 block/genhd.c
939
940 static int __init genhd_device_init(void)
941 {
942 int error;
943
944 block_class.dev_kobj = sysfs_dev_block_kobj;
945 #ifdef CONFIG_BLK_DEV_USER_NS
> 946 kobj_ns_type_register(&user_ns_type_operations);
947 #endif
948 error = class_register(&block_class);
949 if (unlikely(error))
950 return error;
951 blk_dev_init();
952
953 register_blkdev(BLOCK_EXT_MAJOR, "blkext");
954
955 /* create top-level block dir */
956 if (!sysfs_deprecated)
957 block_depr = kobject_create_and_add("block", NULL);
958 return 0;
959 }
960
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 40/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:993:47: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 94e13c2880167751eb5cbbcb0e7be68ca83f0653 [40/1142] dmaengine: dw-axi-dma: support cyclic mode
config: powerpc-randconfig-s031-20210610 (attached as .config)
compiler: powerpc-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-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/94e13c2880167751eb5cbbcb0...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 94e13c2880167751eb5cbbcb0e7be68ca83f0653
# 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__' W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:993:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] block_ts_lo @@ got unsigned int @@
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:993:47: sparse: expected restricted __le32 [usertype] block_ts_lo
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:993:47: sparse: got unsigned int
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1068:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] block_ts_lo @@ got unsigned int @@
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1068:55: sparse: expected restricted __le32 [usertype] block_ts_lo
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1068:55: sparse: got unsigned int
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1070:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] block_ts_lo @@ got unsigned int @@
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1070:55: sparse: expected restricted __le32 [usertype] block_ts_lo
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1070:55: sparse: got unsigned int
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1169:59: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] irq_mask @@ got restricted __le32 [usertype] status_lo @@
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1169:59: sparse: expected unsigned int [usertype] irq_mask
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1169:59: sparse: got restricted __le32 [usertype] status_lo
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1170:42: sparse: sparse: invalid assignment: |=
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1170:42: sparse: left side has type restricted __le32
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1170:42: sparse: right side has type unsigned long
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:1111:22: sparse: sparse: context imbalance in 'axi_chan_handle_err' - different lock contexts for basic block
vim +993 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
912
913 static struct dma_async_tx_descriptor *
914 dw_chan_prep_dma_cyclic(struct dma_chan *dchan, dma_addr_t buf_addr,
915 size_t buf_len, size_t period_len,
916 enum dma_transfer_direction direction,
917 unsigned long flags)
918 {
919 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan);
920 struct axi_dma_desc *first = NULL, *prev = NULL;
921 unsigned int reg_width;
922 unsigned int mem_width;
923 unsigned int data_width = BIT(chan->chip->dw->hdata->m_data_width);
924 dma_addr_t reg;
925 u32 reg_value = 0;
926 unsigned int i = 0;
927 u32 ctllo, ctlhi;
928 size_t total_len = 0;
929 size_t block_ts, max_block_ts;
930 u8 lms = 0; // Select AXI0 master for LLI fetching
931 u32 offset;
932
933 if (unlikely(!is_slave_direction(direction)))
934 return NULL;
935
936 chan->direction = direction;
937 chan->cyclic = 0x1;
938
939 max_block_ts = chan->chip->dw->hdata->block_size[chan->id];
940
941 axi_set_hw_channel(chan->chip, chan->hw_hs_num);
942
943 switch (direction) {
944 case DMA_MEM_TO_DEV:
945 reg_width = __ffs(chan->slave_config.dst_addr_width);
946
947 chan->reg_width = reg_width;
948 if (reg_width == DWAXIDMAC_TRANS_WIDTH_16) {
949 offset = DMAC_APB_HALFWORD_WR_CH_EN;
950 reg_value = axi_dma_apb_ioread32(chan->chip, offset);
951 reg_value |= 0x1 << chan->id;
952 axi_dma_apb_iowrite32(chan->chip,
953 DMAC_APB_HALFWORD_WR_CH_EN, reg_value);
954 } else if (reg_width == DWAXIDMAC_TRANS_WIDTH_8) {
955 offset = DMAC_APB_BYTE_WR_CH_EN;
956 reg_value = axi_dma_apb_ioread32(chan->chip, offset);
957 reg_value |= 0x1 << chan->id;
958 axi_dma_apb_iowrite32(chan->chip, offset, reg_value);
959 }
960 reg = chan->slave_config.dst_addr;
961
962 ctllo = axi_dma_prepare_ctllo(chan) |
963 reg_width << CH_CTL_L_DST_WIDTH_POS |
964 DWAXIDMAC_CH_CTL_L_NOINC << CH_CTL_L_DST_INC_POS |
965 DWAXIDMAC_CH_CTL_L_INC << CH_CTL_L_SRC_INC_POS;
966
967 for (i = 0; i < buf_len / period_len; i++) {
968 struct axi_dma_desc *desc;
969 size_t xfer_len;
970 u32 mem, len;
971
972 mem_width = __ffs(data_width | mem | len);
973 if (mem_width > DWAXIDMAC_TRANS_WIDTH_32)
974 mem_width = DWAXIDMAC_TRANS_WIDTH_32;
975
976 xfer_len = period_len;
977 block_ts = period_len;
978
979 desc = axi_desc_get(chan);
980 if (unlikely(!desc))
981 goto err_desc_get;
982
983 if (block_ts > max_block_ts) {
984 block_ts = max_block_ts;
985 xfer_len = max_block_ts << mem_width;
986 }
987
988 ctlhi = axi_dma_prepare_ctlhi(chan);
989
990 ctllo |= mem_width << CH_CTL_L_SRC_WIDTH_POS;
991 write_desc_sar(desc, buf_addr + i * period_len);
992 write_desc_dar(desc, reg);
> 993 desc->lli.block_ts_lo = period_len / 4;
994 desc->lli.ctl_hi = cpu_to_le32(ctlhi);
995 desc->lli.ctl_lo = cpu_to_le32(ctllo);
996
997 set_desc_src_master(desc);
998 set_desc_src_master(desc);
999
1000 // Manage transfer list (xfer_list)
1001 if (!first) {
1002 first = desc;
1003 } else {
1004 write_desc_llp(prev, desc->vd.tx.phys | lms);
1005 list_add_tail(&desc->xfer_list,
1006 &first->xfer_list);
1007 }
1008 prev = desc;
1009 if (i == ((buf_len / period_len) - 1))
1010 write_desc_llp(prev, first->vd.tx.phys | lms);
1011
1012 total_len += xfer_len;
1013
1014 set_desc_last(desc);
1015 }
1016 break;
1017 case DMA_DEV_TO_MEM:
1018 reg_width = __ffs(chan->slave_config.src_addr_width);
1019
1020 chan->reg_width = reg_width;
1021 if (reg_width == DWAXIDMAC_TRANS_WIDTH_16) {
1022 offset = DMAC_APB_HALFWORD_WR_CH_EN;
1023 reg_value = axi_dma_apb_ioread32(chan->chip, offset);
1024 reg_value |= 0x1 << chan->id;
1025 axi_dma_apb_iowrite32(chan->chip, offset, reg_value);
1026 } else if (reg_width == DWAXIDMAC_TRANS_WIDTH_8) {
1027 offset = DMAC_APB_BYTE_WR_CH_EN;
1028 reg_value = axi_dma_apb_ioread32(chan->chip, offset);
1029 reg_value |= 0x1 << chan->id;
1030 axi_dma_apb_iowrite32(chan->chip, offset, reg_value);
1031 }
1032 reg = chan->slave_config.src_addr;
1033 if (reg_width > DWAXIDMAC_TRANS_WIDTH_32)
1034 reg_width = DWAXIDMAC_TRANS_WIDTH_32;
1035 ctllo = axi_dma_prepare_ctllo(chan) |
1036 reg_width << CH_CTL_L_SRC_WIDTH_POS |
1037 DWAXIDMAC_CH_CTL_L_INC << CH_CTL_L_DST_INC_POS |
1038 // Workaround
1039 DWAXIDMAC_CH_CTL_L_NOINC << CH_CTL_L_SRC_INC_POS;
1040
1041 for (i = 0; i < buf_len / period_len; i++) {
1042 struct axi_dma_desc *desc;
1043 size_t xfer_len;
1044 u32 mem, len;
1045
1046 desc = axi_desc_get(chan);
1047 if (unlikely(!desc))
1048 goto err_desc_get;
1049
1050 xfer_len = len;
1051 block_ts = xfer_len >> reg_width;
1052 if (block_ts > max_block_ts) {
1053 block_ts = max_block_ts;
1054 xfer_len = max_block_ts << reg_width;
1055 }
1056 xfer_len = period_len;
1057 block_ts = period_len;
1058 mem_width = __ffs(data_width | mem | xfer_len);
1059 if (mem_width > DWAXIDMAC_TRANS_WIDTH_32)
1060 mem_width = DWAXIDMAC_TRANS_WIDTH_32;
1061
1062 ctlhi = axi_dma_prepare_ctlhi(chan);
1063 ctllo |= mem_width << CH_CTL_L_DST_WIDTH_POS;
1064
1065 write_desc_sar(desc, reg);
1066 write_desc_dar(desc, buf_addr + i * period_len);
1067 if (reg_width == DWAXIDMAC_TRANS_WIDTH_16)
1068 desc->lli.block_ts_lo = period_len / 2;
1069 else if (reg_width >= DWAXIDMAC_TRANS_WIDTH_32)
1070 desc->lli.block_ts_lo = period_len / 4;
1071 desc->lli.ctl_hi = cpu_to_le32(ctlhi);
1072 desc->lli.ctl_lo = cpu_to_le32(ctllo);
1073
1074 set_desc_src_master(desc);
1075 set_desc_src_master(desc);
1076
1077 // Manage transfer list (xfer_list)
1078 if (!first) {
1079 first = desc;
1080 } else {
1081 write_desc_llp(prev, desc->vd.tx.phys | lms);
1082 list_add_tail(&desc->xfer_list,
1083 &first->xfer_list);
1084 }
1085 prev = desc;
1086 if (i == ((buf_len / period_len) - 1))
1087 write_desc_llp(prev, first->vd.tx.phys | lms);
1088
1089 total_len += xfer_len;
1090
1091 // TODO: check if needed
1092 set_desc_last(desc);
1093 }
1094 break;
1095 default:
1096 return NULL;
1097 }
1098
1099 if (unlikely(!first))
1100 return NULL;
1101
1102 return vchan_tx_prep(&chan->vc, &first->vd, flags);
1103
1104 err_desc_get:
1105 if (first)
1106 axi_desc_put(first);
1107
1108 return NULL;
1109 }
1110
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[jirislaby:devel 87/125] include/linux/tty_flip.h:21:30: error: dereferencing pointer to incomplete type 'struct tty_port'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 6166e1ec07e0a856bfca48f27886bc1868e3fd3f
commit: b7b354583b26f640dae6e9d138ace1d94e218217 [87/125] amiserial: pack and sort includes
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout b7b354583b26f640dae6e9d138ace1d94e218217
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/tty/amiserial.c:59:
>> include/linux/tty_flip.h:5:40: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
5 | extern int tty_buffer_set_limit(struct tty_port *port, int limit);
| ^~~~~~~~
include/linux/tty_flip.h:6:51: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
6 | extern unsigned int tty_buffer_space_avail(struct tty_port *port);
| ^~~~~~~~
include/linux/tty_flip.h:7:43: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
7 | extern int tty_buffer_request_room(struct tty_port *port, size_t size);
| ^~~~~~~~
include/linux/tty_flip.h:8:48: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
8 | extern int tty_insert_flip_string_flags(struct tty_port *port,
| ^~~~~~~~
include/linux/tty_flip.h:10:53: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
10 | extern int tty_insert_flip_string_fixed_flag(struct tty_port *port,
| ^~~~~~~~
include/linux/tty_flip.h:12:43: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
12 | extern int tty_prepare_flip_string(struct tty_port *port,
| ^~~~~~~~
include/linux/tty_flip.h:14:41: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
14 | extern void tty_flip_buffer_push(struct tty_port *port);
| ^~~~~~~~
include/linux/tty_flip.h:15:31: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
15 | void tty_schedule_flip(struct tty_port *port);
| ^~~~~~~~
include/linux/tty_flip.h:16:35: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
16 | int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag);
| ^~~~~~~~
include/linux/tty_flip.h:18:47: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
18 | static inline int tty_insert_flip_char(struct tty_port *port,
| ^~~~~~~~
include/linux/tty_flip.h: In function 'tty_insert_flip_char':
>> include/linux/tty_flip.h:21:30: error: dereferencing pointer to incomplete type 'struct tty_port'
21 | struct tty_buffer *tb = port->buf.tail;
| ^~
>> include/linux/tty_flip.h:24:14: error: dereferencing pointer to incomplete type 'struct tty_buffer'
24 | change = (tb->flags & TTYB_NORMAL) && (flag != TTY_NORMAL);
| ^~
>> include/linux/tty_flip.h:24:24: error: 'TTYB_NORMAL' undeclared (first use in this function); did you mean 'TASK_NORMAL'?
24 | change = (tb->flags & TTYB_NORMAL) && (flag != TTY_NORMAL);
| ^~~~~~~~~~~
| TASK_NORMAL
include/linux/tty_flip.h:24:24: note: each undeclared identifier is reported only once for each function it appears in
>> include/linux/tty_flip.h:24:49: error: 'TTY_NORMAL' undeclared (first use in this function); did you mean 'TASK_NORMAL'?
24 | change = (tb->flags & TTYB_NORMAL) && (flag != TTY_NORMAL);
| ^~~~~~~~~~
| TASK_NORMAL
>> include/linux/tty_flip.h:27:5: error: implicit declaration of function 'flag_buf_ptr' [-Werror=implicit-function-declaration]
27 | *flag_buf_ptr(tb, tb->used) = flag;
| ^~~~~~~~~~~~
>> include/linux/tty_flip.h:28:4: error: implicit declaration of function 'char_buf_ptr' [-Werror=implicit-function-declaration]
28 | *char_buf_ptr(tb, tb->used++) = ch;
| ^~~~~~~~~~~~
>> include/linux/tty_flip.h:31:32: error: passing argument 1 of '__tty_insert_flip_char' from incompatible pointer type [-Werror=incompatible-pointer-types]
31 | return __tty_insert_flip_char(port, ch, flag);
| ^~~~
| |
| struct tty_port *
include/linux/tty_flip.h:16:45: note: expected 'struct tty_port *' but argument is of type 'struct tty_port *'
16 | int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag);
| ~~~~~~~~~~~~~~~~~^~~~
include/linux/tty_flip.h: At top level:
include/linux/tty_flip.h:34:49: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
34 | static inline int tty_insert_flip_string(struct tty_port *port,
| ^~~~~~~~
include/linux/tty_flip.h: In function 'tty_insert_flip_string':
include/linux/tty_flip.h:37:56: error: 'TTY_NORMAL' undeclared (first use in this function); did you mean 'TASK_NORMAL'?
37 | return tty_insert_flip_string_fixed_flag(port, chars, TTY_NORMAL, size);
| ^~~~~~~~~~
| TASK_NORMAL
>> include/linux/tty_flip.h:37:43: error: passing argument 1 of 'tty_insert_flip_string_fixed_flag' from incompatible pointer type [-Werror=incompatible-pointer-types]
37 | return tty_insert_flip_string_fixed_flag(port, chars, TTY_NORMAL, size);
| ^~~~
| |
| struct tty_port *
include/linux/tty_flip.h:10:63: note: expected 'struct tty_port *' but argument is of type 'struct tty_port *'
10 | extern int tty_insert_flip_string_fixed_flag(struct tty_port *port,
| ~~~~~~~~~~~~~~~~~^~~~
include/linux/tty_flip.h: At top level:
include/linux/tty_flip.h:40:46: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
40 | extern void tty_buffer_lock_exclusive(struct tty_port *port);
| ^~~~~~~~
include/linux/tty_flip.h:41:48: warning: 'struct tty_port' declared inside parameter list will not be visible outside of this definition or declaration
41 | extern void tty_buffer_unlock_exclusive(struct tty_port *port);
| ^~~~~~~~
In file included from drivers/tty/amiserial.c:60:
>> include/linux/tty.h:51:30: error: conflicting types for 'char_buf_ptr'
51 | static inline unsigned char *char_buf_ptr(struct tty_buffer *b, int ofs)
| ^~~~~~~~~~~~
In file included from drivers/tty/amiserial.c:59:
include/linux/tty_flip.h:28:4: note: previous implicit declaration of 'char_buf_ptr' was here
28 | *char_buf_ptr(tb, tb->used++) = ch;
| ^~~~~~~~~~~~
In file included from drivers/tty/amiserial.c:60:
>> include/linux/tty.h:56:21: error: conflicting types for 'flag_buf_ptr'
56 | static inline char *flag_buf_ptr(struct tty_buffer *b, int ofs)
| ^~~~~~~~~~~~
In file included from drivers/tty/amiserial.c:59:
include/linux/tty_flip.h:27:5: note: previous implicit declaration of 'flag_buf_ptr' was here
27 | *flag_buf_ptr(tb, tb->used) = flag;
| ^~~~~~~~~~~~
drivers/tty/amiserial.c: In function 'receive_chars':
>> drivers/tty/amiserial.c:258:23: error: passing argument 1 of 'tty_insert_flip_char' from incompatible pointer type [-Werror=incompatible-pointer-types]
258 | tty_insert_flip_char(&info->tport, ch, flag);
| ^~~~~~~~~~~~
| |
| struct tty_port *
In file included from drivers/tty/amiserial.c:59:
include/linux/tty_flip.h:18:57: note: expected 'struct tty_port *' but argument is of type 'struct tty_port *'
18 | static inline int tty_insert_flip_char(struct tty_port *port,
| ~~~~~~~~~~~~~~~~~^~~~
drivers/tty/amiserial.c:260:24: error: passing argument 1 of 'tty_insert_flip_char' from incompatible pointer type [-Werror=incompatible-pointer-types]
260 | tty_insert_flip_char(&info->tport, 0, TTY_OVERRUN);
| ^~~~~~~~~~~~
| |
| struct tty_port *
In file included from drivers/tty/amiserial.c:59:
include/linux/tty_flip.h:18:57: note: expected 'struct tty_port *' but argument is of type 'struct tty_port *'
18 | static inline int tty_insert_flip_char(struct tty_port *port,
| ~~~~~~~~~~~~~~~~~^~~~
>> drivers/tty/amiserial.c:261:23: error: passing argument 1 of 'tty_flip_buffer_push' from incompatible pointer type [-Werror=incompatible-pointer-types]
261 | tty_flip_buffer_push(&info->tport);
| ^~~~~~~~~~~~
| |
| struct tty_port *
In file included from drivers/tty/amiserial.c:59:
include/linux/tty_flip.h:14:51: note: expected 'struct tty_port *' but argument is of type 'struct tty_port *'
14 | extern void tty_flip_buffer_push(struct tty_port *port);
| ~~~~~~~~~~~~~~~~~^~~~
drivers/tty/amiserial.c: In function 'shutdown':
drivers/tty/amiserial.c:522:23: warning: variable 'state' set but not used [-Wunused-but-set-variable]
522 | struct serial_state *state;
| ^~~~~
cc1: some warnings being treated as errors
vim +21 include/linux/tty_flip.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 4
4d18e6eff81e1d Peter Hurley 2013-11-22 @5 extern int tty_buffer_set_limit(struct tty_port *port, int limit);
9a33fbf9d23034 Jiri Slaby 2021-05-05 6 extern unsigned int tty_buffer_space_avail(struct tty_port *port);
227434f8986c38 Jiri Slaby 2013-01-03 7 extern int tty_buffer_request_room(struct tty_port *port, size_t size);
2f69335710884a Jiri Slaby 2013-01-03 8 extern int tty_insert_flip_string_flags(struct tty_port *port,
2f69335710884a Jiri Slaby 2013-01-03 9 const unsigned char *chars, const char *flags, size_t size);
2f69335710884a Jiri Slaby 2013-01-03 10 extern int tty_insert_flip_string_fixed_flag(struct tty_port *port,
2f69335710884a Jiri Slaby 2013-01-03 11 const unsigned char *chars, char flag, size_t size);
2f69335710884a Jiri Slaby 2013-01-03 12 extern int tty_prepare_flip_string(struct tty_port *port,
2f69335710884a Jiri Slaby 2013-01-03 13 unsigned char **chars, size_t size);
2e124b4a390ca8 Jiri Slaby 2013-01-03 14 extern void tty_flip_buffer_push(struct tty_port *port);
6732c8bb8671ac Jiri Slaby 2013-01-03 15 void tty_schedule_flip(struct tty_port *port);
979990c6284814 Arnd Bergmann 2017-06-20 16 int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag);
33f0f88f1c51ae Alan Cox 2006-01-09 17
92a19f9cec9a80 Jiri Slaby 2013-01-03 18 static inline int tty_insert_flip_char(struct tty_port *port,
^1da177e4c3f41 Linus Torvalds 2005-04-16 19 unsigned char ch, char flag)
^1da177e4c3f41 Linus Torvalds 2005-04-16 20 {
92a19f9cec9a80 Jiri Slaby 2013-01-03 @21 struct tty_buffer *tb = port->buf.tail;
acc0f67f307f52 Peter Hurley 2013-12-09 22 int change;
acc0f67f307f52 Peter Hurley 2013-12-09 23
acc0f67f307f52 Peter Hurley 2013-12-09 @24 change = (tb->flags & TTYB_NORMAL) && (flag != TTY_NORMAL);
acc0f67f307f52 Peter Hurley 2013-12-09 25 if (!change && tb->used < tb->size) {
acc0f67f307f52 Peter Hurley 2013-12-09 26 if (~tb->flags & TTYB_NORMAL)
1fc359fc3ea723 Peter Hurley 2013-06-15 @27 *flag_buf_ptr(tb, tb->used) = flag;
1fc359fc3ea723 Peter Hurley 2013-06-15 @28 *char_buf_ptr(tb, tb->used++) = ch;
33f0f88f1c51ae Alan Cox 2006-01-09 29 return 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 30 }
979990c6284814 Arnd Bergmann 2017-06-20 @31 return __tty_insert_flip_char(port, ch, flag);
^1da177e4c3f41 Linus Torvalds 2005-04-16 32 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 33
05c7cd39907184 Jiri Slaby 2013-01-03 34 static inline int tty_insert_flip_string(struct tty_port *port,
05c7cd39907184 Jiri Slaby 2013-01-03 35 const unsigned char *chars, size_t size)
2832fc11f13606 Alan Cox 2010-02-18 36 {
05c7cd39907184 Jiri Slaby 2013-01-03 @37 return tty_insert_flip_string_fixed_flag(port, chars, TTY_NORMAL, size);
2832fc11f13606 Alan Cox 2010-02-18 38 }
2832fc11f13606 Alan Cox 2010-02-18 39
:::::: The code at line 21 was first introduced by commit
:::::: 92a19f9cec9a80ad93c06e115822deb729e2c6ad TTY: switch tty_insert_flip_char
:::::: TO: Jiri Slaby <jslaby(a)suse.cz>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/irqchip/irq-xilinx-intc.c:127:14: warning: no previous prototype for 'xintc_get_irq'
by kernel test robot
Hi Robert,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cd1245d75ce93b8fd206f4b34eb58bcfe156d5e9
commit: debf69cfd4c618c7036a13cc4edd1faf87ce7d53 irqchip/xilinx: Expose Kconfig option for Zynq/ZynqMP
date: 7 weeks ago
config: arm-randconfig-r032-20210610 (attached as .config)
compiler: arm-linux-gnueabi-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/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout debf69cfd4c618c7036a13cc4edd1faf87ce7d53
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/irqchip/irq-xilinx-intc.c:127:14: warning: no previous prototype for 'xintc_get_irq' [-Wmissing-prototypes]
127 | unsigned int xintc_get_irq(void)
| ^~~~~~~~~~~~~
vim +/xintc_get_irq +127 drivers/irqchip/irq-xilinx-intc.c
67862a3c47fcfc Mubin Sayyed 2020-03-17 126
4cea749d56bec9 Marc Zyngier 2020-03-30 @127 unsigned int xintc_get_irq(void)
4cea749d56bec9 Marc Zyngier 2020-03-30 128 {
4cea749d56bec9 Marc Zyngier 2020-03-30 129 unsigned int irq = -1;
4cea749d56bec9 Marc Zyngier 2020-03-30 130 u32 hwirq;
4cea749d56bec9 Marc Zyngier 2020-03-30 131
4cea749d56bec9 Marc Zyngier 2020-03-30 132 hwirq = xintc_read(primary_intc, IVR);
4cea749d56bec9 Marc Zyngier 2020-03-30 133 if (hwirq != -1U)
4cea749d56bec9 Marc Zyngier 2020-03-30 134 irq = irq_find_mapping(primary_intc->root_domain, hwirq);
4cea749d56bec9 Marc Zyngier 2020-03-30 135
4cea749d56bec9 Marc Zyngier 2020-03-30 136 pr_debug("irq-xilinx: hwirq=%d, irq=%d\n", hwirq, irq);
4cea749d56bec9 Marc Zyngier 2020-03-30 137
4cea749d56bec9 Marc Zyngier 2020-03-30 138 return irq;
4cea749d56bec9 Marc Zyngier 2020-03-30 139 }
4cea749d56bec9 Marc Zyngier 2020-03-30 140
:::::: The code at line 127 was first introduced by commit
:::::: 4cea749d56bec9409f3bd126d2b2f949dc6c66e2 Revert "irqchip/xilinx: Enable generic irq multi handler"
:::::: TO: Marc Zyngier <maz(a)kernel.org>
:::::: CC: Marc Zyngier <maz(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/preempt-rt 7040/16579] arch/arm/mach-imx/cpuidle-imx6q.c:65:32: error: 'struct cpuidle_state' has no member named 'disabled'
by kernel test robot
Hi Rafael,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: b428b2464d25f05987f834bbd84273b8d6859495
commit: 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611 [7040/16579] cpuidle: Drop disabled field from struct cpuidle_state
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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/intel/linux-intel-lts/commit/8bfaf7ab474ef5a95f5bd6a87...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
arch/arm/mach-imx/cpuidle-imx6q.c: In function 'imx6q_cpuidle_fec_irqs_used':
>> arch/arm/mach-imx/cpuidle-imx6q.c:65:32: error: 'struct cpuidle_state' has no member named 'disabled'
65 | imx6q_cpuidle_driver.states[1].disabled = true;
| ^
arch/arm/mach-imx/cpuidle-imx6q.c: In function 'imx6q_cpuidle_fec_irqs_unused':
arch/arm/mach-imx/cpuidle-imx6q.c:71:32: error: 'struct cpuidle_state' has no member named 'disabled'
71 | imx6q_cpuidle_driver.states[1].disabled = false;
| ^
--
arch/arm/mach-tegra/cpuidle-tegra20.c: In function 'tegra20_cpuidle_pcie_irqs_in_use':
>> arch/arm/mach-tegra/cpuidle-tegra20.c:206:29: error: 'struct cpuidle_state' has no member named 'disabled'
206 | tegra_idle_driver.states[1].disabled = true;
| ^
vim +65 arch/arm/mach-imx/cpuidle-imx6q.c
12bb344074cfc5 Shawn Guo 2012-12-04 56
29380905565655 Lucas Stach 2016-06-03 57 /*
29380905565655 Lucas Stach 2016-06-03 58 * i.MX6 Q/DL has an erratum (ERR006687) that prevents the FEC from waking the
29380905565655 Lucas Stach 2016-06-03 59 * CPUs when they are in wait(unclocked) state. As the hardware workaround isn't
29380905565655 Lucas Stach 2016-06-03 60 * applicable to all boards, disable the deeper idle state when the workaround
29380905565655 Lucas Stach 2016-06-03 61 * isn't present and the FEC is in use.
29380905565655 Lucas Stach 2016-06-03 62 */
29380905565655 Lucas Stach 2016-06-03 63 void imx6q_cpuidle_fec_irqs_used(void)
29380905565655 Lucas Stach 2016-06-03 64 {
29380905565655 Lucas Stach 2016-06-03 @65 imx6q_cpuidle_driver.states[1].disabled = true;
29380905565655 Lucas Stach 2016-06-03 66 }
2cb9caa4397405 Shawn Guo 2016-06-21 67 EXPORT_SYMBOL_GPL(imx6q_cpuidle_fec_irqs_used);
29380905565655 Lucas Stach 2016-06-03 68
:::::: The code at line 65 was first introduced by commit
:::::: 29380905565655bb797bf670a173bddb8e641da6 ARM: imx6: disable deeper idle states when FEC is active w/o HW workaround
:::::: TO: Lucas Stach <l.stach(a)pengutronix.de>
:::::: CC: Shawn Guo <shawnguo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[hare-scsi-devel:blk-namespace.v2 4/6] lib/kobject.c:125:4: error: implicit declaration of function 'kernfs_enable_init_ns_propagates'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git blk-namespace.v2
head: 292c56144bc8965fbf622e63bda66cc40deeac87
commit: 147e14e30cde27157d6794c149aa0eb10f578ff1 [4/6] kernfs: propagate devices from initial namespace
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel blk-namespace.v2
git checkout 147e14e30cde27157d6794c149aa0eb10f578ff1
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
lib/kobject.c: In function 'create_dir':
>> lib/kobject.c:125:4: error: implicit declaration of function 'kernfs_enable_init_ns_propagates' [-Werror=implicit-function-declaration]
125 | kernfs_enable_init_ns_propagates(kobj->sd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/kernfs_enable_init_ns_propagates +125 lib/kobject.c
82
83 static int create_dir(struct kobject *kobj)
84 {
85 const struct kobj_type *ktype = get_ktype(kobj);
86 const struct kobj_ns_type_operations *ops;
87 int error;
88
89 error = sysfs_create_dir_ns(kobj, kobject_namespace(kobj));
90 if (error)
91 return error;
92
93 error = populate_dir(kobj);
94 if (error) {
95 sysfs_remove_dir(kobj);
96 return error;
97 }
98
99 if (ktype) {
100 error = sysfs_create_groups(kobj, ktype->default_groups);
101 if (error) {
102 sysfs_remove_dir(kobj);
103 return error;
104 }
105 }
106
107 /*
108 * @kobj->sd may be deleted by an ancestor going away. Hold an
109 * extra reference so that it stays until @kobj is gone.
110 */
111 sysfs_get(kobj->sd);
112
113 /*
114 * If @kobj has ns_ops, its children need to be filtered based on
115 * their namespace tags. Enable namespace support on @kobj->sd.
116 */
117 ops = kobj_child_ns_ops(kobj);
118 if (ops) {
119 BUG_ON(ops->type <= KOBJ_NS_TYPE_NONE);
120 BUG_ON(ops->type >= KOBJ_NS_TYPES);
121 BUG_ON(!kobj_ns_type_registered(ops->type));
122
123 sysfs_enable_ns(kobj->sd, ops->type);
124 if (ops->initial_ns_propagates && ops->initial_ns_propagates())
> 125 kernfs_enable_init_ns_propagates(kobj->sd);
126 }
127
128 return 0;
129 }
130
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-linux-intel-lts:5.4/yocto 413/1142] drivers/pci/controller/dwc/pcie-keembay.c:799:2: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 4d568c88671a6778939cb0d961566f95e6ce18ad [413/1142] PCI: keembay: Changes to support VPU PCIe driver
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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/intel/linux-intel-lts/commit/4d568c88671a6778939cb0d96...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 4d568c88671a6778939cb0d961566f95e6ce18ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/pci/controller/dwc/pcie-keembay.c: In function 'keembay_pcie_probe':
>> drivers/pci/controller/dwc/pcie-keembay.c:799:2: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
799 | strncpy(pcie->stepping, "B0", strlen("B0"));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +799 drivers/pci/controller/dwc/pcie-keembay.c
749
750 static int keembay_pcie_probe(struct platform_device *pdev)
751 {
752 const struct keembay_pcie_of_data *data;
753 const struct of_device_id *match;
754 struct device *dev = &pdev->dev;
755 struct keembay_pcie *pcie;
756 struct dw_pcie *pci;
757 struct resource *res;
758 struct device_node *soc_node, *version_node;
759 enum dw_pcie_device_mode mode;
760 const char *prop;
761 int prop_size;
762 int ret;
763
764 match = of_match_device(keembay_pcie_of_match, dev);
765 if (!match)
766 return -EINVAL;
767
768 data = (struct keembay_pcie_of_data *)match->data;
769 mode = (enum dw_pcie_device_mode)data->mode;
770
771 pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL);
772 if (!pcie)
773 return -ENOMEM;
774
775 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL);
776 if (!pci)
777 return -ENOMEM;
778
779 pci->dev = dev;
780 pci->ops = &keembay_pcie_ops;
781
782 pcie->pci = pci;
783 pcie->mode = mode;
784
785 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "apb");
786 pcie->apb_base = devm_ioremap_resource(dev, res);
787 if (IS_ERR(pcie->apb_base))
788 return PTR_ERR(pcie->apb_base);
789
790 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
791 pci->dbi_base = devm_ioremap_resource(dev, res);
792 if (IS_ERR(pci->dbi_base))
793 return PTR_ERR(pci->dbi_base);
794
795 /* DBI2 shadow register */
796 pci->dbi_base2 = pci->dbi_base + PCIE_DBI2_MASK;
797
798 /* Keem Bay stepping info, based on DT */
> 799 strncpy(pcie->stepping, "B0", strlen("B0"));
800 soc_node = of_get_parent(pdev->dev.of_node);
801 if (soc_node) {
802 version_node = of_get_child_by_name(soc_node, "version-info");
803 if (version_node) {
804 prop = of_get_property(version_node, "stepping",
805 &prop_size);
806 if (prop && prop_size <= KEEMBAY_PCIE_STEPPING_MAXLEN)
807 strncpy(pcie->stepping, prop, prop_size);
808 of_node_put(version_node);
809 }
810 of_node_put(soc_node);
811 }
812
813 platform_set_drvdata(pdev, pcie);
814
815 switch (pcie->mode) {
816 case DW_PCIE_RC_TYPE:
817 if (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_HOST))
818 return -ENODEV;
819
820 ret = keembay_pcie_add_pcie_port(pcie, pdev);
821 if (ret < 0)
822 return ret;
823 break;
824 case DW_PCIE_EP_TYPE:
825 if (!IS_ENABLED(CONFIG_PCIE_KEEMBAY_EP))
826 return -ENODEV;
827
828 ret = keembay_pcie_add_pcie_ep(pcie, pdev);
829 if (ret < 0)
830 return ret;
831 break;
832 default:
833 dev_err(dev, "INVALID device type %d\n", pcie->mode);
834 }
835
836 return 0;
837 }
838
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[sound:for-next 164/168] include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: 83fbcaed24d797528de00c024674fd58e8f1634f
commit: 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b [164/168] ALSA: core: Abstract memory alloc helpers
config: riscv-randconfig-r002-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?i...
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound for-next
git checkout 37af81c5998f4b0f23fb452cffa4b8a1c00ce95b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from sound/core/pcm_iec958.c:8:
In file included from include/sound/pcm.h:12:
>> include/sound/memalloc.h:63:17: error: use of undeclared identifier 'PAGE_SIZE'
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^
>> include/sound/memalloc.h:63:35: error: use of undeclared identifier 'PAGE_SHIFT'
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^
2 errors generated.
vim +/PAGE_SIZE +63 include/sound/memalloc.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 57
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 58 /*
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 59 * return the pages matching with the given byte size
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 60 */
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 61 static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 62 {
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 @63 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 64 }
4cae99d9b5305a Pierre-Louis Bossart 2018-07-25 65
:::::: The code at line 63 was first introduced by commit
:::::: 4cae99d9b5305ab8cccc839fccceb81ec9e5abda ALSA: memalloc: declare snd_sgbuf_aligned_pages() unconditionally
:::::: TO: Pierre-Louis Bossart <pierre-louis.bossart(a)linux.intel.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months