[hwmon:hwmon-playground 2/12] drivers/hwmon/pmbus/ibm-cffps.c:351:8: error: too few arguments to function 'pmbus_read_word_data'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-playground
head: 4e5fc259a7d202d7e13818052a6cdaff0f602b35
commit: 0bad0ac867f208392aaef0d39889357256e55706 [2/12] hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 0bad0ac867f208392aaef0d39889357256e55706
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/hwmon/pmbus/ibm-cffps.c: In function 'ibm_cffps_read_word_data':
>> drivers/hwmon/pmbus/ibm-cffps.c:351:8: error: too few arguments to function 'pmbus_read_word_data'
rc = pmbus_read_word_data(client, page, CFFPS_12VCS_VOUT_CMD);
^~~~~~~~~~~~~~~~~~~~
In file included from drivers/hwmon/pmbus/ibm-cffps.c:19:0:
drivers/hwmon/pmbus/pmbus.h:462:5: note: declared here
int pmbus_read_word_data(struct i2c_client *client, int page, int phase,
^~~~~~~~~~~~~~~~~~~~
vim +/pmbus_read_word_data +351 drivers/hwmon/pmbus/ibm-cffps.c
f69316d62c7066 Edward A. James 2017-08-21 326
f69316d62c7066 Edward A. James 2017-08-21 327 static int ibm_cffps_read_word_data(struct i2c_client *client, int page,
0bad0ac867f208 Guenter Roeck 2020-01-14 328 int phase, int reg)
f69316d62c7066 Edward A. James 2017-08-21 329 {
f69316d62c7066 Edward A. James 2017-08-21 330 int rc, mfr;
f69316d62c7066 Edward A. James 2017-08-21 331
f69316d62c7066 Edward A. James 2017-08-21 332 switch (reg) {
f69316d62c7066 Edward A. James 2017-08-21 333 case PMBUS_STATUS_WORD:
0bad0ac867f208 Guenter Roeck 2020-01-14 334 rc = pmbus_read_word_data(client, page, phase, reg);
f69316d62c7066 Edward A. James 2017-08-21 335 if (rc < 0)
f69316d62c7066 Edward A. James 2017-08-21 336 return rc;
f69316d62c7066 Edward A. James 2017-08-21 337
f69316d62c7066 Edward A. James 2017-08-21 338 mfr = pmbus_read_byte_data(client, page,
f69316d62c7066 Edward A. James 2017-08-21 339 PMBUS_STATUS_MFR_SPECIFIC);
f69316d62c7066 Edward A. James 2017-08-21 340 if (mfr < 0)
f69316d62c7066 Edward A. James 2017-08-21 341 /*
f69316d62c7066 Edward A. James 2017-08-21 342 * Return the status register instead of an error,
f69316d62c7066 Edward A. James 2017-08-21 343 * since we successfully read status.
f69316d62c7066 Edward A. James 2017-08-21 344 */
f69316d62c7066 Edward A. James 2017-08-21 345 return rc;
f69316d62c7066 Edward A. James 2017-08-21 346
f69316d62c7066 Edward A. James 2017-08-21 347 if (mfr & CFFPS_MFR_PS_KILL)
f69316d62c7066 Edward A. James 2017-08-21 348 rc |= PB_STATUS_OFF;
f69316d62c7066 Edward A. James 2017-08-21 349 break;
1952d79a0d2635 Eddie James 2019-12-19 350 case PMBUS_VIRT_READ_VMON:
1952d79a0d2635 Eddie James 2019-12-19 @351 rc = pmbus_read_word_data(client, page, CFFPS_12VCS_VOUT_CMD);
1952d79a0d2635 Eddie James 2019-12-19 352 break;
f69316d62c7066 Edward A. James 2017-08-21 353 default:
f69316d62c7066 Edward A. James 2017-08-21 354 rc = -ENODATA;
f69316d62c7066 Edward A. James 2017-08-21 355 break;
f69316d62c7066 Edward A. James 2017-08-21 356 }
f69316d62c7066 Edward A. James 2017-08-21 357
f69316d62c7066 Edward A. James 2017-08-21 358 return rc;
f69316d62c7066 Edward A. James 2017-08-21 359 }
f69316d62c7066 Edward A. James 2017-08-21 360
:::::: The code at line 351 was first introduced by commit
:::::: 1952d79a0d2635c9130a48a598dd2f1eea70c45b hwmon: (pmbus/ibm-cffps) Add the VMON property for version 2
:::::: TO: Eddie James <eajames(a)linux.ibm.com>
:::::: CC: Guenter Roeck <linux(a)roeck-us.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
Re: [Intel-gfx] [PATCH] drm/i915/gem: Require per-engine reset support for non-persistent contexts
by kbuild test robot
Hi Chris,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.5 next-20200130]
[cannot apply to drm-tip/drm-tip]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-gem-Requir...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gem/i915_gem_context.c: In function '__context_set_persistence':
>> drivers/gpu/drm/i915/gem/i915_gem_context.c:569:34: error: 'struct i915_gem_context' has no member named 'gt'
if (!intel_has_reset_engine(ctx->gt))
^~
vim +569 drivers/gpu/drm/i915/gem/i915_gem_context.c
547
548 static int __context_set_persistence(struct i915_gem_context *ctx, bool state)
549 {
550 if (i915_gem_context_is_persistent(ctx) == state)
551 return 0;
552
553 if (state) {
554 /*
555 * Only contexts that are short-lived [that will expire or be
556 * reset] are allowed to survive past termination. We require
557 * hangcheck to ensure that the persistent requests are healthy.
558 */
559 if (!i915_modparams.enable_hangcheck)
560 return -EINVAL;
561
562 i915_gem_context_set_persistence(ctx);
563 } else {
564 /* To cancel a context we use "preempt-to-idle" */
565 if (!(ctx->i915->caps.scheduler & I915_SCHEDULER_CAP_PREEMPTION))
566 return -ENODEV;
567
568 /* If the cancel fails, we then need to reset, cleanly! */
> 569 if (!intel_has_reset_engine(ctx->gt))
570 return -ENODEV;
571
572 i915_gem_context_clear_persistence(ctx);
573 }
574
575 return 0;
576 }
577
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[rppt:pg_table/v0.0 4/18] drivers//iommu/omap-iommu.c:509:18: error: 'struct omap_iommu' has no member named 'pgt'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: f91cb6062ff32b69d58070b762b4627487c9a02f [4/18] mm: move page_table_lock to 'struct pg_table'
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f91cb6062ff32b69d58070b762b4627487c9a02f
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers//iommu/omap-iommu.c: In function 'iopte_alloc':
>> drivers//iommu/omap-iommu.c:509:18: error: 'struct omap_iommu' has no member named 'pgt'
spin_unlock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c:511:16: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c: In function 'iopgtable_store_entry_core':
drivers//iommu/omap-iommu.c:665:16: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c:667:18: error: 'struct omap_iommu' has no member named 'pgt'
spin_unlock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c: In function 'iopgtable_clear_entry':
drivers//iommu/omap-iommu.c:773:16: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c:778:18: error: 'struct omap_iommu' has no member named 'pgt'
spin_unlock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c: In function 'iopgtable_clear_entry_all':
drivers//iommu/omap-iommu.c:788:16: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu.c:810:18: error: 'struct omap_iommu' has no member named 'pgt'
spin_unlock(&obj->pgt.page_table_lock);
^~
In file included from include/linux/radix-tree.h:16:0,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from drivers//iommu/omap-iommu.c:12:
drivers//iommu/omap-iommu.c: In function 'omap_iommu_probe':
drivers//iommu/omap-iommu.c:1219:21: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock_init(&obj->pgt.page_table_lock);
^
include/linux/spinlock.h:332:17: note: in definition of macro 'spin_lock_init'
spinlock_check(_lock); \
^~~~~
In file included from include/linux/radix-tree.h:16:0,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dma-mapping.h:7,
from drivers//iommu/omap-iommu.c:12:
drivers//iommu/omap-iommu.c:1219:21: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock_init(&obj->pgt.page_table_lock);
^
include/linux/spinlock.h:101:24: note: in definition of macro 'raw_spin_lock_init'
__raw_spin_lock_init((lock), #lock, &__key); \
^~~~
>> drivers//iommu/omap-iommu.c:1219:2: note: in expansion of macro 'spin_lock_init'
spin_lock_init(&obj->pgt.page_table_lock);
^~~~~~~~~~~~~~
--
drivers//iommu/omap-iommu-debug.c: In function 'dump_ioptable':
>> drivers//iommu/omap-iommu-debug.c:184:16: error: 'struct omap_iommu' has no member named 'pgt'
spin_lock(&obj->pgt.page_table_lock);
^~
drivers//iommu/omap-iommu-debug.c:207:18: error: 'struct omap_iommu' has no member named 'pgt'
spin_unlock(&obj->pgt.page_table_lock);
^~
vim +509 drivers//iommu/omap-iommu.c
495
496 static u32 *iopte_alloc(struct omap_iommu *obj, u32 *iopgd,
497 dma_addr_t *pt_dma, u32 da)
498 {
499 u32 *iopte;
500 unsigned long offset = iopgd_index(da) * sizeof(da);
501
502 /* a table has already existed */
503 if (*iopgd)
504 goto pte_ready;
505
506 /*
507 * do the allocation outside the page table lock
508 */
> 509 spin_unlock(&obj->pgt.page_table_lock);
510 iopte = kmem_cache_zalloc(iopte_cachep, GFP_KERNEL);
511 spin_lock(&obj->pgt.page_table_lock);
512
513 if (!*iopgd) {
514 if (!iopte)
515 return ERR_PTR(-ENOMEM);
516
517 *pt_dma = dma_map_single(obj->dev, iopte, IOPTE_TABLE_SIZE,
518 DMA_TO_DEVICE);
519 if (dma_mapping_error(obj->dev, *pt_dma)) {
520 dev_err(obj->dev, "DMA map error for L2 table\n");
521 iopte_free(obj, iopte, false);
522 return ERR_PTR(-ENOMEM);
523 }
524
525 /*
526 * we rely on dma address and the physical address to be
527 * the same for mapping the L2 table
528 */
529 if (WARN_ON(*pt_dma != virt_to_phys(iopte))) {
530 dev_err(obj->dev, "DMA translation error for L2 table\n");
531 dma_unmap_single(obj->dev, *pt_dma, IOPTE_TABLE_SIZE,
532 DMA_TO_DEVICE);
533 iopte_free(obj, iopte, false);
534 return ERR_PTR(-ENOMEM);
535 }
536
537 *iopgd = virt_to_phys(iopte) | IOPGD_TABLE;
538
539 flush_iopte_range(obj->dev, obj->pd_dma, offset, 1);
540 dev_vdbg(obj->dev, "%s: a new pte:%p\n", __func__, iopte);
541 } else {
542 /* We raced, free the reduniovant table */
543 iopte_free(obj, iopte, false);
544 }
545
546 pte_ready:
547 iopte = iopte_offset(iopgd, da);
548 *pt_dma = iopgd_page_paddr(iopgd);
549 dev_vdbg(obj->dev,
550 "%s: da:%08x pgd:%p *pgd:%08x pte:%p *pte:%08x\n",
551 __func__, da, iopgd, *iopgd, iopte, *iopte);
552
553 return iopte;
554 }
555
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[rppt:pg_table/v0.0 13/18] mm/init-mm.c:37:3: error: positional initialization of field in 'struct' declared with 'designated_init' attribute
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: da7c45f8a8af997141e829ae8a9b776b7cb50bf9 [13/18] mm: move cpu_bitmask from mm_struct to pg_table
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout da7c45f8a8af997141e829ae8a9b776b7cb50bf9
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/init-mm.c:37:3: error: implicit declaration of function 'INIT_PT_CONTEXT'; did you mean 'INIT_MM_CONTEXT'? [-Werror=implicit-function-declaration]
37 | INIT_PT_CONTEXT(init_mm.pgt)
| ^~~~~~~~~~~~~~~
| INIT_MM_CONTEXT
>> mm/init-mm.c:37:3: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
mm/init-mm.c:37:3: note: (near initialization for 'init_mm.pgt.<anonymous>')
mm/init-mm.c:37:3: warning: excess elements in struct initializer
mm/init-mm.c:37:3: note: (near initialization for 'init_mm.pgt.<anonymous>.context')
mm/init-mm.c:29:28: warning: missing braces around initializer [-Wmissing-braces]
29 | struct mm_struct init_mm = {
| ^
30 | .mm_rb = RB_ROOT,
| }
31 | .mm_users = ATOMIC_INIT(2),
| }
32 | .mm_count = ATOMIC_INIT(1),
| }
33 | .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem),
| }
34 | .pgt = {
35 | .page_table_lock = __SPIN_LOCK_UNLOCKED(init_mm.pgt.page_table_lock),
| }
36 | .pgd = swapper_pg_dir,
37 | INIT_PT_CONTEXT(init_mm.pgt)
| {
38 | },
| }}
cc1: some warnings being treated as errors
vim +37 mm/init-mm.c
bb1f17b0372de9 Alexey Dobriyan 2009-06-16 18
c1a2f7f0c06454 Rik van Riel 2018-07-16 19 /*
c1a2f7f0c06454 Rik van Riel 2018-07-16 20 * For dynamically allocated mm_structs, there is a dynamically sized cpumask
c1a2f7f0c06454 Rik van Riel 2018-07-16 21 * at the end of the structure, the size of which depends on the maximum CPU
c1a2f7f0c06454 Rik van Riel 2018-07-16 22 * number the system can see. That way we allocate only as much memory for
c1a2f7f0c06454 Rik van Riel 2018-07-16 23 * mm_cpumask() as needed for the hundreds, or thousands of processes that
c1a2f7f0c06454 Rik van Riel 2018-07-16 24 * a system typically runs.
c1a2f7f0c06454 Rik van Riel 2018-07-16 25 *
c1a2f7f0c06454 Rik van Riel 2018-07-16 26 * Since there is only one init_mm in the entire system, keep it simple
c1a2f7f0c06454 Rik van Riel 2018-07-16 27 * and size this cpu_bitmask to NR_CPUS.
c1a2f7f0c06454 Rik van Riel 2018-07-16 28 */
bb1f17b0372de9 Alexey Dobriyan 2009-06-16 29 struct mm_struct init_mm = {
bb1f17b0372de9 Alexey Dobriyan 2009-06-16 30 .mm_rb = RB_ROOT,
bb1f17b0372de9 Alexey Dobriyan 2009-06-16 31 .mm_users = ATOMIC_INIT(2),
bb1f17b0372de9 Alexey Dobriyan 2009-06-16 32 .mm_count = ATOMIC_INIT(1),
bb1f17b0372de9 Alexey Dobriyan 2009-06-16 33 .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem),
f91cb6062ff32b Mike Rapoport 2019-08-06 34 .pgt = {
f91cb6062ff32b Mike Rapoport 2019-08-06 35 .page_table_lock = __SPIN_LOCK_UNLOCKED(init_mm.pgt.page_table_lock),
e5db6ff88e6ef1 Mike Rapoport 2019-11-18 36 .pgd = swapper_pg_dir,
a661e3799be71e Mike Rapoport 2019-11-19 @37 INIT_PT_CONTEXT(init_mm.pgt)
:::::: The code at line 37 was first introduced by commit
:::::: a661e3799be71e741ee4d31e1386e9f6f0932b38 x86/mm: split pt_context_t out of mm_context_t
:::::: TO: Mike Rapoport <rppt(a)linux.ibm.com>
:::::: CC: Mike Rapoport <rppt(a)linux.ibm.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[rppt:pg_table/v0.0 12/18] mm/init-mm.c:37:3: error: implicit declaration of function 'INIT_PT_CONTEXT'; did you mean 'INIT_MM_CONTEXT'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: a661e3799be71e741ee4d31e1386e9f6f0932b38 [12/18] x86/mm: split pt_context_t out of mm_context_t
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a661e3799be71e741ee4d31e1386e9f6f0932b38
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> mm/init-mm.c:37:3: error: implicit declaration of function 'INIT_PT_CONTEXT'; did you mean 'INIT_MM_CONTEXT'? [-Werror=implicit-function-declaration]
37 | INIT_PT_CONTEXT(init_mm.pgt)
| ^~~~~~~~~~~~~~~
| INIT_MM_CONTEXT
>> mm/init-mm.c:37:3: warning: excess elements in struct initializer
mm/init-mm.c:37:3: note: (near initialization for 'init_mm.<anonymous>.pgt.context')
>> mm/init-mm.c:29:28: warning: missing braces around initializer [-Wmissing-braces]
29 | struct mm_struct init_mm = {
| ^
30 | .mm_rb = RB_ROOT,
| }
31 | .mm_users = ATOMIC_INIT(2),
| }
32 | .mm_count = ATOMIC_INIT(1),
| }
33 | .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem),
| }
......
37 | INIT_PT_CONTEXT(init_mm.pgt)
| {
38 | },
| }
cc1: some warnings being treated as errors
vim +37 mm/init-mm.c
18
19 /*
20 * For dynamically allocated mm_structs, there is a dynamically sized cpumask
21 * at the end of the structure, the size of which depends on the maximum CPU
22 * number the system can see. That way we allocate only as much memory for
23 * mm_cpumask() as needed for the hundreds, or thousands of processes that
24 * a system typically runs.
25 *
26 * Since there is only one init_mm in the entire system, keep it simple
27 * and size this cpu_bitmask to NR_CPUS.
28 */
> 29 struct mm_struct init_mm = {
30 .mm_rb = RB_ROOT,
31 .mm_users = ATOMIC_INIT(2),
32 .mm_count = ATOMIC_INIT(1),
33 .mmap_sem = __RWSEM_INITIALIZER(init_mm.mmap_sem),
34 .pgt = {
35 .page_table_lock = __SPIN_LOCK_UNLOCKED(init_mm.pgt.page_table_lock),
36 .pgd = swapper_pg_dir,
> 37 INIT_PT_CONTEXT(init_mm.pgt)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
arch/mips/kvm/mips.c:303:43: error: 'kvm_mips_comparecount_wakeup' undeclared
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 94f2630b18975bb56eee5d1a36371db967643479
commit: d11dfed5d700b8973d5742300e04b2aaa9d11217 KVM: MIPS: Move all vcpu init code into kvm_arch_vcpu_create()
date: 6 days ago
config: mips-malta_kvm_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 5.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d11dfed5d700b8973d5742300e04b2aaa9d11217
# save the attached .config to linux build tree
GCC_VERSION=5.5.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/mips/kvm/mips.c: In function 'kvm_arch_vcpu_create':
>> arch/mips/kvm/mips.c:303:43: error: 'kvm_mips_comparecount_wakeup' undeclared (first use in this function)
vcpu->arch.comparecount_timer.function = kvm_mips_comparecount_wakeup;
^
arch/mips/kvm/mips.c:303:43: note: each undeclared identifier is reported only once for each function it appears in
arch/mips/kvm/mips.c: At top level:
>> arch/mips/kvm/mips.c:1224:29: error: 'kvm_mips_comparecount_wakeup' defined but not used [-Werror=unused-function]
static enum hrtimer_restart kvm_mips_comparecount_wakeup(struct hrtimer *timer)
^
cc1: all warnings being treated as errors
vim +/kvm_mips_comparecount_wakeup +303 arch/mips/kvm/mips.c
287
288 int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu)
289 {
290 int err, size;
291 void *gebase, *p, *handler, *refill_start, *refill_end;
292 int i;
293
294 kvm_debug("kvm @ %p: create cpu %d at %p\n",
295 vcpu->kvm, vcpu->vcpu_id, vcpu);
296
297 err = kvm_mips_callbacks->vcpu_init(vcpu);
298 if (err)
299 return err;
300
301 hrtimer_init(&vcpu->arch.comparecount_timer, CLOCK_MONOTONIC,
302 HRTIMER_MODE_REL);
> 303 vcpu->arch.comparecount_timer.function = kvm_mips_comparecount_wakeup;
304
305 /*
306 * Allocate space for host mode exception handlers that handle
307 * guest mode exits
308 */
309 if (cpu_has_veic || cpu_has_vint)
310 size = 0x200 + VECTORSPACING * 64;
311 else
312 size = 0x4000;
313
314 gebase = kzalloc(ALIGN(size, PAGE_SIZE), GFP_KERNEL);
315
316 if (!gebase) {
317 err = -ENOMEM;
318 goto out_uninit_vcpu;
319 }
320 kvm_debug("Allocated %d bytes for KVM Exception Handlers @ %p\n",
321 ALIGN(size, PAGE_SIZE), gebase);
322
323 /*
324 * Check new ebase actually fits in CP0_EBase. The lack of a write gate
325 * limits us to the low 512MB of physical address space. If the memory
326 * we allocate is out of range, just give up now.
327 */
328 if (!cpu_has_ebase_wg && virt_to_phys(gebase) >= 0x20000000) {
329 kvm_err("CP0_EBase.WG required for guest exception base %pK\n",
330 gebase);
331 err = -ENOMEM;
332 goto out_free_gebase;
333 }
334
335 /* Save new ebase */
336 vcpu->arch.guest_ebase = gebase;
337
338 /* Build guest exception vectors dynamically in unmapped memory */
339 handler = gebase + 0x2000;
340
341 /* TLB refill (or XTLB refill on 64-bit VZ where KX=1) */
342 refill_start = gebase;
343 if (IS_ENABLED(CONFIG_KVM_MIPS_VZ) && IS_ENABLED(CONFIG_64BIT))
344 refill_start += 0x080;
345 refill_end = kvm_mips_build_tlb_refill_exception(refill_start, handler);
346
347 /* General Exception Entry point */
348 kvm_mips_build_exception(gebase + 0x180, handler);
349
350 /* For vectored interrupts poke the exception code @ all offsets 0-7 */
351 for (i = 0; i < 8; i++) {
352 kvm_debug("L1 Vectored handler @ %p\n",
353 gebase + 0x200 + (i * VECTORSPACING));
354 kvm_mips_build_exception(gebase + 0x200 + i * VECTORSPACING,
355 handler);
356 }
357
358 /* General exit handler */
359 p = handler;
360 p = kvm_mips_build_exit(p);
361
362 /* Guest entry routine */
363 vcpu->arch.vcpu_run = p;
364 p = kvm_mips_build_vcpu_run(p);
365
366 /* Dump the generated code */
367 pr_debug("#include <asm/asm.h>\n");
368 pr_debug("#include <asm/regdef.h>\n");
369 pr_debug("\n");
370 dump_handler("kvm_vcpu_run", vcpu->arch.vcpu_run, p);
371 dump_handler("kvm_tlb_refill", refill_start, refill_end);
372 dump_handler("kvm_gen_exc", gebase + 0x180, gebase + 0x200);
373 dump_handler("kvm_exit", gebase + 0x2000, vcpu->arch.vcpu_run);
374
375 /* Invalidate the icache for these ranges */
376 flush_icache_range((unsigned long)gebase,
377 (unsigned long)gebase + ALIGN(size, PAGE_SIZE));
378
379 /*
380 * Allocate comm page for guest kernel, a TLB will be reserved for
381 * mapping GVA @ 0xFFFF8000 to this page
382 */
383 vcpu->arch.kseg0_commpage = kzalloc(PAGE_SIZE << 1, GFP_KERNEL);
384
385 if (!vcpu->arch.kseg0_commpage) {
386 err = -ENOMEM;
387 goto out_free_gebase;
388 }
389
390 kvm_debug("Allocated COMM page @ %p\n", vcpu->arch.kseg0_commpage);
391 kvm_mips_commpage_init(vcpu);
392
393 /* Init */
394 vcpu->arch.last_sched_cpu = -1;
395 vcpu->arch.last_exec_cpu = -1;
396
397 /* Initial guest state */
398 err = kvm_mips_callbacks->vcpu_setup(vcpu);
399 if (err)
400 goto out_free_commpage;
401
402 return 0;
403
404 out_free_commpage:
405 kfree(vcpu->arch.kseg0_commpage);
406 out_free_gebase:
407 kfree(gebase);
408 out_uninit_vcpu:
409 kvm_mips_callbacks->vcpu_uninit(vcpu);
410 return err;
411 }
412
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[android-common:android-4.19 1/4] include/linux/compiler.h:348:38: error: call to '__compiletime_assert_2083' declared with attribute error: BUILD_BUG_ON failed: PAGE_SIZE != INCFS_DATA_FILE_BLOCK_SIZE
by kbuild test robot
tree: https://android.googlesource.com/kernel/common android-4.19
head: 7bab03039e64ed6c26be90530e08978eab3be578
commit: 040942fc50b20325bb56737c32b303268bb6f35c [1/4] ANDROID: Initial commit of Incremental FS
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 040942fc50b20325bb56737c32b303268bb6f35c
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/ia64/include/uapi/asm/gcc_intrin.h:11:0,
from arch/ia64/include/asm/gcc_intrin.h:10,
from arch/ia64/include/uapi/asm/intrinsics.h:20,
from arch/ia64/include/asm/intrinsics.h:11,
from arch/ia64/include/asm/current.h:10,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from fs/incfs/vfs.c:6:
fs/incfs/vfs.c: In function 'incfs_mount_fs':
>> include/linux/compiler.h:348:38: error: call to '__compiletime_assert_2083' declared with attribute error: BUILD_BUG_ON failed: PAGE_SIZE != INCFS_DATA_FILE_BLOCK_SIZE
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:329:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:348:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:69:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
fs/incfs/vfs.c:2083:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(PAGE_SIZE != INCFS_DATA_FILE_BLOCK_SIZE);
^~~~~~~~~~~~
--
In file included from arch/ia64/include/uapi/asm/gcc_intrin.h:11:0,
from arch/ia64/include/asm/gcc_intrin.h:10,
from arch/ia64/include/uapi/asm/intrinsics.h:20,
from arch/ia64/include/asm/intrinsics.h:11,
from arch/ia64/include/asm/current.h:10,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from fs//incfs/vfs.c:6:
fs//incfs/vfs.c: In function 'incfs_mount_fs':
>> include/linux/compiler.h:348:38: error: call to '__compiletime_assert_2083' declared with attribute error: BUILD_BUG_ON failed: PAGE_SIZE != INCFS_DATA_FILE_BLOCK_SIZE
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:329:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:348:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:69:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
fs//incfs/vfs.c:2083:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(PAGE_SIZE != INCFS_DATA_FILE_BLOCK_SIZE);
^~~~~~~~~~~~
vim +/__compiletime_assert_2083 +348 include/linux/compiler.h
9a8ab1c39970a4 Daniel Santos 2013-02-21 334
9a8ab1c39970a4 Daniel Santos 2013-02-21 335 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 336 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 337
9a8ab1c39970a4 Daniel Santos 2013-02-21 338 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 339 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 340 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 341 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 342 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 343 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 344 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 345 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 346 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 347 #define compiletime_assert(condition, msg) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 @348 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 349
:::::: The code at line 348 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG
:::::: TO: Daniel Santos <daniel.santos(a)pobox.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[rppt:pg_table/v0.0 11/18] arch/nds32/include/asm/pgalloc.h:30:24: error: passing argument 1 of '__pte_alloc_one' from incompatible pointer type
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: a28a3e30c8e9b58a6da1d5e6a4803c5580e93ce5 [11/18] mm: enable pte allocations for pg_table
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a28a3e30c8e9b58a6da1d5e6a4803c5580e93ce5
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/asm-generic/tlb.h:16,
from arch/nds32/include/asm/tlb.h:7,
from arch/nds32/mm/init.c:18:
arch/nds32/include/asm/pgalloc.h: In function 'pte_alloc_one':
>> arch/nds32/include/asm/pgalloc.h:30:24: error: passing argument 1 of '__pte_alloc_one' from incompatible pointer type [-Werror=incompatible-pointer-types]
30 | pte = __pte_alloc_one(mm, GFP_PGTABLE_USER);
| ^~
| |
| struct mm_struct *
In file included from arch/nds32/include/asm/pgalloc.h:13,
from include/asm-generic/tlb.h:16,
from arch/nds32/include/asm/tlb.h:7,
from arch/nds32/mm/init.c:18:
include/asm-generic/pgalloc.h:59:58: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
59 | static inline pgtable_t __pte_alloc_one(struct pg_table *pgt, gfp_t gfp)
| ~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
--
In file included from arch/nds32/mm/mm-nds32.c:5:
arch/nds32/include/asm/pgalloc.h: In function 'pte_alloc_one':
>> arch/nds32/include/asm/pgalloc.h:30:24: error: passing argument 1 of '__pte_alloc_one' from incompatible pointer type [-Werror=incompatible-pointer-types]
30 | pte = __pte_alloc_one(mm, GFP_PGTABLE_USER);
| ^~
| |
| struct mm_struct *
In file included from arch/nds32/include/asm/pgalloc.h:13,
from arch/nds32/mm/mm-nds32.c:5:
include/asm-generic/pgalloc.h:59:58: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
59 | static inline pgtable_t __pte_alloc_one(struct pg_table *pgt, gfp_t gfp)
| ~~~~~~~~~~~~~~~~~^~~
arch/nds32/mm/mm-nds32.c: In function 'pgd_free':
>> arch/nds32/mm/mm-nds32.c:62:17: error: passing argument 1 of 'mm_dec_nr_ptes' from incompatible pointer type [-Werror=incompatible-pointer-types]
62 | mm_dec_nr_ptes(mm);
| ^~
| |
| struct mm_struct *
In file included from include/linux/kallsyms.h:12,
from include/linux/ftrace.h:11,
from include/linux/init_task.h:9,
from arch/nds32/mm/mm-nds32.c:4:
include/linux/mm.h:1829:52: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
1829 | static inline void mm_dec_nr_ptes(struct pg_table *pgt)
| ~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
--
In file included from mm/memory.c:77:
arch/nds32/include/asm/pgalloc.h: In function 'pte_alloc_one':
>> arch/nds32/include/asm/pgalloc.h:30:24: error: passing argument 1 of '__pte_alloc_one' from incompatible pointer type [-Werror=incompatible-pointer-types]
30 | pte = __pte_alloc_one(mm, GFP_PGTABLE_USER);
| ^~
| |
| struct mm_struct *
In file included from arch/nds32/include/asm/pgalloc.h:13,
from mm/memory.c:77:
include/asm-generic/pgalloc.h:59:58: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
59 | static inline pgtable_t __pte_alloc_one(struct pg_table *pgt, gfp_t gfp)
| ~~~~~~~~~~~~~~~~~^~~
mm/memory.c: In function '__pte_alloc':
>> mm/memory.c:408:32: error: passing argument 1 of 'pte_alloc_one' from incompatible pointer type [-Werror=incompatible-pointer-types]
408 | pgtable_t new = pte_alloc_one(pgt);
| ^~~
| |
| struct pg_table *
In file included from mm/memory.c:77:
arch/nds32/include/asm/pgalloc.h:26:57: note: expected 'struct mm_struct *' but argument is of type 'struct pg_table *'
26 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
| ~~~~~~~~~~~~~~~~~~^~
>> mm/memory.c:430:3: error: implicit declaration of function '_pmd_populate'; did you mean 'pmd_populate'? [-Werror=implicit-function-declaration]
430 | _pmd_populate(pgt, pmd, new);
| ^~~~~~~~~~~~~
| pmd_populate
In file included from arch/nds32/include/asm/pgtable.h:8,
from include/linux/mm.h:99,
from mm/memory.c:43:
mm/memory.c: In function 'copy_pmd_range':
mm/memory.c:854:22: error: passing argument 1 of '__pmd_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types]
854 | dst_pmd = pmd_alloc(dst_mm, dst_pud, addr);
| ^~~~~~
| |
| struct mm_struct *
include/asm-generic/4level-fixup.h:16:46: note: in definition of macro 'pmd_alloc'
16 | ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
| ^~
In file included from mm/memory.c:43:
include/linux/mm.h:1786:48: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
1786 | static inline int __pmd_alloc(struct pg_table *pgt, pud_t *pud,
| ~~~~~~~~~~~~~~~~~^~~
In file included from arch/nds32/include/asm/pgtable.h:8,
from include/linux/mm.h:99,
from mm/memory.c:43:
mm/memory.c: In function '__get_locked_pte':
mm/memory.c:1407:18: error: passing argument 1 of '__pmd_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types]
1407 | pmd = pmd_alloc(mm, pud, addr);
| ^~
| |
| struct mm_struct *
include/asm-generic/4level-fixup.h:16:46: note: in definition of macro 'pmd_alloc'
16 | ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
| ^~
In file included from mm/memory.c:43:
include/linux/mm.h:1786:48: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
1786 | static inline int __pmd_alloc(struct pg_table *pgt, pud_t *pud,
| ~~~~~~~~~~~~~~~~~^~~
In file included from arch/nds32/include/asm/pgtable.h:8,
from include/linux/mm.h:99,
from mm/memory.c:43:
mm/memory.c: In function 'remap_pmd_range':
mm/memory.c:1826:18: error: passing argument 1 of '__pmd_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types]
1826 | pmd = pmd_alloc(mm, pud, addr);
| ^~
| |
| struct mm_struct *
include/asm-generic/4level-fixup.h:16:46: note: in definition of macro 'pmd_alloc'
16 | ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
| ^~
In file included from mm/memory.c:43:
include/linux/mm.h:1786:48: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
1786 | static inline int __pmd_alloc(struct pg_table *pgt, pud_t *pud,
| ~~~~~~~~~~~~~~~~~^~~
In file included from arch/nds32/include/asm/pgtable.h:8,
from include/linux/mm.h:99,
from mm/memory.c:43:
mm/memory.c: In function 'apply_to_pmd_range':
mm/memory.c:2045:18: error: passing argument 1 of '__pmd_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types]
2045 | pmd = pmd_alloc(mm, pud, addr);
| ^~
| |
| struct mm_struct *
include/asm-generic/4level-fixup.h:16:46: note: in definition of macro 'pmd_alloc'
16 | ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
| ^~
In file included from mm/memory.c:43:
include/linux/mm.h:1786:48: note: expected 'struct pg_table *' but argument is of type 'struct mm_struct *'
1786 | static inline int __pmd_alloc(struct pg_table *pgt, pud_t *pud,
| ~~~~~~~~~~~~~~~~~^~~
mm/memory.c: In function '__do_fault':
mm/memory.c:3086:37: error: passing argument 1 of 'pte_alloc_one' from incompatible pointer type [-Werror=incompatible-pointer-types]
3086 | vmf->prealloc_pte = pte_alloc_one(&vmf->vma->vm_mm->pgt);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| struct pg_table *
In file included from mm/memory.c:77:
arch/nds32/include/asm/pgalloc.h:26:57: note: expected 'struct mm_struct *' but argument is of type 'struct pg_table *'
26 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
| ~~~~~~~~~~~~~~~~~~^~
mm/memory.c: In function 'do_fault_around':
mm/memory.c:3444:37: error: passing argument 1 of 'pte_alloc_one' from incompatible pointer type [-Werror=incompatible-pointer-types]
3444 | vmf->prealloc_pte = pte_alloc_one(&vmf->vma->vm_mm->pgt);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| struct pg_table *
In file included from mm/memory.c:77:
arch/nds32/include/asm/pgalloc.h:26:57: note: expected 'struct mm_struct *' but argument is of type 'struct pg_table *'
26 | static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
| ~~~~~~~~~~~~~~~~~~^~
In file included from arch/nds32/include/asm/pgtable.h:8,
from include/linux/mm.h:99,
from mm/memory.c:43:
mm/memory.c: In function '__handle_mm_fault':
mm/memory.c:3940:22: error: passing argument 1 of '__pmd_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types]
3940 | vmf.pmd = pmd_alloc(mm, vmf.pud, address);
| ^~
| |
| struct mm_struct *
include/asm-generic/4level-fixup.h:16:46: note: in definition of macro 'pmd_alloc'
16 | ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
| ^~
In file included from mm/memory.c:43:
vim +/__pte_alloc_one +30 arch/nds32/include/asm/pgalloc.h
2e1aecb970b766 Greentime Hu 2017-10-24 25
4cf58924951ef8 Joel Fernandes (Google 2019-01-03 26) static inline pgtable_t pte_alloc_one(struct mm_struct *mm)
2e1aecb970b766 Greentime Hu 2017-10-24 27 {
2e1aecb970b766 Greentime Hu 2017-10-24 28 pgtable_t pte;
2e1aecb970b766 Greentime Hu 2017-10-24 29
f52a8e1a67cde6 Mike Rapoport 2019-07-11 @30 pte = __pte_alloc_one(mm, GFP_PGTABLE_USER);
2e1aecb970b766 Greentime Hu 2017-10-24 31 if (pte)
2e1aecb970b766 Greentime Hu 2017-10-24 32 cpu_dcache_wb_page((unsigned long)page_address(pte));
2e1aecb970b766 Greentime Hu 2017-10-24 33
2e1aecb970b766 Greentime Hu 2017-10-24 34 return pte;
2e1aecb970b766 Greentime Hu 2017-10-24 35 }
2e1aecb970b766 Greentime Hu 2017-10-24 36
:::::: The code at line 30 was first introduced by commit
:::::: f52a8e1a67cde67c33d5c2eabd6494dcab956677 nds32: switch to generic version of pte allocation
:::::: TO: Mike Rapoport <rppt(a)linux.ibm.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months