[linux-review:UPDATE-20200919-040329/Daniel-Vetter/managed-drm_device-absolute-final-leftover-bits/20200918-212606 2/4] drivers/gpu/drm/i915/selftests/mock_gem_device.c:147:58: warning: format specifies type 'int' but the argument has type 'long'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200919-040329/Daniel-Ve...
head: 94cdb5aa39405ff16ad98f65a8d44e9a8e55dac7
commit: 0eecbea55f799c9e404dcc6e3249af908252a240 [2/4] drm/i915/selftests: align more to real device lifetimes
config: x86_64-randconfig-a003-20200917 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed79827aea444e6995fb3d36abc2bfd36331773c)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 0eecbea55f799c9e404dcc6e3249af908252a240
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
In file included from drivers/gpu/drm/i915/i915_gem.c:1397:
>> drivers/gpu/drm/i915/selftests/mock_gem_device.c:147:58: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
pr_err("Failed to allocate mock GEM device: err=%d\n", PTR_ERR(i915));
~~ ^~~~~~~~~~~~~
%ld
include/linux/printk.h:339:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
In file included from drivers/gpu/drm/i915/i915_gem.c:1397:
drivers/gpu/drm/i915/selftests/mock_gem_device.c:124:6: warning: unused variable 'err' [-Wunused-variable]
int err;
^
2 warnings generated.
# https://github.com/0day-ci/linux/commit/0eecbea55f799c9e404dcc6e3249af908...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20200919-040329/Daniel-Vetter/managed-drm_device-absolute-final-leftover-bits/20200918-212606
git checkout 0eecbea55f799c9e404dcc6e3249af908252a240
vim +147 drivers/gpu/drm/i915/selftests/mock_gem_device.c
116
117 struct drm_i915_private *mock_gem_device(void)
118 {
119 #if IS_ENABLED(CONFIG_IOMMU_API) && defined(CONFIG_INTEL_IOMMU)
120 static struct dev_iommu fake_iommu = { .priv = (void *)-1 };
121 #endif
122 struct drm_i915_private *i915;
123 struct pci_dev *pdev;
124 int err;
125
126 pdev = kzalloc(sizeof(*pdev), GFP_KERNEL);
127 if (!pdev)
128 return NULL;
129 device_initialize(&pdev->dev);
130 pdev->class = PCI_BASE_CLASS_DISPLAY << 16;
131 pdev->dev.release = release_dev;
132 dev_set_name(&pdev->dev, "mock");
133 dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
134
135 #if IS_ENABLED(CONFIG_IOMMU_API) && defined(CONFIG_INTEL_IOMMU)
136 /* HACK to disable iommu for the fake device; force identity mapping */
137 pdev->dev.iommu = &fake_iommu;
138 #endif
139 if (!devres_open_group(&pdev->dev, NULL, GFP_KERNEL)) {
140 put_device(&pdev->dev);
141 return NULL;
142 }
143
144 i915 = devm_drm_dev_alloc(&pdev->dev, &mock_driver,
145 struct drm_i915_private, drm);
146 if (IS_ERR(i915)) {
> 147 pr_err("Failed to allocate mock GEM device: err=%d\n", PTR_ERR(i915));
148 devres_release_group(&pdev->dev, NULL);
149 put_device(&pdev->dev);
150
151 return NULL;
152 }
153
154 pci_set_drvdata(pdev, i915);
155 i915->drm.pdev = pdev;
156
157 dev_pm_domain_set(&pdev->dev, &pm_domain);
158 pm_runtime_enable(&pdev->dev);
159 pm_runtime_dont_use_autosuspend(&pdev->dev);
160 if (pm_runtime_enabled(&pdev->dev))
161 WARN_ON(pm_runtime_get_sync(&pdev->dev));
162
163
164 i915_params_copy(&i915->params, &i915_modparams);
165
166 intel_runtime_pm_init_early(&i915->runtime_pm);
167
168 /* Using the global GTT may ask questions about KMS users, so prepare */
169 drm_mode_config_init(&i915->drm);
170
171 mkwrite_device_info(i915)->gen = -1;
172
173 mkwrite_device_info(i915)->page_sizes =
174 I915_GTT_PAGE_SIZE_4K |
175 I915_GTT_PAGE_SIZE_64K |
176 I915_GTT_PAGE_SIZE_2M;
177
178 mkwrite_device_info(i915)->memory_regions = REGION_SMEM;
179 intel_memory_regions_hw_probe(i915);
180
181 mock_uncore_init(&i915->uncore, i915);
182
183 i915_gem_init__mm(i915);
184 intel_gt_init_early(&i915->gt, i915);
185 atomic_inc(&i915->gt.wakeref.count); /* disable; no hw support */
186 i915->gt.awake = -ENODEV;
187
188 i915->wq = alloc_ordered_workqueue("mock", 0);
189 if (!i915->wq)
190 goto err_drv;
191
192 mock_init_contexts(i915);
193
194 mock_init_ggtt(i915, &i915->ggtt);
195 i915->gt.vm = i915_vm_get(&i915->ggtt.vm);
196
197 mkwrite_device_info(i915)->platform_engine_mask = BIT(0);
198 i915->gt.info.engine_mask = BIT(0);
199
200 i915->gt.engine[RCS0] = mock_engine(i915, "mock", RCS0);
201 if (!i915->gt.engine[RCS0])
202 goto err_unlock;
203
204 if (mock_engine_init(i915->gt.engine[RCS0]))
205 goto err_context;
206
207 __clear_bit(I915_WEDGED, &i915->gt.reset.flags);
208 intel_engines_driver_register(i915);
209
210 i915->do_release = true;
211
212 return i915;
213
214 err_context:
215 intel_gt_driver_remove(&i915->gt);
216 err_unlock:
217 destroy_workqueue(i915->wq);
218 err_drv:
219 intel_gt_driver_late_release(&i915->gt);
220 intel_memory_regions_driver_release(i915);
221 drm_mode_config_cleanup(&i915->drm);
222 mock_destroy_device(i915);
223
224 return NULL;
225 }
226
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v9 5/9] ext4: main fast-commit commit path
by kernel test robot
Hi Harshad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on ext4/dev]
[also build test WARNING on linus/master v5.9-rc5 next-20200918]
[cannot apply to tip/perf/core tytso-fscrypt/master]
[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/Harshad-Shirwadkar/ext4-add-fast...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
config: arm-randconfig-s031-20200917 (attached as .config)
compiler: arm-linux-gnueabi-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.2-201-g24bdaac6-dirty
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
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 >>)
>> fs/ext4/fast_commit.c:806:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] ee_len @@ got restricted __le32 [usertype] @@
>> fs/ext4/fast_commit.c:806:36: sparse: expected restricted __le16 [usertype] ee_len
>> fs/ext4/fast_commit.c:806:36: sparse: got restricted __le32 [usertype]
# https://github.com/0day-ci/linux/commit/2384cbfbcf98b789d426c39b458c52adb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Harshad-Shirwadkar/ext4-add-fast-commits-feature/20200919-085652
git checkout 2384cbfbcf98b789d426c39b458c52adbb36d4f9
vim +806 fs/ext4/fast_commit.c
754
755 /*
756 * Writes updated data ranges for the inode in question. Updates CRC.
757 * Returns 0 on success, error otherwise.
758 */
759 static int ext4_fc_write_data(struct inode *inode, u32 *crc)
760 {
761 ext4_lblk_t old_blk_size, cur_lblk_off, new_blk_size;
762 struct ext4_inode_info *ei = EXT4_I(inode);
763 struct ext4_map_blocks map;
764 struct ext4_fc_add_range fc_ext;
765 struct ext4_fc_del_range lrange;
766 struct ext4_extent *ex;
767 int ret;
768
769 mutex_lock(&ei->i_fc_lock);
770 if (ei->i_fc_lblk_len == 0) {
771 mutex_unlock(&ei->i_fc_lock);
772 return 0;
773 }
774 old_blk_size = ei->i_fc_lblk_start;
775 new_blk_size = ei->i_fc_lblk_start + ei->i_fc_lblk_len - 1;
776 ei->i_fc_lblk_len = 0;
777 mutex_unlock(&ei->i_fc_lock);
778
779 cur_lblk_off = old_blk_size;
780 jbd_debug(1, "%s: will try writing %d to %d for inode %ld\n",
781 __func__, cur_lblk_off, new_blk_size, inode->i_ino);
782
783 while (cur_lblk_off <= new_blk_size) {
784 map.m_lblk = cur_lblk_off;
785 map.m_len = new_blk_size - cur_lblk_off + 1;
786 ret = ext4_map_blocks(NULL, inode, &map, 0);
787 if (ret < 0)
788 return -ECANCELED;
789
790 if (map.m_len == 0) {
791 cur_lblk_off++;
792 continue;
793 }
794
795 if (ret == 0) {
796 lrange.fc_ino = cpu_to_le32(inode->i_ino);
797 lrange.fc_lblk = cpu_to_le32(map.m_lblk);
798 lrange.fc_len = cpu_to_le32(map.m_len);
799 if (!ext4_fc_add_tlv(inode->i_sb, EXT4_FC_TAG_DEL_RANGE,
800 sizeof(lrange), (u8 *)&lrange, crc))
801 return -ENOSPC;
802 } else {
803 fc_ext.fc_ino = cpu_to_le32(inode->i_ino);
804 ex = (struct ext4_extent *)&fc_ext.fc_ex;
805 ex->ee_block = cpu_to_le32(map.m_lblk);
> 806 ex->ee_len = cpu_to_le32(map.m_len);
807 ext4_ext_store_pblock(ex, map.m_pblk);
808 if (map.m_flags & EXT4_MAP_UNWRITTEN)
809 ext4_ext_mark_unwritten(ex);
810 else
811 ext4_ext_mark_initialized(ex);
812 if (!ext4_fc_add_tlv(inode->i_sb, EXT4_FC_TAG_ADD_RANGE,
813 sizeof(fc_ext), (u8 *)&fc_ext, crc))
814 return -ENOSPC;
815 }
816
817 cur_lblk_off += map.m_len;
818 }
819
820 return 0;
821 }
822
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH for-next v5 06/12] rdma_rxe: Add memory access through MWs
by kernel test robot
Hi Bob,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on rdma/for-next]
[also build test WARNING on v5.9-rc5 next-20200918]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Bob-Pearson/rdma_rxe-API-extensi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: riscv-randconfig-r031-20200917 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed79827aea444e6995fb3d36abc2bfd36331773c)
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
# 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 warnings (new ones prefixed by >>):
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:556:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inb(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:54:76: note: expanded from macro 'inb'
#define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:87:48: note: expanded from macro 'readb_cpu'
#define readb_cpu(c) ({ u8 __r = __raw_readb(c); __r; })
^
In file included from drivers/infiniband/sw/rxe/rxe_mr.c:7:
In file included from drivers/infiniband/sw/rxe/rxe.h:16:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:564:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inw(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:55:76: note: expanded from macro 'inw'
#define inw(c) ({ u16 __v; __io_pbr(); __v = readw_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:88:76: note: expanded from macro 'readw_cpu'
#define readw_cpu(c) ({ u16 __r = le16_to_cpu((__force __le16)__raw_readw(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/infiniband/sw/rxe/rxe_mr.c:7:
In file included from drivers/infiniband/sw/rxe/rxe.h:16:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/infiniband/sw/rxe/rxe_mr.c:7:
In file included from drivers/infiniband/sw/rxe/rxe.h:16:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:58:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from drivers/infiniband/sw/rxe/rxe_mr.c:7:
In file included from drivers/infiniband/sw/rxe/rxe.h:16:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from drivers/infiniband/sw/rxe/rxe_mr.c:7:
In file included from drivers/infiniband/sw/rxe/rxe.h:16:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from drivers/infiniband/sw/rxe/rxe_mr.c:7:
In file included from drivers/infiniband/sw/rxe/rxe.h:16:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:148:
include/asm-generic/io.h:1017:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> drivers/infiniband/sw/rxe/rxe_mr.c:531:5: warning: no previous prototype for function 'rxe_invalidate_mr' [-Wmissing-prototypes]
int rxe_invalidate_mr(struct rxe_qp *qp, struct rxe_mr *mr)
^
drivers/infiniband/sw/rxe/rxe_mr.c:531:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int rxe_invalidate_mr(struct rxe_qp *qp, struct rxe_mr *mr)
^
static
8 warnings generated.
# https://github.com/0day-ci/linux/commit/ea6524464bcccdce769f9a046224290a5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bob-Pearson/rdma_rxe-API-extensions/20200919-051909
git checkout ea6524464bcccdce769f9a046224290a51dee110
vim +/rxe_invalidate_mr +531 drivers/infiniband/sw/rxe/rxe_mr.c
530
> 531 int rxe_invalidate_mr(struct rxe_qp *qp, struct rxe_mr *mr)
532 {
533 mr->state = RXE_MEM_STATE_FREE;
534 return 0;
535 }
536
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[mlankhorst:locking-rework 13/36] drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2255:52: error: 'struct i915_gem_mm' has no member named 'notifier_lock'
by kernel test robot
tree: git://people.freedesktop.org/~mlankhorst/linux locking-rework
head: c19d2554f1d542e2aac63116de7321ef2bb09672
commit: 0069ee1958917c4bd2503cc6a749f414c5fa74a0 [13/36] drm/i915: Fix userptr so we do not have to worry about obj->mm.lock
config: i386-randconfig-a006-20200918 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 0069ee1958917c4bd2503cc6a749f414c5fa74a0
# 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 >>):
In file included from include/linux/rhashtable-types.h:14,
from include/linux/ipc.h:7,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/dma-mapping.h:7,
from include/linux/iova.h:16,
from include/linux/intel-iommu.h:14,
from drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:7:
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c: In function 'eb_move_to_gpu':
>> drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2255:52: error: 'struct i915_gem_mm' has no member named 'notifier_lock'
2255 | !(err = mutex_lock_interruptible(&eb->i915->mm.notifier_lock))) {
| ^
include/linux/mutex.h:168:72: note: in definition of macro 'mutex_lock_interruptible'
168 | #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0)
| ^~~~
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2270:29: error: 'struct i915_gem_mm' has no member named 'notifier_lock'
2270 | mutex_unlock(&eb->i915->mm.notifier_lock);
| ^
git remote add mlankhorst git://people.freedesktop.org/~mlankhorst/linux
git fetch --no-tags mlankhorst locking-rework
git checkout 0069ee1958917c4bd2503cc6a749f414c5fa74a0
vim +2255 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
2201
2202 static int eb_move_to_gpu(struct i915_execbuffer *eb)
2203 {
2204 const unsigned int count = eb->buffer_count;
2205 unsigned int i = count;
2206 int err = 0;
2207
2208 while (i--) {
2209 struct eb_vma *ev = &eb->vma[i];
2210 struct i915_vma *vma = ev->vma;
2211 unsigned int flags = ev->flags;
2212 struct drm_i915_gem_object *obj = vma->obj;
2213
2214 assert_vma_held(vma);
2215
2216 if (flags & EXEC_OBJECT_CAPTURE) {
2217 struct i915_capture_list *capture;
2218
2219 capture = kmalloc(sizeof(*capture), GFP_KERNEL);
2220 if (capture) {
2221 capture->next = eb->request->capture_list;
2222 capture->vma = vma;
2223 eb->request->capture_list = capture;
2224 }
2225 }
2226
2227 /*
2228 * If the GPU is not _reading_ through the CPU cache, we need
2229 * to make sure that any writes (both previous GPU writes from
2230 * before a change in snooping levels and normal CPU writes)
2231 * caught in that cache are flushed to main memory.
2232 *
2233 * We want to say
2234 * obj->cache_dirty &&
2235 * !(obj->cache_coherent & I915_BO_CACHE_COHERENT_FOR_READ)
2236 * but gcc's optimiser doesn't handle that as well and emits
2237 * two jumps instead of one. Maybe one day...
2238 */
2239 if (unlikely(obj->cache_dirty & ~obj->cache_coherent)) {
2240 if (i915_gem_clflush_object(obj, 0))
2241 flags &= ~EXEC_OBJECT_ASYNC;
2242 }
2243
2244 if (err == 0 && !(flags & EXEC_OBJECT_ASYNC)) {
2245 err = i915_request_await_object
2246 (eb->request, obj, flags & EXEC_OBJECT_WRITE);
2247 }
2248
2249 if (err == 0)
2250 err = i915_vma_move_to_active(vma, eb->request,
2251 flags | __EXEC_OBJECT_NO_RESERVE);
2252 }
2253
2254 if (!err && (eb->args->flags & __EXEC_USERPTR_USED) &&
> 2255 !(err = mutex_lock_interruptible(&eb->i915->mm.notifier_lock))) {
2256 i = count;
2257
2258 while (i--) {
2259 struct eb_vma *ev = &eb->vma[i];
2260 struct drm_i915_gem_object *obj = ev->vma->obj;
2261
2262 if (!i915_gem_object_is_userptr(obj))
2263 continue;
2264
2265 err = i915_gem_object_userptr_submit_done(obj);
2266 if (err)
2267 break;
2268 }
2269
2270 mutex_unlock(&eb->i915->mm.notifier_lock);
2271 }
2272
2273 if (unlikely(err))
2274 goto err_skip;
2275
2276 /* Unconditionally flush any chipset caches (for streaming writes). */
2277 intel_gt_chipset_flush(eb->engine->gt);
2278 return 0;
2279
2280 err_skip:
2281 i915_request_set_error_once(eb->request, err);
2282 return err;
2283 }
2284
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-review:UPDATE-20200919-040329/Daniel-Vetter/managed-drm_device-absolute-final-leftover-bits/20200918-212606 2/4] drivers/gpu/drm/i915/selftests/mock_gem_device.c:124:6: error: unused variable 'err'
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200919-040329/Daniel-Ve...
head: 94cdb5aa39405ff16ad98f65a8d44e9a8e55dac7
commit: 0eecbea55f799c9e404dcc6e3249af908252a240 [2/4] drm/i915/selftests: align more to real device lifetimes
config: i386-randconfig-a006-20200917 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 0eecbea55f799c9e404dcc6e3249af908252a240
# 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 >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from arch/x86/include/asm/bug.h:93,
from include/linux/bug.h:5,
from include/drm/drm_mm.h:40,
from include/drm/drm_vma_manager.h:26,
from drivers/gpu/drm/i915/i915_gem.c:28:
drivers/gpu/drm/i915/selftests/mock_gem_device.c: In function 'mock_gem_device':
>> include/linux/kern_levels.h:5:18: error: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:339:9: note: in expansion of macro 'KERN_ERR'
339 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/gpu/drm/i915/selftests/mock_gem_device.c:147:3: note: in expansion of macro 'pr_err'
147 | pr_err("Failed to allocate mock GEM device: err=%d\n", PTR_ERR(i915));
| ^~~~~~
In file included from drivers/gpu/drm/i915/i915_gem.c:1397:
drivers/gpu/drm/i915/selftests/mock_gem_device.c:147:52: note: format string is defined here
147 | pr_err("Failed to allocate mock GEM device: err=%d\n", PTR_ERR(i915));
| ~^
| |
| int
| %ld
>> drivers/gpu/drm/i915/selftests/mock_gem_device.c:124:6: error: unused variable 'err' [-Werror=unused-variable]
124 | int err;
| ^~~
cc1: all warnings being treated as errors
# https://github.com/0day-ci/linux/commit/0eecbea55f799c9e404dcc6e3249af908...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20200919-040329/Daniel-Vetter/managed-drm_device-absolute-final-leftover-bits/20200918-212606
git checkout 0eecbea55f799c9e404dcc6e3249af908252a240
vim +/err +124 drivers/gpu/drm/i915/selftests/mock_gem_device.c
1a0c19248a2f69 Chris Wilson 2017-07-18 116
66d9cb5d805af7 Chris Wilson 2017-02-13 117 struct drm_i915_private *mock_gem_device(void)
66d9cb5d805af7 Chris Wilson 2017-02-13 118 {
01b9d4e21148c8 Joerg Roedel 2020-06-25 119 #if IS_ENABLED(CONFIG_IOMMU_API) && defined(CONFIG_INTEL_IOMMU)
9f9f4101fc98db Chris Wilson 2020-09-16 120 static struct dev_iommu fake_iommu = { .priv = (void *)-1 };
01b9d4e21148c8 Joerg Roedel 2020-06-25 121 #endif
9f9f4101fc98db Chris Wilson 2020-09-16 122 struct drm_i915_private *i915;
9f9f4101fc98db Chris Wilson 2020-09-16 123 struct pci_dev *pdev;
66d9cb5d805af7 Chris Wilson 2017-02-13 @124 int err;
66d9cb5d805af7 Chris Wilson 2017-02-13 125
7fb81e9d80738e Daniel Vetter 2020-03-23 126 pdev = kzalloc(sizeof(*pdev), GFP_KERNEL);
66d9cb5d805af7 Chris Wilson 2017-02-13 127 if (!pdev)
7fb81e9d80738e Daniel Vetter 2020-03-23 128 return NULL;
66d9cb5d805af7 Chris Wilson 2017-02-13 129 device_initialize(&pdev->dev);
29f31623d7a830 Chris Wilson 2017-05-18 130 pdev->class = PCI_BASE_CLASS_DISPLAY << 16;
66d9cb5d805af7 Chris Wilson 2017-02-13 131 pdev->dev.release = release_dev;
66d9cb5d805af7 Chris Wilson 2017-02-13 132 dev_set_name(&pdev->dev, "mock");
d58f0083d39a17 Chris Wilson 2019-01-07 133 dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
66d9cb5d805af7 Chris Wilson 2017-02-13 134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[hch-misc:blkdev_get-cleanups 8/14] drivers/s390/block/dasd_genhd.c:108:10: warning: format specifies type 'long' but the argument has type 'bool' (aka '_Bool')
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git blkdev_get-cleanups
head: 55dac63d56fe4cf5e47acc2fa99ac6213d6c96c1
commit: 2acfd13168491a99627a7452856a49c851a3e165 [8/14] dasd: cleanup dasd_scan_partitions
config: s390-randconfig-r004-20200917 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
git checkout 2acfd13168491a99627a7452856a49c851a3e165
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
^
In file included from drivers/s390/block/dasd_genhd.c:25:
In file included from drivers/s390/block/dasd_int.h:49:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from drivers/s390/block/dasd_genhd.c:25:
In file included from drivers/s390/block/dasd_int.h:49:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from drivers/s390/block/dasd_genhd.c:25:
In file included from drivers/s390/block/dasd_int.h:49:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from drivers/s390/block/dasd_genhd.c:25:
In file included from drivers/s390/block/dasd_int.h:49:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from drivers/s390/block/dasd_genhd.c:25:
In file included from drivers/s390/block/dasd_int.h:49:
In file included from include/linux/blkdev.h:25:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/s390/block/dasd_genhd.c:108:10: warning: format specifies type 'long' but the argument has type 'bool' (aka '_Bool') [-Wformat]
IS_ERR(bdev));
^~~~~~~~~~~~
drivers/s390/block/dasd_int.h:96:8: note: expanded from macro 'DBF_DEV_EVENT'
d_data); \
^~~~~~
arch/s390/include/asm/debug.h:256:21: note: expanded from macro 'debug_sprintf_event'
_fmt, ## __VA_ARGS__); \
~~~~ ^~~~~~~~~~~
21 warnings generated.
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc blkdev_get-cleanups
git checkout 2acfd13168491a99627a7452856a49c851a3e165
vim +108 drivers/s390/block/dasd_genhd.c
95
96 /*
97 * Trigger a partition detection.
98 */
99 int dasd_scan_partitions(struct dasd_block *block)
100 {
101 struct block_device *bdev;
102 int rc;
103
104 bdev = blkdev_get_by_dev(disk_devt(block->gdp), FMODE_READ, NULL);
105 if (IS_ERR(bdev)) {
106 DBF_DEV_EVENT(DBF_ERR, block->base,
107 "scan partitions error, blkdev_get returned %ld",
> 108 IS_ERR(bdev));
109 return -ENODEV;
110 }
111
112 mutex_lock(&bdev->bd_mutex);
113 rc = bdev_disk_changed(bdev, false);
114 mutex_unlock(&bdev->bd_mutex);
115 if (rc)
116 DBF_DEV_EVENT(DBF_ERR, block->base,
117 "scan partitions error, rc %d", rc);
118
119 /*
120 * Since the matching blkdev_put call to the blkdev_get in
121 * this function is not called before dasd_destroy_partitions
122 * the offline open_count limit needs to be increased from
123 * 0 to 1. This is done by setting device->bdev (see
124 * dasd_generic_set_offline). As long as the partition
125 * detection is running no offline should be allowed. That
126 * is why the assignment to device->bdev is done AFTER
127 * the BLKRRPART ioctl.
128 */
129 block->bdev = bdev;
130 return 0;
131 }
132
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [RFC v1 08/12] kunit: mock: add basic matchers and actions
by kernel test robot
Hi Daniel,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on 10b82d5176488acee2820e5a2cf0f2ec5c3488b6]
url: https://github.com/0day-ci/linux/commits/Daniel-Latypov/kunit-introduce-c...
base: 10b82d5176488acee2820e5a2cf0f2ec5c3488b6
config: arm-randconfig-r013-20200917 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'to_mock_u8_matcher' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:37:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
to_mock_##type_name##_matcher( \
^
<scratch space>:32:1: note: expanded from here
to_mock_u8_matcher
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:36:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
struct mock_##type_name##_matcher * \
^
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'match_u8_eq' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:42:1: note: expanded from here
match_u8_eq
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'match_u8_ne' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:92:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ne, !=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:59:1: note: expanded from here
match_u8_ne
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:92:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ne, !=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'match_u8_le' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:94:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, le, <=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:76:1: note: expanded from here
match_u8_le
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:94:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, le, <=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'match_u8_lt' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:96:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, lt, <) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:93:1: note: expanded from here
match_u8_lt
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:96:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, lt, <) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'match_u8_ge' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:98:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ge, >=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:110:1: note: expanded from here
match_u8_ge
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:98:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ge, >=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:105:1: warning: no previous prototype for function 'match_u8_gt' [-Wmissing-prototypes]
DEFINE_MATCHER(u8);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:100:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, gt, >) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:127:1: note: expanded from here
match_u8_gt
^
lib/kunit/common-mocks.c:105:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:100:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, gt, >) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'to_mock_u16_matcher' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:37:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
to_mock_##type_name##_matcher( \
^
<scratch space>:145:1: note: expanded from here
to_mock_u16_matcher
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:36:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
struct mock_##type_name##_matcher * \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'match_u16_eq' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:155:1: note: expanded from here
match_u16_eq
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'match_u16_ne' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:92:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ne, !=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:172:1: note: expanded from here
match_u16_ne
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:92:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ne, !=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'match_u16_le' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:94:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, le, <=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:189:1: note: expanded from here
match_u16_le
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:94:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, le, <=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'match_u16_lt' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:96:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, lt, <) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:206:1: note: expanded from here
match_u16_lt
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:96:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, lt, <) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'match_u16_ge' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:98:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ge, >=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:223:1: note: expanded from here
match_u16_ge
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:98:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ge, >=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:106:1: warning: no previous prototype for function 'match_u16_gt' [-Wmissing-prototypes]
DEFINE_MATCHER(u16);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:100:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, gt, >) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:240:1: note: expanded from here
match_u16_gt
^
lib/kunit/common-mocks.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:100:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, gt, >) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'to_mock_u32_matcher' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:37:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
to_mock_##type_name##_matcher( \
^
<scratch space>:258:1: note: expanded from here
to_mock_u32_matcher
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:36:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
struct mock_##type_name##_matcher * \
^
>> lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'match_u32_eq' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:268:1: note: expanded from here
match_u32_eq
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'match_u32_ne' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:92:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ne, !=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:285:1: note: expanded from here
match_u32_ne
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:92:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ne, !=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'match_u32_le' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:94:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, le, <=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:302:1: note: expanded from here
match_u32_le
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:94:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, le, <=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'match_u32_lt' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:96:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, lt, <) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:15:1: note: expanded from here
match_u32_lt
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:96:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, lt, <) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
>> lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'match_u32_ge' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:98:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ge, >=) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:32:1: note: expanded from here
match_u32_ge
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:98:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, ge, >=) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
lib/kunit/common-mocks.c:107:1: warning: no previous prototype for function 'match_u32_gt' [-Wmissing-prototypes]
DEFINE_MATCHER(u32);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:100:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, gt, >) \
^
lib/kunit/common-mocks.c:46:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
<scratch space>:49:1: note: expanded from here
match_u32_gt
^
lib/kunit/common-mocks.c:107:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:100:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, gt, >) \
^
lib/kunit/common-mocks.c:46:3: note: expanded from macro 'DEFINE_MATCH_FUNC'
bool match_##type_name##_##op_name( \
^
lib/kunit/common-mocks.c:108:1: warning: no previous prototype for function 'to_mock_u64_matcher' [-Wmissing-prototypes]
DEFINE_MATCHER(u64);
^
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:37:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
to_mock_##type_name##_matcher( \
^
<scratch space>:67:1: note: expanded from here
to_mock_u64_matcher
^
lib/kunit/common-mocks.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^
lib/kunit/common-mocks.c:89:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_TO_MATCHER_STRUCT(type_name) \
^
lib/kunit/common-mocks.c:36:3: note: expanded from macro 'DEFINE_TO_MATCHER_STRUCT'
struct mock_##type_name##_matcher * \
^
lib/kunit/common-mocks.c:108:1: warning: format specifies type 'int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
DEFINE_MATCHER(u64);
^~~~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:59:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
actual, \
^~~~~~
lib/kunit/common-mocks.c:108:1: warning: format specifies type 'int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
DEFINE_MATCHER(u64);
^~~~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:103:30: note: expanded from macro 'DEFINE_MATCHER'
#define DEFINE_MATCHER(type) DEFINE_MATCHER_WITH_TYPENAME(type, type)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:90:3: note: expanded from macro 'DEFINE_MATCHER_WITH_TYPENAME'
DEFINE_MATCH_FUNC(type_name, type, eq, ==) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:60:8: note: expanded from macro 'DEFINE_MATCH_FUNC'
matcher->expected); \
^~~~~~~~~~~~~~~~~
lib/kunit/common-mocks.c:108:1: warning: format specifies type 'int' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
DEFINE_MATCHER(u64);
# https://github.com/0day-ci/linux/commit/32db0336f68431c2ad957f5dcd80ce827...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Latypov/kunit-introduce-class-mocking-support/20200919-023253
git checkout 32db0336f68431c2ad957f5dcd80ce827488660f
vim +/to_mock_u8_matcher +105 lib/kunit/common-mocks.c
104
> 105 DEFINE_MATCHER(u8);
> 106 DEFINE_MATCHER(u16);
> 107 DEFINE_MATCHER(u32);
> 108 DEFINE_MATCHER(u64);
> 109 DEFINE_MATCHER(char);
> 110 DEFINE_MATCHER_WITH_TYPENAME(uchar, unsigned char);
> 111 DEFINE_MATCHER_WITH_TYPENAME(schar, signed char);
> 112 DEFINE_MATCHER(short);
> 113 DEFINE_MATCHER_WITH_TYPENAME(ushort, unsigned short);
> 114 DEFINE_MATCHER(int);
> 115 DEFINE_MATCHER_WITH_TYPENAME(uint, unsigned int);
> 116 DEFINE_MATCHER(long);
> 117 DEFINE_MATCHER_WITH_TYPENAME(ulong, unsigned long);
> 118 DEFINE_MATCHER_WITH_TYPENAME(longlong, long long);
> 119 DEFINE_MATCHER_WITH_TYPENAME(ulonglong, unsigned long long);
120
> 121 DEFINE_MATCHER_WITH_TYPENAME(ptr, void *);
122
123 struct mock_memeq_matcher {
124 struct mock_param_matcher matcher;
125 const void *expected;
126 size_t size;
127 };
128
129 static bool match_memeq(struct mock_param_matcher *pmatcher,
130 struct kunit_stream *stream,
131 const void *pactual)
132 {
133 struct mock_memeq_matcher *matcher =
134 container_of(pmatcher,
135 struct mock_memeq_matcher,
136 matcher);
137 const void *actual = CONVERT_TO_ACTUAL_TYPE(const void *, pactual);
138 bool matches = !memcmp(actual, matcher->expected, matcher->size);
139 int i;
140
141 for (i = 0; i < matcher->size; i++)
142 kunit_stream_add(stream, "%02x, ", ((const char *) actual)[i]);
143 if (matches)
144 kunit_stream_add(stream, "== ");
145 else
146 kunit_stream_add(stream, "!= ");
147 for (i = 0; i < matcher->size; i++)
148 kunit_stream_add(stream,
149 "%02x, ",
150 ((const char *) matcher->expected)[i]);
151
152 return matches;
153 }
154
155 struct mock_param_matcher *kunit_memeq(struct kunit *test,
156 const void *buf,
157 size_t size)
158 {
159 struct mock_memeq_matcher *matcher;
160
161 matcher = kunit_kzalloc(test, sizeof(*matcher), GFP_KERNEL);
162 if (!matcher)
163 return NULL;
164
165 matcher->matcher.match = match_memeq;
166 matcher->expected = buf;
167 matcher->size = size;
168
169 return &matcher->matcher;
170 }
171
172 struct mock_streq_matcher {
173 struct mock_param_matcher matcher;
174 const char *expected;
175 };
176
177 static bool match_streq(struct mock_param_matcher *pmatcher,
178 struct kunit_stream *stream,
179 const void *pactual)
180 {
181 struct mock_streq_matcher *matcher =
182 container_of(pmatcher,
183 struct mock_streq_matcher,
184 matcher);
185 const char *actual = CONVERT_TO_ACTUAL_TYPE(const char *, pactual);
186 bool matches = !strcmp(actual, matcher->expected);
187
188 if (matches)
189 kunit_stream_add(stream, "%s == %s", actual, matcher->expected);
190 else
191 kunit_stream_add(stream, "%s != %s", actual, matcher->expected);
192
193 return matches;
194 }
195
196 struct mock_param_matcher *kunit_streq(struct kunit *test, const char *str)
197 {
198 struct mock_streq_matcher *matcher;
199
200 matcher = kunit_kzalloc(test, sizeof(*matcher), GFP_KERNEL);
201 if (!matcher)
202 return NULL;
203
204 matcher->matcher.match = match_streq;
205 matcher->expected = str;
206
207 return &matcher->matcher;
208 }
209
210 #define DEFINE_RETURN_ACTION_STRUCT(type_name, type) \
211 struct mock_##type_name##_action { \
212 struct mock_action action; \
213 type ret; \
214 }
215
216 #define DEFINE_RETURN_ACTION_FUNC(type_name, type) \
217 void *do_##type_name##_return(struct mock_action *paction, \
218 const void **params, \
219 int len) \
220 { \
221 struct mock_##type_name##_action *action = \
222 container_of(paction, \
223 struct mock_##type_name##_action,\
224 action); \
225 \
226 return (void *) &action->ret; \
227 }
228
229 #define DEFINE_RETURN_ACTION_FACTORY(type_name, type) \
230 struct mock_action *kunit_##type_name##_return( \
231 struct kunit *test, \
232 type ret) \
233 { \
234 struct mock_##type_name##_action *action; \
235 \
236 action = kunit_kmalloc(test, \
237 sizeof(*action), \
238 GFP_KERNEL); \
239 if (!action) \
240 return NULL; \
241 \
242 action->action.do_action = do_##type_name##_return; \
243 action->ret = ret; \
244 \
245 return &action->action; \
246 }
247
248 #define DEFINE_RETURN_ACTION_WITH_TYPENAME(type_name, type) \
249 DEFINE_RETURN_ACTION_STRUCT(type_name, type); \
250 DEFINE_RETURN_ACTION_FUNC(type_name, type); \
251 DEFINE_RETURN_ACTION_FACTORY(type_name, type)
252
253 #define DEFINE_RETURN_ACTION(type) \
254 DEFINE_RETURN_ACTION_WITH_TYPENAME(type, type)
255
> 256 DEFINE_RETURN_ACTION(u8);
> 257 DEFINE_RETURN_ACTION(u16);
> 258 DEFINE_RETURN_ACTION(u32);
> 259 DEFINE_RETURN_ACTION(u64);
> 260 DEFINE_RETURN_ACTION(char);
> 261 DEFINE_RETURN_ACTION_WITH_TYPENAME(uchar, unsigned char);
> 262 DEFINE_RETURN_ACTION_WITH_TYPENAME(schar, signed char);
> 263 DEFINE_RETURN_ACTION(short);
> 264 DEFINE_RETURN_ACTION_WITH_TYPENAME(ushort, unsigned short);
> 265 DEFINE_RETURN_ACTION(int);
> 266 DEFINE_RETURN_ACTION_WITH_TYPENAME(uint, unsigned int);
> 267 DEFINE_RETURN_ACTION(long);
> 268 DEFINE_RETURN_ACTION_WITH_TYPENAME(ulong, unsigned long);
> 269 DEFINE_RETURN_ACTION_WITH_TYPENAME(longlong, long long);
> 270 DEFINE_RETURN_ACTION_WITH_TYPENAME(ulonglong, unsigned long long);
> 271 DEFINE_RETURN_ACTION_WITH_TYPENAME(ptr, void *);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[vkoul-dmaengine:topic/tasklet 81/81] drivers/dma/fsl_raid.c:166:45: error: 'data' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git topic/tasklet
head: 59cd818763e8b12e85f28e27fa0a6821faf45660
commit: 59cd818763e8b12e85f28e27fa0a6821faf45660 [81/81] dmaengine: fsl: convert tasklets to use new tasklet_setup() API
config: powerpc-randconfig-r014-20200917 (attached as .config)
compiler: powerpc-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
git checkout 59cd818763e8b12e85f28e27fa0a6821faf45660
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/dma/fsl_raid.c: In function 'fsl_re_dequeue':
>> drivers/dma/fsl_raid.c:166:45: error: 'data' undeclared (first use in this function); did you mean '_data'?
166 | re_chan = dev_get_drvdata((struct device *)data);
| ^~~~
| _data
drivers/dma/fsl_raid.c:166:45: note: each undeclared identifier is reported only once for each function it appears in
drivers/dma/fsl_raid.c: In function 'fsl_re_prep_dma_genq':
drivers/dma/fsl_raid.c:338:11: warning: ordered comparison of pointer with integer zero [-Wextra]
338 | if (desc <= 0)
| ^~
drivers/dma/fsl_raid.c: In function 'fsl_re_prep_dma_pq':
drivers/dma/fsl_raid.c:462:11: warning: ordered comparison of pointer with integer zero [-Wextra]
462 | if (desc <= 0)
| ^~
drivers/dma/fsl_raid.c: In function 'fsl_re_prep_dma_memcpy':
drivers/dma/fsl_raid.c:546:11: warning: ordered comparison of pointer with integer zero [-Wextra]
546 | if (desc <= 0)
| ^~
# https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/commi...
git remote add vkoul-dmaengine https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git
git fetch --no-tags vkoul-dmaengine topic/tasklet
git checkout 59cd818763e8b12e85f28e27fa0a6821faf45660
vim +166 drivers/dma/fsl_raid.c
ad80da658bbcaa Xuelin Shi 2015-03-03 156
59cd818763e8b1 Allen Pais 2020-08-31 157 static void fsl_re_dequeue(struct tasklet_struct *t)
ad80da658bbcaa Xuelin Shi 2015-03-03 158 {
59cd818763e8b1 Allen Pais 2020-08-31 159 struct fsl_re_chan *re_chan = from_tasklet(re_chan, t, irqtask);
ad80da658bbcaa Xuelin Shi 2015-03-03 160 struct fsl_re_desc *desc, *_desc;
ad80da658bbcaa Xuelin Shi 2015-03-03 161 struct fsl_re_hw_desc *hwdesc;
ad80da658bbcaa Xuelin Shi 2015-03-03 162 unsigned long flags;
ad80da658bbcaa Xuelin Shi 2015-03-03 163 unsigned int count, oub_count;
ad80da658bbcaa Xuelin Shi 2015-03-03 164 int found;
ad80da658bbcaa Xuelin Shi 2015-03-03 165
ad80da658bbcaa Xuelin Shi 2015-03-03 @166 re_chan = dev_get_drvdata((struct device *)data);
ad80da658bbcaa Xuelin Shi 2015-03-03 167
ad80da658bbcaa Xuelin Shi 2015-03-03 168 fsl_re_cleanup_descs(re_chan);
ad80da658bbcaa Xuelin Shi 2015-03-03 169
ad80da658bbcaa Xuelin Shi 2015-03-03 170 spin_lock_irqsave(&re_chan->desc_lock, flags);
ad80da658bbcaa Xuelin Shi 2015-03-03 171 count = FSL_RE_SLOT_FULL(in_be32(&re_chan->jrregs->oubring_slot_full));
ad80da658bbcaa Xuelin Shi 2015-03-03 172 while (count--) {
ad80da658bbcaa Xuelin Shi 2015-03-03 173 found = 0;
ad80da658bbcaa Xuelin Shi 2015-03-03 174 hwdesc = &re_chan->oub_ring_virt_addr[re_chan->oub_count];
ad80da658bbcaa Xuelin Shi 2015-03-03 175 list_for_each_entry_safe(desc, _desc, &re_chan->active_q,
ad80da658bbcaa Xuelin Shi 2015-03-03 176 node) {
ad80da658bbcaa Xuelin Shi 2015-03-03 177 /* compare the hw dma addr to find the completed */
ad80da658bbcaa Xuelin Shi 2015-03-03 178 if (desc->hwdesc.lbea32 == hwdesc->lbea32 &&
ad80da658bbcaa Xuelin Shi 2015-03-03 179 desc->hwdesc.addr_low == hwdesc->addr_low) {
ad80da658bbcaa Xuelin Shi 2015-03-03 180 found = 1;
ad80da658bbcaa Xuelin Shi 2015-03-03 181 break;
ad80da658bbcaa Xuelin Shi 2015-03-03 182 }
ad80da658bbcaa Xuelin Shi 2015-03-03 183 }
ad80da658bbcaa Xuelin Shi 2015-03-03 184
ad80da658bbcaa Xuelin Shi 2015-03-03 185 if (found) {
ad80da658bbcaa Xuelin Shi 2015-03-03 186 fsl_re_desc_done(desc);
ad80da658bbcaa Xuelin Shi 2015-03-03 187 list_move_tail(&desc->node, &re_chan->ack_q);
ad80da658bbcaa Xuelin Shi 2015-03-03 188 } else {
ad80da658bbcaa Xuelin Shi 2015-03-03 189 dev_err(re_chan->dev,
ad80da658bbcaa Xuelin Shi 2015-03-03 190 "found hwdesc not in sw queue, discard it\n");
ad80da658bbcaa Xuelin Shi 2015-03-03 191 }
ad80da658bbcaa Xuelin Shi 2015-03-03 192
ad80da658bbcaa Xuelin Shi 2015-03-03 193 oub_count = (re_chan->oub_count + 1) & FSL_RE_RING_SIZE_MASK;
ad80da658bbcaa Xuelin Shi 2015-03-03 194 re_chan->oub_count = oub_count;
ad80da658bbcaa Xuelin Shi 2015-03-03 195
ad80da658bbcaa Xuelin Shi 2015-03-03 196 out_be32(&re_chan->jrregs->oubring_job_rmvd,
ad80da658bbcaa Xuelin Shi 2015-03-03 197 FSL_RE_RMVD_JOB(1));
ad80da658bbcaa Xuelin Shi 2015-03-03 198 }
ad80da658bbcaa Xuelin Shi 2015-03-03 199 spin_unlock_irqrestore(&re_chan->desc_lock, flags);
ad80da658bbcaa Xuelin Shi 2015-03-03 200 }
ad80da658bbcaa Xuelin Shi 2015-03-03 201
:::::: The code at line 166 was first introduced by commit
:::::: ad80da658bbcaaac1d3617ea6cb0f4d5e16da422 dmaengine: Driver support for FSL RaidEngine device.
:::::: TO: Xuelin Shi <xuelin.shi(a)freescale.com>
:::::: CC: Vinod Koul <vinod.koul(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[mips-linux:mips-next 41/54] arch/mips/include/asm/pgtable-bits.h:258:33: error: '_CACHE_SHIFT' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head: d41afc398fbc9dfb8c40b951e97a7f0283346c6a
commit: 95b1f6db67aea9135b018497f7ed4446a060cba2 [41/54] MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA
config: mips-jmr3927_defconfig (attached as .config)
compiler: mips-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
git checkout 95b1f6db67aea9135b018497f7ed4446a060cba2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 arch/mips/include/asm/io.h:30,
from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:61,
from include/linux/wait.h:9,
from include/linux/pid.h:6,
from include/linux/sched.h:14,
from include/linux/ptrace.h:6,
from arch/mips/kernel/cpu-probe.c:12:
arch/mips/kernel/cpu-probe.c: In function 'cpu_probe_ingenic':
>> arch/mips/include/asm/pgtable-bits.h:258:33: error: '_CACHE_SHIFT' undeclared (first use in this function); did you mean 'L1_CACHE_SHIFT'?
258 | #define _CACHE_CACHABLE_WA (1<<_CACHE_SHIFT)
| ^~~~~~~~~~~~
arch/mips/kernel/cpu-probe.c:2173:21: note: in expansion of macro '_CACHE_CACHABLE_WA'
2173 | c->writecombine = _CACHE_CACHABLE_WA;
| ^~~~~~~~~~~~~~~~~~
arch/mips/include/asm/pgtable-bits.h:258:33: note: each undeclared identifier is reported only once for each function it appears in
258 | #define _CACHE_CACHABLE_WA (1<<_CACHE_SHIFT)
| ^~~~~~~~~~~~
arch/mips/kernel/cpu-probe.c:2173:21: note: in expansion of macro '_CACHE_CACHABLE_WA'
2173 | c->writecombine = _CACHE_CACHABLE_WA;
| ^~~~~~~~~~~~~~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id...
git remote add mips-linux https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git
git fetch --no-tags mips-linux mips-next
git checkout 95b1f6db67aea9135b018497f7ed4446a060cba2
vim +258 arch/mips/include/asm/pgtable-bits.h
^1da177e4c3f41 include/asm-mips/pgtable-bits.h Linus Torvalds 2005-04-16 253
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 254 #ifndef _CACHE_CACHABLE_NO_WA
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 255 #define _CACHE_CACHABLE_NO_WA (0<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 256 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 257 #ifndef _CACHE_CACHABLE_WA
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 @258 #define _CACHE_CACHABLE_WA (1<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 259 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 260 #ifndef _CACHE_UNCACHED
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 261 #define _CACHE_UNCACHED (2<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 262 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 263 #ifndef _CACHE_CACHABLE_NONCOHERENT
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 264 #define _CACHE_CACHABLE_NONCOHERENT (3<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 265 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 266 #ifndef _CACHE_CACHABLE_CE
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 267 #define _CACHE_CACHABLE_CE (4<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 268 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 269 #ifndef _CACHE_CACHABLE_COW
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 270 #define _CACHE_CACHABLE_COW (5<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 271 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 272 #ifndef _CACHE_CACHABLE_CUW
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 273 #define _CACHE_CACHABLE_CUW (6<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 274 #endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 275 #ifndef _CACHE_UNCACHED_ACCELERATED
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 276 #define _CACHE_UNCACHED_ACCELERATED (7<<_CACHE_SHIFT)
^1da177e4c3f41 include/asm-mips/pgtable-bits.h Linus Torvalds 2005-04-16 277 #endif
^1da177e4c3f41 include/asm-mips/pgtable-bits.h Linus Torvalds 2005-04-16 278
:::::: The code at line 258 was first introduced by commit
:::::: fb02035083d9e2de1deba529b45835a698944f07 MIPS: pgtable-bits: Move the CCA bits out of the core's ifdef blocks
:::::: TO: Markos Chandras <markos.chandras(a)imgtec.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years