[tglx-devel:x86/fpu-3-kvm 26/65] arch/x86/kernel/ptrace.c:1311:13: error: no previous prototype for function 'update_regset_xstate_info'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu-3-kvm
head: 567aa15fa5d336b777bd277f52412bd9f8be1585
commit: 22553a4cfe428edf5b399552abc2ffd22918c4a9 [26/65] x86/fpu: Remove internal.h dependency from fpu/signal.h
config: x86_64-buildonly-randconfig-r003-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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 x86/fpu-3-kvm
git checkout 22553a4cfe428edf5b399552abc2ffd22918c4a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> arch/x86/kernel/ptrace.c:1311:13: error: no previous prototype for function 'update_regset_xstate_info' [-Werror,-Wmissing-prototypes]
void __init update_regset_xstate_info(unsigned int size, u64 xstate_mask)
^
arch/x86/kernel/ptrace.c:1311:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init update_regset_xstate_info(unsigned int size, u64 xstate_mask)
^
static
1 error generated.
vim +/update_regset_xstate_info +1311 arch/x86/kernel/ptrace.c
5b3efd500854d4 Suresh Siddha 2010-02-11 1310
404f6aac9b3ef5 Kees Cook 2016-08-08 @1311 void __init update_regset_xstate_info(unsigned int size, u64 xstate_mask)
5b3efd500854d4 Suresh Siddha 2010-02-11 1312 {
5b3efd500854d4 Suresh Siddha 2010-02-11 1313 #ifdef CONFIG_X86_64
5b3efd500854d4 Suresh Siddha 2010-02-11 1314 x86_64_regsets[REGSET_XSTATE].n = size / sizeof(u64);
5b3efd500854d4 Suresh Siddha 2010-02-11 1315 #endif
5b3efd500854d4 Suresh Siddha 2010-02-11 1316 #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION
5b3efd500854d4 Suresh Siddha 2010-02-11 1317 x86_32_regsets[REGSET_XSTATE].n = size / sizeof(u64);
5b3efd500854d4 Suresh Siddha 2010-02-11 1318 #endif
5b3efd500854d4 Suresh Siddha 2010-02-11 1319 xstate_fx_sw_bytes[USER_XSTATE_XCR0_WORD] = xstate_mask;
5b3efd500854d4 Suresh Siddha 2010-02-11 1320 }
5b3efd500854d4 Suresh Siddha 2010-02-11 1321
:::::: The code at line 1311 was first introduced by commit
:::::: 404f6aac9b3ef595735feca99979db084ea48315 x86: Apply more __ro_after_init and const
:::::: TO: Kees Cook <keescook(a)chromium.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
Re: [PATCH net-next] net: marvell: prestera: add firmware v4.0 support
by kernel test robot
Hi Volodymyr,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Volodymyr-Mytnyk/net-marvell-pre...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 40088915f547b52635f022c1e1e18df65ae3153a
config: arm-randconfig-r024-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a49f5386ce6b091da66ea7c3a1d9a588d53becf7)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/af0e1a7d7646e639d30d05831aa0a5c4a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Volodymyr-Mytnyk/net-marvell-prestera-add-firmware-v4-0-support/20211015-225941
git checkout af0e1a7d7646e639d30d05831aa0a5c4a1b22ff5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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/net/ethernet/marvell/prestera/prestera_hw.c:786:5: warning: no previous prototype for function 'prestera_hw_port_state_set' [-Wmissing-prototypes]
int prestera_hw_port_state_set(const struct prestera_port *port,
^
drivers/net/ethernet/marvell/prestera/prestera_hw.c:786:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int prestera_hw_port_state_set(const struct prestera_port *port,
^
static
1 warning generated.
vim +/prestera_hw_port_state_set +786 drivers/net/ethernet/marvell/prestera/prestera_hw.c
e1189d9a5fbec8 Vadym Kochan 2020-09-16 785
501ef3066c89d7 Vadym Kochan 2020-09-16 @786 int prestera_hw_port_state_set(const struct prestera_port *port,
501ef3066c89d7 Vadym Kochan 2020-09-16 787 bool admin_state)
501ef3066c89d7 Vadym Kochan 2020-09-16 788 {
501ef3066c89d7 Vadym Kochan 2020-09-16 789 struct prestera_msg_port_attr_req req = {
501ef3066c89d7 Vadym Kochan 2020-09-16 790 .attr = PRESTERA_CMD_PORT_ATTR_ADMIN_STATE,
501ef3066c89d7 Vadym Kochan 2020-09-16 791 .port = port->hw_id,
501ef3066c89d7 Vadym Kochan 2020-09-16 792 .dev = port->dev_id,
501ef3066c89d7 Vadym Kochan 2020-09-16 793 .param = {
501ef3066c89d7 Vadym Kochan 2020-09-16 794 .admin_state = admin_state,
501ef3066c89d7 Vadym Kochan 2020-09-16 795 }
501ef3066c89d7 Vadym Kochan 2020-09-16 796 };
501ef3066c89d7 Vadym Kochan 2020-09-16 797
501ef3066c89d7 Vadym Kochan 2020-09-16 798 return prestera_cmd(port->sw, PRESTERA_CMD_TYPE_PORT_ATTR_SET,
501ef3066c89d7 Vadym Kochan 2020-09-16 799 &req.cmd, sizeof(req));
501ef3066c89d7 Vadym Kochan 2020-09-16 800 }
501ef3066c89d7 Vadym Kochan 2020-09-16 801
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
[arnd-playground:randconfig-5.16-next 18/158] fs/ntfs/aops.c:918:2: error: call to __compiletime_assert_276 declared with 'error' attribute: BUILD_BUG_ON failed: PAGE_SIZE >= 65536
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-5.16-next
head: 3d47ac9fbe4f4f2a5e5dac13912612003c155e6a
commit: ef8d4c368e89cc49296569a9e337a50e0cd9e038 [18/158] [SUBMITTED 20210927] [RFC] ntfs: disable for 64KB because of stack overflow risk
config: hexagon-randconfig-r041-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-5.16-next
git checkout ef8d4c368e89cc49296569a9e337a50e0cd9e038
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash fs/
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 >>):
fs/ntfs/aops.c:378:12: warning: stack frame size (2224) exceeds limit (1024) in 'ntfs_readpage' [-Wframe-larger-than]
static int ntfs_readpage(struct file *file, struct page *page)
^
>> fs/ntfs/aops.c:918:2: error: call to __compiletime_assert_276 declared with 'error' attribute: BUILD_BUG_ON failed: PAGE_SIZE >= 65536
BUILD_BUG_ON(PAGE_SIZE >= 65536);
^
include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:329:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:317:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:310:4: note: expanded from macro '__compiletime_assert'
prefix ## suffix(); \
^
<scratch space>:126:1: note: expanded from here
__compiletime_assert_276
^
fs/ntfs/aops.c:899:12: warning: stack frame size (4296) exceeds limit (1024) in 'ntfs_write_mst_block' [-Wframe-larger-than]
static int ntfs_write_mst_block(struct page *page,
^
2 warnings and 1 error generated.
vim +/error +918 fs/ntfs/aops.c
874
875 /**
876 * ntfs_write_mst_block - write a @page to the backing store
877 * @page: page cache page to write out
878 * @wbc: writeback control structure
879 *
880 * This function is for writing pages belonging to non-resident, mst protected
881 * attributes to their backing store. The only supported attributes are index
882 * allocation and $MFT/$DATA. Both directory inodes and index inodes are
883 * supported for the index allocation case.
884 *
885 * The page must remain locked for the duration of the write because we apply
886 * the mst fixups, write, and then undo the fixups, so if we were to unlock the
887 * page before undoing the fixups, any other user of the page will see the
888 * page contents as corrupt.
889 *
890 * We clear the page uptodate flag for the duration of the function to ensure
891 * exclusion for the $MFT/$DATA case against someone mapping an mft record we
892 * are about to apply the mst fixups to.
893 *
894 * Return 0 on success and -errno on error.
895 *
896 * Based on ntfs_write_block(), ntfs_mft_writepage(), and
897 * write_mft_record_nolock().
898 */
899 static int ntfs_write_mst_block(struct page *page,
900 struct writeback_control *wbc)
901 {
902 sector_t block, dblock, rec_block;
903 struct inode *vi = page->mapping->host;
904 ntfs_inode *ni = NTFS_I(vi);
905 ntfs_volume *vol = ni->vol;
906 u8 *kaddr;
907 unsigned int rec_size = ni->itype.index.block_size;
908 ntfs_inode *locked_nis[PAGE_SIZE / NTFS_BLOCK_SIZE];
909 struct buffer_head *bh, *head, *tbh, *rec_start_bh;
910 struct buffer_head *bhs[MAX_BUF_PER_PAGE];
911 runlist_element *rl;
912 int i, nr_locked_nis, nr_recs, nr_bhs, max_bhs, bhs_per_rec, err, err2;
913 unsigned bh_size, rec_size_bits;
914 bool sync, is_mft, page_is_dirty, rec_is_dirty;
915 unsigned char bh_size_bits;
916
917 /* Two arrays of MAX_BUF_PER_PAGE on the stack risks an overrun with 64K pages */
> 918 BUILD_BUG_ON(PAGE_SIZE >= 65536);
919
920 if (WARN_ON(rec_size < NTFS_BLOCK_SIZE))
921 return -EINVAL;
922
923 ntfs_debug("Entering for inode 0x%lx, attribute type 0x%x, page index "
924 "0x%lx.", vi->i_ino, ni->type, page->index);
925 BUG_ON(!NInoNonResident(ni));
926 BUG_ON(!NInoMstProtected(ni));
927 is_mft = (S_ISREG(vi->i_mode) && !vi->i_ino);
928 /*
929 * NOTE: ntfs_write_mst_block() would be called for $MFTMirr if a page
930 * in its page cache were to be marked dirty. However this should
931 * never happen with the current driver and considering we do not
932 * handle this case here we do want to BUG(), at least for now.
933 */
934 BUG_ON(!(is_mft || S_ISDIR(vi->i_mode) ||
935 (NInoAttr(ni) && ni->type == AT_INDEX_ALLOCATION)));
936 bh_size = vol->sb->s_blocksize;
937 bh_size_bits = vol->sb->s_blocksize_bits;
938 max_bhs = PAGE_SIZE / bh_size;
939 BUG_ON(!max_bhs);
940 BUG_ON(max_bhs > MAX_BUF_PER_PAGE);
941
942 /* Were we called for sync purposes? */
943 sync = (wbc->sync_mode == WB_SYNC_ALL);
944
945 /* Make sure we have mapped buffers. */
946 bh = head = page_buffers(page);
947 BUG_ON(!bh);
948
949 rec_size_bits = ni->itype.index.block_size_bits;
950 BUG_ON(!(PAGE_SIZE >> rec_size_bits));
951 bhs_per_rec = rec_size >> bh_size_bits;
952 BUG_ON(!bhs_per_rec);
953
954 /* The first block in the page. */
955 rec_block = block = (sector_t)page->index <<
956 (PAGE_SHIFT - bh_size_bits);
957
958 /* The first out of bounds block for the data size. */
959 dblock = (i_size_read(vi) + bh_size - 1) >> bh_size_bits;
960
961 rl = NULL;
962 err = err2 = nr_bhs = nr_recs = nr_locked_nis = 0;
963 page_is_dirty = rec_is_dirty = false;
964 rec_start_bh = NULL;
965 do {
966 bool is_retry = false;
967
968 if (likely(block < rec_block)) {
969 if (unlikely(block >= dblock)) {
970 clear_buffer_dirty(bh);
971 set_buffer_uptodate(bh);
972 continue;
973 }
974 /*
975 * This block is not the first one in the record. We
976 * ignore the buffer's dirty state because we could
977 * have raced with a parallel mark_ntfs_record_dirty().
978 */
979 if (!rec_is_dirty)
980 continue;
981 if (unlikely(err2)) {
982 if (err2 != -ENOMEM)
983 clear_buffer_dirty(bh);
984 continue;
985 }
986 } else /* if (block == rec_block) */ {
987 BUG_ON(block > rec_block);
988 /* This block is the first one in the record. */
989 rec_block += bhs_per_rec;
990 err2 = 0;
991 if (unlikely(block >= dblock)) {
992 clear_buffer_dirty(bh);
993 continue;
994 }
995 if (!buffer_dirty(bh)) {
996 /* Clean records are not written out. */
997 rec_is_dirty = false;
998 continue;
999 }
1000 rec_is_dirty = true;
1001 rec_start_bh = bh;
1002 }
1003 /* Need to map the buffer if it is not mapped already. */
1004 if (unlikely(!buffer_mapped(bh))) {
1005 VCN vcn;
1006 LCN lcn;
1007 unsigned int vcn_ofs;
1008
1009 bh->b_bdev = vol->sb->s_bdev;
1010 /* Obtain the vcn and offset of the current block. */
1011 vcn = (VCN)block << bh_size_bits;
1012 vcn_ofs = vcn & vol->cluster_size_mask;
1013 vcn >>= vol->cluster_size_bits;
1014 if (!rl) {
1015 lock_retry_remap:
1016 down_read(&ni->runlist.lock);
1017 rl = ni->runlist.rl;
1018 }
1019 if (likely(rl != NULL)) {
1020 /* Seek to element containing target vcn. */
1021 while (rl->length && rl[1].vcn <= vcn)
1022 rl++;
1023 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
1024 } else
1025 lcn = LCN_RL_NOT_MAPPED;
1026 /* Successful remap. */
1027 if (likely(lcn >= 0)) {
1028 /* Setup buffer head to correct block. */
1029 bh->b_blocknr = ((lcn <<
1030 vol->cluster_size_bits) +
1031 vcn_ofs) >> bh_size_bits;
1032 set_buffer_mapped(bh);
1033 } else {
1034 /*
1035 * Remap failed. Retry to map the runlist once
1036 * unless we are working on $MFT which always
1037 * has the whole of its runlist in memory.
1038 */
1039 if (!is_mft && !is_retry &&
1040 lcn == LCN_RL_NOT_MAPPED) {
1041 is_retry = true;
1042 /*
1043 * Attempt to map runlist, dropping
1044 * lock for the duration.
1045 */
1046 up_read(&ni->runlist.lock);
1047 err2 = ntfs_map_runlist(ni, vcn);
1048 if (likely(!err2))
1049 goto lock_retry_remap;
1050 if (err2 == -ENOMEM)
1051 page_is_dirty = true;
1052 lcn = err2;
1053 } else {
1054 err2 = -EIO;
1055 if (!rl)
1056 up_read(&ni->runlist.lock);
1057 }
1058 /* Hard error. Abort writing this record. */
1059 if (!err || err == -ENOMEM)
1060 err = err2;
1061 bh->b_blocknr = -1;
1062 ntfs_error(vol->sb, "Cannot write ntfs record "
1063 "0x%llx (inode 0x%lx, "
1064 "attribute type 0x%x) because "
1065 "its location on disk could "
1066 "not be determined (error "
1067 "code %lli).",
1068 (long long)block <<
1069 bh_size_bits >>
1070 vol->mft_record_size_bits,
1071 ni->mft_no, ni->type,
1072 (long long)lcn);
1073 /*
1074 * If this is not the first buffer, remove the
1075 * buffers in this record from the list of
1076 * buffers to write and clear their dirty bit
1077 * if not error -ENOMEM.
1078 */
1079 if (rec_start_bh != bh) {
1080 while (bhs[--nr_bhs] != rec_start_bh)
1081 ;
1082 if (err2 != -ENOMEM) {
1083 do {
1084 clear_buffer_dirty(
1085 rec_start_bh);
1086 } while ((rec_start_bh =
1087 rec_start_bh->
1088 b_this_page) !=
1089 bh);
1090 }
1091 }
1092 continue;
1093 }
1094 }
1095 BUG_ON(!buffer_uptodate(bh));
1096 BUG_ON(nr_bhs >= max_bhs);
1097 bhs[nr_bhs++] = bh;
1098 } while (block++, (bh = bh->b_this_page) != head);
1099 if (unlikely(rl))
1100 up_read(&ni->runlist.lock);
1101 /* If there were no dirty buffers, we are done. */
1102 if (!nr_bhs)
1103 goto done;
1104 /* Map the page so we can access its contents. */
1105 kaddr = kmap(page);
1106 /* Clear the page uptodate flag whilst the mst fixups are applied. */
1107 BUG_ON(!PageUptodate(page));
1108 ClearPageUptodate(page);
1109 for (i = 0; i < nr_bhs; i++) {
1110 unsigned int ofs;
1111
1112 /* Skip buffers which are not at the beginning of records. */
1113 if (i % bhs_per_rec)
1114 continue;
1115 tbh = bhs[i];
1116 ofs = bh_offset(tbh);
1117 if (is_mft) {
1118 ntfs_inode *tni;
1119 unsigned long mft_no;
1120
1121 /* Get the mft record number. */
1122 mft_no = (((s64)page->index << PAGE_SHIFT) + ofs)
1123 >> rec_size_bits;
1124 /* Check whether to write this mft record. */
1125 tni = NULL;
1126 if (!ntfs_may_write_mft_record(vol, mft_no,
1127 (MFT_RECORD*)(kaddr + ofs), &tni)) {
1128 /*
1129 * The record should not be written. This
1130 * means we need to redirty the page before
1131 * returning.
1132 */
1133 page_is_dirty = true;
1134 /*
1135 * Remove the buffers in this mft record from
1136 * the list of buffers to write.
1137 */
1138 do {
1139 bhs[i] = NULL;
1140 } while (++i % bhs_per_rec);
1141 continue;
1142 }
1143 /*
1144 * The record should be written. If a locked ntfs
1145 * inode was returned, add it to the array of locked
1146 * ntfs inodes.
1147 */
1148 if (tni)
1149 locked_nis[nr_locked_nis++] = tni;
1150 }
1151 /* Apply the mst protection fixups. */
1152 err2 = pre_write_mst_fixup((NTFS_RECORD*)(kaddr + ofs),
1153 rec_size);
1154 if (unlikely(err2)) {
1155 if (!err || err == -ENOMEM)
1156 err = -EIO;
1157 ntfs_error(vol->sb, "Failed to apply mst fixups "
1158 "(inode 0x%lx, attribute type 0x%x, "
1159 "page index 0x%lx, page offset 0x%x)!"
1160 " Unmount and run chkdsk.", vi->i_ino,
1161 ni->type, page->index, ofs);
1162 /*
1163 * Mark all the buffers in this record clean as we do
1164 * not want to write corrupt data to disk.
1165 */
1166 do {
1167 clear_buffer_dirty(bhs[i]);
1168 bhs[i] = NULL;
1169 } while (++i % bhs_per_rec);
1170 continue;
1171 }
1172 nr_recs++;
1173 }
1174 /* If no records are to be written out, we are done. */
1175 if (!nr_recs)
1176 goto unm_done;
1177 flush_dcache_page(page);
1178 /* Lock buffers and start synchronous write i/o on them. */
1179 for (i = 0; i < nr_bhs; i++) {
1180 tbh = bhs[i];
1181 if (!tbh)
1182 continue;
1183 if (!trylock_buffer(tbh))
1184 BUG();
1185 /* The buffer dirty state is now irrelevant, just clean it. */
1186 clear_buffer_dirty(tbh);
1187 BUG_ON(!buffer_uptodate(tbh));
1188 BUG_ON(!buffer_mapped(tbh));
1189 get_bh(tbh);
1190 tbh->b_end_io = end_buffer_write_sync;
1191 submit_bh(REQ_OP_WRITE, 0, tbh);
1192 }
1193 /* Synchronize the mft mirror now if not @sync. */
1194 if (is_mft && !sync)
1195 goto do_mirror;
1196 do_wait:
1197 /* Wait on i/o completion of buffers. */
1198 for (i = 0; i < nr_bhs; i++) {
1199 tbh = bhs[i];
1200 if (!tbh)
1201 continue;
1202 wait_on_buffer(tbh);
1203 if (unlikely(!buffer_uptodate(tbh))) {
1204 ntfs_error(vol->sb, "I/O error while writing ntfs "
1205 "record buffer (inode 0x%lx, "
1206 "attribute type 0x%x, page index "
1207 "0x%lx, page offset 0x%lx)! Unmount "
1208 "and run chkdsk.", vi->i_ino, ni->type,
1209 page->index, bh_offset(tbh));
1210 if (!err || err == -ENOMEM)
1211 err = -EIO;
1212 /*
1213 * Set the buffer uptodate so the page and buffer
1214 * states do not become out of sync.
1215 */
1216 set_buffer_uptodate(tbh);
1217 }
1218 }
1219 /* If @sync, now synchronize the mft mirror. */
1220 if (is_mft && sync) {
1221 do_mirror:
1222 for (i = 0; i < nr_bhs; i++) {
1223 unsigned long mft_no;
1224 unsigned int ofs;
1225
1226 /*
1227 * Skip buffers which are not at the beginning of
1228 * records.
1229 */
1230 if (i % bhs_per_rec)
1231 continue;
1232 tbh = bhs[i];
1233 /* Skip removed buffers (and hence records). */
1234 if (!tbh)
1235 continue;
1236 ofs = bh_offset(tbh);
1237 /* Get the mft record number. */
1238 mft_no = (((s64)page->index << PAGE_SHIFT) + ofs)
1239 >> rec_size_bits;
1240 if (mft_no < vol->mftmirr_size)
1241 ntfs_sync_mft_mirror(vol, mft_no,
1242 (MFT_RECORD*)(kaddr + ofs),
1243 sync);
1244 }
1245 if (!sync)
1246 goto do_wait;
1247 }
1248 /* Remove the mst protection fixups again. */
1249 for (i = 0; i < nr_bhs; i++) {
1250 if (!(i % bhs_per_rec)) {
1251 tbh = bhs[i];
1252 if (!tbh)
1253 continue;
1254 post_write_mst_fixup((NTFS_RECORD*)(kaddr +
1255 bh_offset(tbh)));
1256 }
1257 }
1258 flush_dcache_page(page);
1259 unm_done:
1260 /* Unlock any locked inodes. */
1261 while (nr_locked_nis-- > 0) {
1262 ntfs_inode *tni, *base_tni;
1263
1264 tni = locked_nis[nr_locked_nis];
1265 /* Get the base inode. */
1266 mutex_lock(&tni->extent_lock);
1267 if (tni->nr_extents >= 0)
1268 base_tni = tni;
1269 else {
1270 base_tni = tni->ext.base_ntfs_ino;
1271 BUG_ON(!base_tni);
1272 }
1273 mutex_unlock(&tni->extent_lock);
1274 ntfs_debug("Unlocking %s inode 0x%lx.",
1275 tni == base_tni ? "base" : "extent",
1276 tni->mft_no);
1277 mutex_unlock(&tni->mrec_lock);
1278 atomic_dec(&tni->count);
1279 iput(VFS_I(base_tni));
1280 }
1281 SetPageUptodate(page);
1282 kunmap(page);
1283 done:
1284 if (unlikely(err && err != -ENOMEM)) {
1285 /*
1286 * Set page error if there is only one ntfs record in the page.
1287 * Otherwise we would loose per-record granularity.
1288 */
1289 if (ni->itype.index.block_size == PAGE_SIZE)
1290 SetPageError(page);
1291 NVolSetErrors(vol);
1292 }
1293 if (page_is_dirty) {
1294 ntfs_debug("Page still contains one or more dirty ntfs "
1295 "records. Redirtying the page starting at "
1296 "record 0x%lx.", page->index <<
1297 (PAGE_SHIFT - rec_size_bits));
1298 redirty_page_for_writepage(wbc, page);
1299 unlock_page(page);
1300 } else {
1301 /*
1302 * Keep the VM happy. This must be done otherwise the
1303 * radix-tree tag PAGECACHE_TAG_DIRTY remains set even though
1304 * the page is clean.
1305 */
1306 BUG_ON(PageWriteback(page));
1307 set_page_writeback(page);
1308 unlock_page(page);
1309 end_page_writeback(page);
1310 }
1311 if (likely(!err))
1312 ntfs_debug("Done.");
1313 return err;
1314 }
1315
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
Re: [PATCH 3/5] ALSA: hda: Fill gaps in NHLT endpoint-interface
by kernel test robot
Hi Cezary,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on broonie-sound/for-next]
[also build test WARNING on tiwai-sound/for-next v5.15-rc5 next-20211015]
[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/Cezary-Rojewski/ALSA-hda-New-NHL...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: riscv-randconfig-r042-20211016 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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://github.com/0day-ci/linux/commit/418a9f8fd0b93d717ac19a0fed367c60f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Cezary-Rojewski/ALSA-hda-New-NHLT-functions-and-cleanup/20211016-004154
git checkout 418a9f8fd0b93d717ac19a0fed367c60fe2e4352
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):
In file included from sound/hda/intel-dsp-config.c:13:
>> include/sound/intel-nhlt.h:159:6: warning: no previous prototype for function 'intel_nhlt_has_endpoint_type' [-Wmissing-prototypes]
bool intel_nhlt_has_endpoint_type(struct acpi_table_nhlt *nhlt, u8 link_type)
^
include/sound/intel-nhlt.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool intel_nhlt_has_endpoint_type(struct acpi_table_nhlt *nhlt, u8 link_type)
^
static
>> include/sound/intel-nhlt.h:165:1: warning: no previous prototype for function 'intel_nhlt_get_endpoint_blob' [-Wmissing-prototypes]
intel_nhlt_get_endpoint_blob(struct acpi_table_nhlt *nhlt,
^
include/sound/intel-nhlt.h:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct nhlt_specific_cfg *
^
static
2 warnings generated.
vim +/intel_nhlt_has_endpoint_type +159 include/sound/intel-nhlt.h
158
> 159 bool intel_nhlt_has_endpoint_type(struct acpi_table_nhlt *nhlt, u8 link_type)
160 {
161 return false;
162 }
163
164 struct nhlt_specific_cfg *
> 165 intel_nhlt_get_endpoint_blob(struct acpi_table_nhlt *nhlt,
166 u32 bus_id, u8 link_type, u8 vbps, u8 bps,
167 u8 num_ch, u32 rate, u8 dir, u8 dev_type)
168 {
169 return NULL;
170 }
171
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
[Amazon]ご利用の確認お願い致します
by Amazon
Amazonお客様
誰かがあなたのクレジットカードにログインして商品を購入しようとしていることに気がつきましょう。
クレジットカードの盗難を防ぎ、登録したらできるだけ早く情報処理を更新する。
あなたが24時間以内に確認できない場合は申し訳ありません。財産の損失に対しては
このアカウントの使用を制限させていただきます。あらかじめご理解ください。
確認用アカウント
利用規約 プライバシー規約 ヘルプ © 1996-2021, Amazon. Inc. or its affiliates
11 months, 1 week
Re: [RFC PATCH] drm/panel: ilitek-ili9881d: add support for Wanchanglong W552946ABA panel
by kernel test robot
Hi Michael,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[also build test ERROR on v5.15-rc5 next-20211015]
[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/Michael-Trimarchi/drm-panel-ilit...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 26d6574109838b8fa40a8261421693015bab0579
config: i386-randconfig-a016-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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/5e985ed2df2301e9f13a49b04a5fa5651...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-Trimarchi/drm-panel-ilitek-ili9881d-add-support-for-Wanchanglong-W552946ABA-panel/20211015-041850
git checkout 5e985ed2df2301e9f13a49b04a5fa56519d08b5f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-ilitek-ili9881c.c:934:29: error: use of undeclared identifier 'MIPI_DSI_MODE_EOT_PACKET'
MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET,
^
1 error generated.
vim +/MIPI_DSI_MODE_EOT_PACKET +934 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
928
929 static const struct ili9881c_desc w552946aba_desc = {
930 .init = w552946ab_init,
931 .init_length = ARRAY_SIZE(w552946ab_init),
932 .mode = &w552946aba_default_mode,
933 .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
> 934 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET,
935 };
936
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
[nbd168-wireless:mt76 74/113] drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1108:23: warning: variable 'phy' set but not used
by kernel test robot
tree: https://github.com/nbd168/wireless mt76
head: 39e333d657f49619c65b9f5b59aa6405f13abf35
commit: 590e774e4ec95cd17d9c473284b45d2af5c4885a [74/113] mt76: mt7921: remove mcu rate reporting code
config: x86_64-randconfig-a004-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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/nbd168/wireless/commit/590e774e4ec95cd17d9c473284b45d2...
git remote add nbd168-wireless https://github.com/nbd168/wireless
git fetch --no-tags nbd168-wireless mt76
git checkout 590e774e4ec95cd17d9c473284b45d2af5c4885a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 warnings (new ones prefixed by >>):
>> drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1108:23: warning: variable 'phy' set but not used [-Wunused-but-set-variable]
struct mt7921_phy *phy;
^
drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1345:21: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
struct mt7921_dev *dev;
^
2 warnings generated.
vim +/phy +1108 drivers/net/wireless/mediatek/mt76/mt7921/mac.c
bcf78d7bff1513 Lorenzo Bianconi 2021-09-04 1077
a7742ef4cd9166 Lorenzo Bianconi 2021-08-16 1078 static void
a7742ef4cd9166 Lorenzo Bianconi 2021-08-16 1079 mt7921_mac_tx_free(struct mt7921_dev *dev, struct sk_buff *skb)
163f4d22c118d4 Sean Wang 2021-01-28 1080 {
163f4d22c118d4 Sean Wang 2021-01-28 1081 struct mt7921_tx_free *free = (struct mt7921_tx_free *)skb->data;
163f4d22c118d4 Sean Wang 2021-01-28 1082 struct mt76_dev *mdev = &dev->mt76;
163f4d22c118d4 Sean Wang 2021-01-28 1083 struct mt76_txwi_cache *txwi;
163f4d22c118d4 Sean Wang 2021-01-28 1084 struct ieee80211_sta *sta = NULL;
163f4d22c118d4 Sean Wang 2021-01-28 1085 LIST_HEAD(free_list);
163f4d22c118d4 Sean Wang 2021-01-28 1086 struct sk_buff *tmp;
163f4d22c118d4 Sean Wang 2021-01-28 1087 bool wake = false;
163f4d22c118d4 Sean Wang 2021-01-28 1088 u8 i, count;
163f4d22c118d4 Sean Wang 2021-01-28 1089
163f4d22c118d4 Sean Wang 2021-01-28 1090 /* clean DMA queues and unmap buffers first */
163f4d22c118d4 Sean Wang 2021-01-28 1091 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false);
163f4d22c118d4 Sean Wang 2021-01-28 1092 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false);
163f4d22c118d4 Sean Wang 2021-01-28 1093
163f4d22c118d4 Sean Wang 2021-01-28 1094 /* TODO: MT_TX_FREE_LATENCY is msdu time from the TXD is queued into PLE,
163f4d22c118d4 Sean Wang 2021-01-28 1095 * to the time ack is received or dropped by hw (air + hw queue time).
163f4d22c118d4 Sean Wang 2021-01-28 1096 * Should avoid accessing WTBL to get Tx airtime, and use it instead.
163f4d22c118d4 Sean Wang 2021-01-28 1097 */
163f4d22c118d4 Sean Wang 2021-01-28 1098 count = FIELD_GET(MT_TX_FREE_MSDU_CNT, le16_to_cpu(free->ctrl));
163f4d22c118d4 Sean Wang 2021-01-28 1099 for (i = 0; i < count; i++) {
163f4d22c118d4 Sean Wang 2021-01-28 1100 u32 msdu, info = le32_to_cpu(free->info[i]);
163f4d22c118d4 Sean Wang 2021-01-28 1101 u8 stat;
163f4d22c118d4 Sean Wang 2021-01-28 1102
163f4d22c118d4 Sean Wang 2021-01-28 1103 /* 1'b1: new wcid pair.
163f4d22c118d4 Sean Wang 2021-01-28 1104 * 1'b0: msdu_id with the same 'wcid pair' as above.
163f4d22c118d4 Sean Wang 2021-01-28 1105 */
163f4d22c118d4 Sean Wang 2021-01-28 1106 if (info & MT_TX_FREE_PAIR) {
163f4d22c118d4 Sean Wang 2021-01-28 1107 struct mt7921_sta *msta;
163f4d22c118d4 Sean Wang 2021-01-28 @1108 struct mt7921_phy *phy;
163f4d22c118d4 Sean Wang 2021-01-28 1109 struct mt76_wcid *wcid;
163f4d22c118d4 Sean Wang 2021-01-28 1110 u16 idx;
163f4d22c118d4 Sean Wang 2021-01-28 1111
163f4d22c118d4 Sean Wang 2021-01-28 1112 count++;
163f4d22c118d4 Sean Wang 2021-01-28 1113 idx = FIELD_GET(MT_TX_FREE_WLAN_ID, info);
163f4d22c118d4 Sean Wang 2021-01-28 1114 wcid = rcu_dereference(dev->mt76.wcid[idx]);
163f4d22c118d4 Sean Wang 2021-01-28 1115 sta = wcid_to_sta(wcid);
163f4d22c118d4 Sean Wang 2021-01-28 1116 if (!sta)
163f4d22c118d4 Sean Wang 2021-01-28 1117 continue;
163f4d22c118d4 Sean Wang 2021-01-28 1118
163f4d22c118d4 Sean Wang 2021-01-28 1119 msta = container_of(wcid, struct mt7921_sta, wcid);
163f4d22c118d4 Sean Wang 2021-01-28 1120 phy = msta->vif->phy;
163f4d22c118d4 Sean Wang 2021-01-28 1121 spin_lock_bh(&dev->sta_poll_lock);
163f4d22c118d4 Sean Wang 2021-01-28 1122 if (list_empty(&msta->poll_list))
163f4d22c118d4 Sean Wang 2021-01-28 1123 list_add_tail(&msta->poll_list, &dev->sta_poll_list);
163f4d22c118d4 Sean Wang 2021-01-28 1124 spin_unlock_bh(&dev->sta_poll_lock);
163f4d22c118d4 Sean Wang 2021-01-28 1125 continue;
163f4d22c118d4 Sean Wang 2021-01-28 1126 }
163f4d22c118d4 Sean Wang 2021-01-28 1127
163f4d22c118d4 Sean Wang 2021-01-28 1128 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info);
163f4d22c118d4 Sean Wang 2021-01-28 1129 stat = FIELD_GET(MT_TX_FREE_STATUS, info);
163f4d22c118d4 Sean Wang 2021-01-28 1130
d089692bc7938a Lorenzo Bianconi 2021-04-20 1131 txwi = mt76_token_release(mdev, msdu, &wake);
163f4d22c118d4 Sean Wang 2021-01-28 1132 if (!txwi)
163f4d22c118d4 Sean Wang 2021-01-28 1133 continue;
163f4d22c118d4 Sean Wang 2021-01-28 1134
bcf78d7bff1513 Lorenzo Bianconi 2021-09-04 1135 mt7921_txwi_free(dev, txwi, sta, stat, &free_list);
163f4d22c118d4 Sean Wang 2021-01-28 1136 }
163f4d22c118d4 Sean Wang 2021-01-28 1137
d089692bc7938a Lorenzo Bianconi 2021-04-20 1138 if (wake)
d089692bc7938a Lorenzo Bianconi 2021-04-20 1139 mt76_set_tx_blocked(&dev->mt76, false);
163f4d22c118d4 Sean Wang 2021-01-28 1140
163f4d22c118d4 Sean Wang 2021-01-28 1141 napi_consume_skb(skb, 1);
163f4d22c118d4 Sean Wang 2021-01-28 1142
163f4d22c118d4 Sean Wang 2021-01-28 1143 list_for_each_entry_safe(skb, tmp, &free_list, list) {
163f4d22c118d4 Sean Wang 2021-01-28 1144 skb_list_del_init(skb);
163f4d22c118d4 Sean Wang 2021-01-28 1145 napi_consume_skb(skb, 1);
163f4d22c118d4 Sean Wang 2021-01-28 1146 }
1d8efc741df80b Sean Wang 2021-01-28 1147
1d8efc741df80b Sean Wang 2021-01-28 1148 mt7921_mac_sta_poll(dev);
1d8efc741df80b Sean Wang 2021-01-28 1149 mt76_worker_schedule(&dev->mt76.tx_worker);
163f4d22c118d4 Sean Wang 2021-01-28 1150 }
163f4d22c118d4 Sean Wang 2021-01-28 1151
:::::: The code at line 1108 was first introduced by commit
:::::: 163f4d22c118d4eb9e275bf9ee1577c0d14b3208 mt76: mt7921: add MAC support
:::::: TO: Sean Wang <sean.wang(a)mediatek.com>
:::::: CC: Felix Fietkau <nbd(a)nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
[axboe-block:perf-wip 30/33] block/blk-mq.c:2168:6: error: no previous prototype for function 'blk_mq_plug_issue_direct'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git perf-wip
head: 817022be1c1afcf3b0ca057ef25a8298c7a0a959
commit: 33801f83c8ad07e0c4fdf56362081b29882d5bf7 [30/33] block: change plugging to use a singly linked list
config: arm-buildonly-randconfig-r002-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags axboe-block perf-wip
git checkout 33801f83c8ad07e0c4fdf56362081b29882d5bf7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):
>> block/blk-mq.c:2168:6: error: no previous prototype for function 'blk_mq_plug_issue_direct' [-Werror,-Wmissing-prototypes]
void blk_mq_plug_issue_direct(struct blk_plug *plug, bool from_schedule)
^
block/blk-mq.c:2168:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void blk_mq_plug_issue_direct(struct blk_plug *plug, bool from_schedule)
^
static
>> block/blk-mq.c:2591:14: error: variable 'first_rq' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (same_queue_rq) {
^~~~~~~~~~~~~
block/blk-mq.c:2598:7: note: uninitialized use occurs here
if (first_rq) {
^~~~~~~~
block/blk-mq.c:2591:10: note: remove the 'if' if its condition is always true
} else if (same_queue_rq) {
^~~~~~~~~~~~~~~~~~~
block/blk-mq.c:2580:27: note: initialize the variable 'first_rq' to silence this warning
struct request *first_rq;
^
= NULL
2 errors generated.
vim +/blk_mq_plug_issue_direct +2168 block/blk-mq.c
2167
> 2168 void blk_mq_plug_issue_direct(struct blk_plug *plug, bool from_schedule)
2169 {
2170 struct blk_mq_hw_ctx *hctx = NULL;
2171 int queued = 0;
2172 int errors = 0;
2173
2174 while (!rq_list_empty(plug->mq_list)) {
2175 struct request *rq;
2176 blk_status_t ret;
2177
2178 rq = rq_list_pop(&plug->mq_list);
2179
2180 if (!hctx)
2181 hctx = rq->mq_hctx;
2182 else if (hctx != rq->mq_hctx && hctx->queue->mq_ops->commit_rqs) {
2183 trace_block_unplug(hctx->queue, queued, !from_schedule);
2184 hctx->queue->mq_ops->commit_rqs(hctx);
2185 queued = 0;
2186 hctx = rq->mq_hctx;
2187 }
2188
2189 ret = blk_mq_request_issue_directly(rq,
2190 rq_list_empty(plug->mq_list));
2191 if (ret != BLK_STS_OK) {
2192 if (ret == BLK_STS_RESOURCE ||
2193 ret == BLK_STS_DEV_RESOURCE) {
2194 blk_mq_request_bypass_insert(rq, false,
2195 rq_list_empty(plug->mq_list));
2196 break;
2197 }
2198 blk_mq_end_request(rq, ret);
2199 errors++;
2200 } else
2201 queued++;
2202 }
2203
2204 /*
2205 * If we didn't flush the entire list, we could have told
2206 * the driver there was more coming, but that turned out to
2207 * be a lie.
2208 */
2209 if ((!rq_list_empty(plug->mq_list) || errors) &&
2210 hctx->queue->mq_ops->commit_rqs && queued)
2211 hctx->queue->mq_ops->commit_rqs(hctx);
2212 }
2213
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week
Re: [PATCH v0.7 3/5] sched/umcg: implement UMCG syscalls
by kernel test robot
Hi Peter,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/sched/core]
[cannot apply to tip/master tip/x86/core hnaz-mm/master arnd-asm-generic/master linus/master tip/x86/asm tip/core/entry v5.15-rc5 next-20211015]
[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/Peter-Oskolkov/sched-mm-x86-uacc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git b2d5b9cec60fecc72a13191c2c6c05acf60975a5
config: arm64-randconfig-r015-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/0dcffc800cf354f683ff5c495baa0070d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Peter-Oskolkov/sched-mm-x86-uaccess-implement-User-Managed-Concurrency-Groups/20211013-072710
git checkout 0dcffc800cf354f683ff5c495baa0070dfb60afb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:141:1: note: expanded from here
__arm64_sys_mremap
^
kernel/sys_ni.c:262:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:265:1: warning: no previous prototype for function '__arm64_sys_add_key' [-Wmissing-prototypes]
COND_SYSCALL(add_key);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:142:1: note: expanded from here
__arm64_sys_add_key
^
kernel/sys_ni.c:265:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:266:1: warning: no previous prototype for function '__arm64_sys_request_key' [-Wmissing-prototypes]
COND_SYSCALL(request_key);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:143:1: note: expanded from here
__arm64_sys_request_key
^
kernel/sys_ni.c:266:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:267:1: warning: no previous prototype for function '__arm64_sys_keyctl' [-Wmissing-prototypes]
COND_SYSCALL(keyctl);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:144:1: note: expanded from here
__arm64_sys_keyctl
^
kernel/sys_ni.c:267:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:268:1: warning: no previous prototype for function '__arm64_compat_sys_keyctl' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(keyctl);
^
arch/arm64/include/asm/syscall_wrapper.h:41:25: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:145:1: note: expanded from here
__arm64_compat_sys_keyctl
^
kernel/sys_ni.c:268:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:41:13: note: expanded from macro 'COND_SYSCALL_COMPAT'
asmlinkage long __weak __arm64_compat_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:271:1: warning: no previous prototype for function '__arm64_sys_landlock_create_ruleset' [-Wmissing-prototypes]
COND_SYSCALL(landlock_create_ruleset);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:146:1: note: expanded from here
__arm64_sys_landlock_create_ruleset
^
kernel/sys_ni.c:271:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:272:1: warning: no previous prototype for function '__arm64_sys_landlock_add_rule' [-Wmissing-prototypes]
COND_SYSCALL(landlock_add_rule);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:147:1: note: expanded from here
__arm64_sys_landlock_add_rule
^
kernel/sys_ni.c:272:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:273:1: warning: no previous prototype for function '__arm64_sys_landlock_restrict_self' [-Wmissing-prototypes]
COND_SYSCALL(landlock_restrict_self);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:148:1: note: expanded from here
__arm64_sys_landlock_restrict_self
^
kernel/sys_ni.c:273:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
>> kernel/sys_ni.c:276:1: warning: no previous prototype for function '__arm64_sys_umcg_ctl' [-Wmissing-prototypes]
COND_SYSCALL(umcg_ctl);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:149:1: note: expanded from here
__arm64_sys_umcg_ctl
^
kernel/sys_ni.c:276:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
>> kernel/sys_ni.c:277:1: warning: no previous prototype for function '__arm64_sys_umcg_wait' [-Wmissing-prototypes]
COND_SYSCALL(umcg_wait);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:150:1: note: expanded from here
__arm64_sys_umcg_wait
^
kernel/sys_ni.c:277:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:282:1: warning: no previous prototype for function '__arm64_sys_fadvise64_64' [-Wmissing-prototypes]
COND_SYSCALL(fadvise64_64);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:151:1: note: expanded from here
__arm64_sys_fadvise64_64
^
kernel/sys_ni.c:282:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:285:1: warning: no previous prototype for function '__arm64_sys_swapon' [-Wmissing-prototypes]
COND_SYSCALL(swapon);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:152:1: note: expanded from here
__arm64_sys_swapon
^
kernel/sys_ni.c:285:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:286:1: warning: no previous prototype for function '__arm64_sys_swapoff' [-Wmissing-prototypes]
COND_SYSCALL(swapoff);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:153:1: note: expanded from here
__arm64_sys_swapoff
^
kernel/sys_ni.c:286:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:287:1: warning: no previous prototype for function '__arm64_sys_mprotect' [-Wmissing-prototypes]
COND_SYSCALL(mprotect);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:154:1: note: expanded from here
__arm64_sys_mprotect
^
kernel/sys_ni.c:287:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:288:1: warning: no previous prototype for function '__arm64_sys_msync' [-Wmissing-prototypes]
COND_SYSCALL(msync);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:155:1: note: expanded from here
__arm64_sys_msync
^
kernel/sys_ni.c:288:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:289:1: warning: no previous prototype for function '__arm64_sys_mlock' [-Wmissing-prototypes]
COND_SYSCALL(mlock);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:156:1: note: expanded from here
__arm64_sys_mlock
^
kernel/sys_ni.c:289:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:290:1: warning: no previous prototype for function '__arm64_sys_munlock' [-Wmissing-prototypes]
COND_SYSCALL(munlock);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:157:1: note: expanded from here
__arm64_sys_munlock
^
kernel/sys_ni.c:290:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
vim +/__arm64_sys_umcg_ctl +276 kernel/sys_ni.c
274
275 /* kernel/sched/umcg.c */
> 276 COND_SYSCALL(umcg_ctl);
> 277 COND_SYSCALL(umcg_wait);
278
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months, 1 week