drivers/net/ethernet/chelsio/cxgb4/sge.c:2571 cxgb4_ethofld_send_flowc() warn: missing error code 'ret'
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 79160a603bdb51916226caf4a6616cc4e1c58a58
commit: 52bfcdd87e83d9e69d22da5f26b1512ffc81deed net:CXGB4: fix leak if sk_buff is not used
config: x86_64-randconfig-m001-20210706 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/net/ethernet/chelsio/cxgb4/sge.c:2571 cxgb4_ethofld_send_flowc() warn: missing error code 'ret'
vim +/ret +2571 drivers/net/ethernet/chelsio/cxgb4/sge.c
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2535 int cxgb4_ethofld_send_flowc(struct net_device *dev, u32 eotid, u32 tc)
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2536 {
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2537 struct port_info *pi = netdev2pinfo(dev);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2538 struct adapter *adap = netdev2adap(dev);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2539 enum sge_eosw_state next_state;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2540 struct sge_eosw_txq *eosw_txq;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2541 u32 len, len16, nparams = 6;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2542 struct fw_flowc_wr *flowc;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2543 struct eotid_entry *entry;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2544 struct sge_ofld_rxq *rxq;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2545 struct sk_buff *skb;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2546 int ret = 0;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2547
a422d5ff6defb1 Gustavo A. R. Silva 2020-06-19 2548 len = struct_size(flowc, mnemval, nparams);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2549 len16 = DIV_ROUND_UP(len, 16);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2550
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2551 entry = cxgb4_lookup_eotid(&adap->tids, eotid);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2552 if (!entry)
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2553 return -ENOMEM;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2554
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2555 eosw_txq = (struct sge_eosw_txq *)entry->data;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2556 if (!eosw_txq)
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2557 return -ENOMEM;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2558
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2559 skb = alloc_skb(len, GFP_KERNEL);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2560 if (!skb)
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2561 return -ENOMEM;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2562
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2563 spin_lock_bh(&eosw_txq->lock);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2564 if (tc != FW_SCHED_CLS_NONE) {
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2565 if (eosw_txq->state != CXGB4_EO_STATE_CLOSED)
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2566 goto out_free_skb;
^^^^^^^^^^^^^^^^^
Are these error paths?
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2567
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2568 next_state = CXGB4_EO_STATE_FLOWC_OPEN_SEND;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2569 } else {
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2570 if (eosw_txq->state != CXGB4_EO_STATE_ACTIVE)
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 @2571 goto out_free_skb;
Here too
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2572
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2573 next_state = CXGB4_EO_STATE_FLOWC_CLOSE_SEND;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2574 }
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2575
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2576 flowc = __skb_put(skb, len);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2577 memset(flowc, 0, len);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2578
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2579 rxq = &adap->sge.eohw_rxq[eosw_txq->hwqid];
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2580 flowc->flowid_len16 = cpu_to_be32(FW_WR_LEN16_V(len16) |
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2581 FW_WR_FLOWID_V(eosw_txq->hwtid));
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2582 flowc->op_to_nparams = cpu_to_be32(FW_WR_OP_V(FW_FLOWC_WR) |
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2583 FW_FLOWC_WR_NPARAMS_V(nparams) |
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2584 FW_WR_COMPL_V(1));
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2585 flowc->mnemval[0].mnemonic = FW_FLOWC_MNEM_PFNVFN;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2586 flowc->mnemval[0].val = cpu_to_be32(FW_PFVF_CMD_PFN_V(adap->pf));
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2587 flowc->mnemval[1].mnemonic = FW_FLOWC_MNEM_CH;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2588 flowc->mnemval[1].val = cpu_to_be32(pi->tx_chan);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2589 flowc->mnemval[2].mnemonic = FW_FLOWC_MNEM_PORT;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2590 flowc->mnemval[2].val = cpu_to_be32(pi->tx_chan);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2591 flowc->mnemval[3].mnemonic = FW_FLOWC_MNEM_IQID;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2592 flowc->mnemval[3].val = cpu_to_be32(rxq->rspq.abs_id);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2593 flowc->mnemval[4].mnemonic = FW_FLOWC_MNEM_SCHEDCLASS;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2594 flowc->mnemval[4].val = cpu_to_be32(tc);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2595 flowc->mnemval[5].mnemonic = FW_FLOWC_MNEM_EOSTATE;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2596 flowc->mnemval[5].val = cpu_to_be32(tc == FW_SCHED_CLS_NONE ?
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2597 FW_FLOWC_MNEM_EOSTATE_CLOSING :
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2598 FW_FLOWC_MNEM_EOSTATE_ESTABLISHED);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2599
69422a7e5d578a Rahul Lakkireddy 2020-04-30 2600 /* Free up any pending skbs to ensure there's room for
69422a7e5d578a Rahul Lakkireddy 2020-04-30 2601 * termination FLOWC.
69422a7e5d578a Rahul Lakkireddy 2020-04-30 2602 */
69422a7e5d578a Rahul Lakkireddy 2020-04-30 2603 if (tc == FW_SCHED_CLS_NONE)
69422a7e5d578a Rahul Lakkireddy 2020-04-30 2604 eosw_txq_flush_pending_skbs(eosw_txq);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2605
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2606 ret = eosw_txq_enqueue(eosw_txq, skb);
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2607 if (ret)
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2608 goto out_free_skb;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2609
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2610 eosw_txq->state = next_state;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2611 eosw_txq->flowc_idx = eosw_txq->pidx;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2612 eosw_txq_advance(eosw_txq, 1);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2613 ethofld_xmit(dev, eosw_txq);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2614
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2615 spin_unlock_bh(&eosw_txq->lock);
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2616 return 0;
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2617
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2618 out_free_skb:
52bfcdd87e83d9 Íñigo Huguet 2021-05-05 2619 dev_consume_skb_any(skb);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2620 spin_unlock_bh(&eosw_txq->lock);
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2621 return ret;
0e395b3cb1fb82 Rahul Lakkireddy 2019-11-07 2622 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 months
[aa:mapcount_deshare 20/27] mm/gup.c:2756:3: error: implicit declaration of function 'mm_set_has_pinned_flag'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git mapcount_deshare
head: 3e2f198cce0c1792ad71d6d81974b091019b6483
commit: 8dec302e87453234fc7ac1cf4d09e4d577a06cf3 [20/27] mm: gup: pack has_pinned in MMF_HAS_PINNED
config: arm-randconfig-r014-20210511 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa mapcount_deshare
git checkout 8dec302e87453234fc7ac1cf4d09e4d577a06cf3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> mm/gup.c:2756:3: error: implicit declaration of function 'mm_set_has_pinned_flag' [-Werror,-Wimplicit-function-declaration]
mm_set_has_pinned_flag(¤t->mm->flags);
^
1 error generated.
vim +/mm_set_has_pinned_flag +2756 mm/gup.c
2740
2741 static int internal_get_user_pages_fast(unsigned long start,
2742 unsigned long nr_pages,
2743 unsigned int gup_flags,
2744 struct page **pages)
2745 {
2746 unsigned long len, end;
2747 unsigned long nr_pinned;
2748 int ret;
2749
2750 if (WARN_ON_ONCE(gup_flags & ~(FOLL_WRITE | FOLL_LONGTERM |
2751 FOLL_FORCE | FOLL_PIN | FOLL_GET |
2752 FOLL_FAST_ONLY)))
2753 return -EINVAL;
2754
2755 if (gup_flags & FOLL_PIN)
> 2756 mm_set_has_pinned_flag(¤t->mm->flags);
2757
2758 if (!(gup_flags & FOLL_FAST_ONLY))
2759 might_lock_read(¤t->mm->mmap_lock);
2760
2761 start = untagged_addr(start) & PAGE_MASK;
2762 len = nr_pages << PAGE_SHIFT;
2763 if (check_add_overflow(start, len, &end))
2764 return 0;
2765 if (unlikely(!access_ok((void __user *)start, len)))
2766 return -EFAULT;
2767
2768 nr_pinned = lockless_pages_from_mm(start, end, gup_flags, pages);
2769 if (nr_pinned == nr_pages || gup_flags & FOLL_FAST_ONLY)
2770 return nr_pinned;
2771
2772 /* Slow path: try to get the remaining pages with get_user_pages */
2773 start += nr_pinned << PAGE_SHIFT;
2774 pages += nr_pinned;
2775 ret = __gup_longterm_unlocked(start, nr_pages - nr_pinned, gup_flags,
2776 pages);
2777 if (ret < 0) {
2778 /*
2779 * The caller has to unpin the pages we already pinned so
2780 * returning -errno is not an option
2781 */
2782 if (nr_pinned)
2783 return nr_pinned;
2784 return ret;
2785 }
2786 return ret + nr_pinned;
2787 }
2788
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
4 months, 3 weeks
[PATCH v4 0/3] Add ilitek ili9341 panel driver
by dillon.minfei@gmail.com
From: Dillon Min <dillon.minfei(a)gmail.com>
Since the st,sf-tc240t-9370-t dts binding already exist in stm32f429-disco.dts
but, the panel driver didn't get accepted from mainline. it's time to submit
patch fot it.
This driver can support two different interface by different dts bindings:
- spi+dpi, use spi to configure register, dpi for graphic data.
st,sf-tc240t-9370-t
- only spi, just like tiny/ili9341.c (actually, this part is copy from tiny)
adafruit,yx240qv29
I was submited the first patch last year, you can find it at [1].
this patch has one major difference from that one, which is replace the low
level communication way, from spi_sync() to mipi_dbi_{command,
command_stackbuf}() interface, referred from Linus's patch [2].
both the two dpi/dbi interface was tested on stm32f429-disco board, if anyone
want to verify this patch, you need apply the clk patch for this board first,
you can get it from [3].
[1] "drm/panel: Add ilitek ili9341 panel driver"
https://lore.kernel.org/lkml/1590378348-8115-7-git-send-email-dillon.minf...
[2] "drm/panel: s6e63m0: Switch to DBI abstraction for SPI"
https://lore.kernel.org/dri-devel/20210611214243.669892-1-linus.walleij@l...
[3]
https://lore.kernel.org/lkml/1590378348-8115-6-git-send-email-dillon.minf...
v4:
- fix m68k-allmodconfig build error which reported by lkp, thanks.
- add Copyright 2018 David Lechner <david(a)lechnology.com>.
v3 link:
https://lore.kernel.org/lkml/1627013203-23099-1-git-send-email-dillon.min...
v3:
- add Fixes tags.
- collect reviewed-by tags from linus and jagan.
- replace DRM_ERROR() with dev_err() or drm_err().
- remove kernel-doc markers from struct ili9341_config{}.
- reorder include headers.
- remove the struct device *dev from struct ili9341{}.
- restructure the ili9341_probe() function, add two ili9341_{dbi,dpi)_probe()
to make it more readable according to jagan's suggestion, thanks.
for the full drm driver exist in drm/panel need Sam and Laurent's feedback.
so, not cover this part at this time, will be update later.
v2 link:
https://lore.kernel.org/lkml/1626853288-31223-1-git-send-email-dillon.min...
v2:
- replace vcc regulator to bulk regulators in driver, from linus suggestion.
- fix dtbs_check warnings on ili9341 dts binding check.
- add bulk regulation node in ilitek,ili9341.yaml.
v1 link:
https://lore.kernel.org/lkml/1626430843-23823-1-git-send-email-dillon.min...
Dillon Min (3):
dt-bindings: display: panel: Add ilitek ili9341 panel bindings
ARM: dts: stm32: fix dtbs_check warning on ili9341 dts binding
drm/panel: Add ilitek ili9341 panel driver
.../bindings/display/panel/ilitek,ili9341.yaml | 78 ++
arch/arm/boot/dts/stm32f429-disco.dts | 2 +-
drivers/gpu/drm/panel/Kconfig | 12 +
drivers/gpu/drm/panel/Makefile | 1 +
drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 792 +++++++++++++++++++++
5 files changed, 884 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml
create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9341.c
--
1.9.1
5 months, 3 weeks
[vfio:next 33/38] drivers/gpu/drm/i915/i915_pci.c:975:2: warning: missing field 'override_only' initializer
by kernel test robot
tree: https://github.com/awilliam/linux-vfio.git next
head: ea870730d83fc13a5fa2bd0e175176d7ac8a400a
commit: 343b7258687ecfbb363bfda8833a7cf641aac524 [33/38] PCI: Add 'override_only' field to struct pci_device_id
config: i386-randconfig-a004-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/awilliam/linux-vfio/commit/343b7258687ecfbb363bfda8833...
git remote add vfio https://github.com/awilliam/linux-vfio.git
git fetch --no-tags vfio next
git checkout 343b7258687ecfbb363bfda8833a7cf641aac524
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/i915/i915_pci.c:953:2: note: previous initialization is here
GEN12_FEATURES,
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:862:2: note: expanded from macro 'GEN12_FEATURES'
GEN11_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:833:15: note: expanded from macro 'GEN11_FEATURES'
.dbuf.size = 2048, \
^~~~
drivers/gpu/drm/i915/i915_pci.c:954:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
XE_LPD_FEATURES,
^~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:950:21: note: expanded from macro 'XE_LPD_FEATURES'
.dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2) | BIT(DBUF_S3) | BIT(DBUF_S4)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^
drivers/gpu/drm/i915/i915_pci.c:953:2: note: previous initialization is here
GEN12_FEATURES,
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:862:2: note: expanded from macro 'GEN12_FEATURES'
GEN11_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:834:21: note: expanded from macro 'GEN11_FEATURES'
.dbuf.slice_mask = BIT(DBUF_S1) | BIT(DBUF_S2), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^
drivers/gpu/drm/i915/i915_pci.c:960:3: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
BIT(RCS0) | BIT(BCS0) | BIT(VECS0) | BIT(VCS0) | BIT(VCS2),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^
drivers/gpu/drm/i915/i915_pci.c:953:2: note: previous initialization is here
GEN12_FEATURES,
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:862:2: note: expanded from macro 'GEN12_FEATURES'
GEN11_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:810:2: note: expanded from macro 'GEN11_FEATURES'
GEN10_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:791:2: note: expanded from macro 'GEN10_FEATURES'
GEN9_FEATURES, \
^~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
drivers/gpu/drm/i915/i915_pci.c:573:2: note: expanded from macro 'GEN8_FEATURES'
G75_FEATURES, \
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:540:26: note: expanded from macro 'G75_FEATURES'
.platform_engine_mask = BIT(RCS0) | BIT(VCS0) | BIT(BCS0) | BIT(VECS0), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/vdso/bits.h:7:19: note: expanded from macro 'BIT'
#define BIT(nr) (UL(1) << (nr))
^
drivers/gpu/drm/i915/i915_pci.c:961:16: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.ppgtt_size = 48,
^~
drivers/gpu/drm/i915/i915_pci.c:953:2: note: previous initialization is here
GEN12_FEATURES,
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:862:2: note: expanded from macro 'GEN12_FEATURES'
GEN11_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:810:2: note: expanded from macro 'GEN11_FEATURES'
GEN10_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:791:2: note: expanded from macro 'GEN10_FEATURES'
GEN9_FEATURES, \
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:643:2: note: expanded from macro 'GEN9_FEATURES'
GEN8_FEATURES, \
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:578:16: note: expanded from macro 'GEN8_FEATURES'
.ppgtt_size = 48, \
^~
drivers/gpu/drm/i915/i915_pci.c:962:19: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.dma_mask_size = 39,
^~
drivers/gpu/drm/i915/i915_pci.c:953:2: note: previous initialization is here
GEN12_FEATURES,
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:862:2: note: expanded from macro 'GEN12_FEATURES'
GEN11_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:810:2: note: expanded from macro 'GEN11_FEATURES'
GEN10_FEATURES, \
^~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:791:2: note: expanded from macro 'GEN10_FEATURES'
GEN9_FEATURES, \
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:643:2: note: expanded from macro 'GEN9_FEATURES'
GEN8_FEATURES, \
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_pci.c:576:19: note: expanded from macro 'GEN8_FEATURES'
.dma_mask_size = 39, \
^~
>> drivers/gpu/drm/i915/i915_pci.c:975:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I830_IDS(&i830_info),
^
include/drm/i915_pciids.h:59:2: note: expanded from macro 'INTEL_I830_IDS'
INTEL_VGA_DEVICE(0x3577, info)
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:976:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I845G_IDS(&i845g_info),
^
include/drm/i915_pciids.h:62:2: note: expanded from macro 'INTEL_I845G_IDS'
INTEL_VGA_DEVICE(0x2562, info)
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:977:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I85X_IDS(&i85x_info),
^
include/drm/i915_pciids.h:65:2: note: expanded from macro 'INTEL_I85X_IDS'
INTEL_VGA_DEVICE(0x3582, info), /* I855_GM */ \
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:977:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
include/drm/i915_pciids.h:66:2: note: expanded from macro 'INTEL_I85X_IDS'
INTEL_VGA_DEVICE(0x358e, info)
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:978:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I865G_IDS(&i865g_info),
^
include/drm/i915_pciids.h:69:2: note: expanded from macro 'INTEL_I865G_IDS'
INTEL_VGA_DEVICE(0x2572, info) /* I865_G */
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:979:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I915G_IDS(&i915g_info),
^
include/drm/i915_pciids.h:72:2: note: expanded from macro 'INTEL_I915G_IDS'
INTEL_VGA_DEVICE(0x2582, info), /* I915_G */ \
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:979:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
include/drm/i915_pciids.h:73:2: note: expanded from macro 'INTEL_I915G_IDS'
INTEL_VGA_DEVICE(0x258a, info) /* E7221_G */
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:980:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I915GM_IDS(&i915gm_info),
^
include/drm/i915_pciids.h:76:2: note: expanded from macro 'INTEL_I915GM_IDS'
INTEL_VGA_DEVICE(0x2592, info) /* I915_GM */
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:981:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I945G_IDS(&i945g_info),
^
include/drm/i915_pciids.h:79:2: note: expanded from macro 'INTEL_I945G_IDS'
INTEL_VGA_DEVICE(0x2772, info) /* I945_G */
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:982:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I945GM_IDS(&i945gm_info),
^
include/drm/i915_pciids.h:82:2: note: expanded from macro 'INTEL_I945GM_IDS'
INTEL_VGA_DEVICE(0x27a2, info), /* I945_GM */ \
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:982:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
include/drm/i915_pciids.h:83:2: note: expanded from macro 'INTEL_I945GM_IDS'
INTEL_VGA_DEVICE(0x27ae, info) /* I945_GME */
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
^
drivers/gpu/drm/i915/i915_pci.c:983:2: warning: missing field 'override_only' initializer [-Wmissing-field-initializers]
INTEL_I965G_IDS(&i965g_info),
^
include/drm/i915_pciids.h:86:2: note: expanded from macro 'INTEL_I965G_IDS'
INTEL_VGA_DEVICE(0x2972, info), /* I946_GZ */ \
^
include/drm/i915_pciids.h:42:23: note: expanded from macro 'INTEL_VGA_DEVICE'
(unsigned long) info }
vim +/override_only +975 drivers/gpu/drm/i915/i915_pci.c
bc76298e68e791 Chris Wilson 2018-02-15 967
42f5551d276921 Chris Wilson 2016-06-24 968 /*
42f5551d276921 Chris Wilson 2016-06-24 969 * Make sure any device matches here are from most specific to most
42f5551d276921 Chris Wilson 2016-06-24 970 * general. For example, since the Quanta match is based on the subsystem
42f5551d276921 Chris Wilson 2016-06-24 971 * and subvendor IDs, we need it to come before the more general IVB
42f5551d276921 Chris Wilson 2016-06-24 972 * PCI ID matches, otherwise we'll use the wrong info struct above.
42f5551d276921 Chris Wilson 2016-06-24 973 */
42f5551d276921 Chris Wilson 2016-06-24 974 static const struct pci_device_id pciidlist[] = {
31409fff1a392f Lucas De Marchi 2019-12-24 @975 INTEL_I830_IDS(&i830_info),
31409fff1a392f Lucas De Marchi 2019-12-24 976 INTEL_I845G_IDS(&i845g_info),
31409fff1a392f Lucas De Marchi 2019-12-24 977 INTEL_I85X_IDS(&i85x_info),
31409fff1a392f Lucas De Marchi 2019-12-24 978 INTEL_I865G_IDS(&i865g_info),
31409fff1a392f Lucas De Marchi 2019-12-24 979 INTEL_I915G_IDS(&i915g_info),
31409fff1a392f Lucas De Marchi 2019-12-24 980 INTEL_I915GM_IDS(&i915gm_info),
31409fff1a392f Lucas De Marchi 2019-12-24 981 INTEL_I945G_IDS(&i945g_info),
31409fff1a392f Lucas De Marchi 2019-12-24 982 INTEL_I945GM_IDS(&i945gm_info),
31409fff1a392f Lucas De Marchi 2019-12-24 983 INTEL_I965G_IDS(&i965g_info),
31409fff1a392f Lucas De Marchi 2019-12-24 984 INTEL_G33_IDS(&g33_info),
31409fff1a392f Lucas De Marchi 2019-12-24 985 INTEL_I965GM_IDS(&i965gm_info),
31409fff1a392f Lucas De Marchi 2019-12-24 986 INTEL_GM45_IDS(&gm45_info),
31409fff1a392f Lucas De Marchi 2019-12-24 987 INTEL_G45_IDS(&g45_info),
31409fff1a392f Lucas De Marchi 2019-12-24 988 INTEL_PINEVIEW_G_IDS(&pnv_g_info),
31409fff1a392f Lucas De Marchi 2019-12-24 989 INTEL_PINEVIEW_M_IDS(&pnv_m_info),
31409fff1a392f Lucas De Marchi 2019-12-24 990 INTEL_IRONLAKE_D_IDS(&ilk_d_info),
31409fff1a392f Lucas De Marchi 2019-12-24 991 INTEL_IRONLAKE_M_IDS(&ilk_m_info),
31409fff1a392f Lucas De Marchi 2019-12-24 992 INTEL_SNB_D_GT1_IDS(&snb_d_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 993 INTEL_SNB_D_GT2_IDS(&snb_d_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 994 INTEL_SNB_M_GT1_IDS(&snb_m_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 995 INTEL_SNB_M_GT2_IDS(&snb_m_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 996 INTEL_IVB_Q_IDS(&ivb_q_info), /* must be first IVB */
31409fff1a392f Lucas De Marchi 2019-12-24 997 INTEL_IVB_M_GT1_IDS(&ivb_m_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 998 INTEL_IVB_M_GT2_IDS(&ivb_m_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 999 INTEL_IVB_D_GT1_IDS(&ivb_d_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1000 INTEL_IVB_D_GT2_IDS(&ivb_d_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1001 INTEL_HSW_GT1_IDS(&hsw_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1002 INTEL_HSW_GT2_IDS(&hsw_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1003 INTEL_HSW_GT3_IDS(&hsw_gt3_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1004 INTEL_VLV_IDS(&vlv_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1005 INTEL_BDW_GT1_IDS(&bdw_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1006 INTEL_BDW_GT2_IDS(&bdw_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1007 INTEL_BDW_GT3_IDS(&bdw_gt3_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1008 INTEL_BDW_RSVD_IDS(&bdw_rsvd_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1009 INTEL_CHV_IDS(&chv_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1010 INTEL_SKL_GT1_IDS(&skl_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1011 INTEL_SKL_GT2_IDS(&skl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1012 INTEL_SKL_GT3_IDS(&skl_gt3_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1013 INTEL_SKL_GT4_IDS(&skl_gt4_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1014 INTEL_BXT_IDS(&bxt_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1015 INTEL_GLK_IDS(&glk_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1016 INTEL_KBL_GT1_IDS(&kbl_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1017 INTEL_KBL_GT2_IDS(&kbl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1018 INTEL_KBL_GT3_IDS(&kbl_gt3_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1019 INTEL_KBL_GT4_IDS(&kbl_gt3_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1020 INTEL_AML_KBL_GT2_IDS(&kbl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1021 INTEL_CFL_S_GT1_IDS(&cfl_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1022 INTEL_CFL_S_GT2_IDS(&cfl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1023 INTEL_CFL_H_GT1_IDS(&cfl_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1024 INTEL_CFL_H_GT2_IDS(&cfl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1025 INTEL_CFL_U_GT2_IDS(&cfl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1026 INTEL_CFL_U_GT3_IDS(&cfl_gt3_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1027 INTEL_WHL_U_GT1_IDS(&cfl_gt1_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1028 INTEL_WHL_U_GT2_IDS(&cfl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1029 INTEL_AML_CFL_GT2_IDS(&cfl_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1030 INTEL_WHL_U_GT3_IDS(&cfl_gt3_info),
5f4ae2704d59ee Chris Wilson 2020-06-02 1031 INTEL_CML_GT1_IDS(&cml_gt1_info),
5f4ae2704d59ee Chris Wilson 2020-06-02 1032 INTEL_CML_GT2_IDS(&cml_gt2_info),
5f4ae2704d59ee Chris Wilson 2020-06-02 1033 INTEL_CML_U_GT1_IDS(&cml_gt1_info),
5f4ae2704d59ee Chris Wilson 2020-06-02 1034 INTEL_CML_U_GT2_IDS(&cml_gt2_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1035 INTEL_CNL_IDS(&cnl_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1036 INTEL_ICL_11_IDS(&icl_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1037 INTEL_EHL_IDS(&ehl_info),
24ea098b7c0d80 Tejas Upadhyay 2020-10-14 1038 INTEL_JSL_IDS(&jsl_info),
31409fff1a392f Lucas De Marchi 2019-12-24 1039 INTEL_TGL_12_IDS(&tgl_info),
123f62de419f2a Matt Roper 2020-05-04 1040 INTEL_RKL_IDS(&rkl_info),
0883d63b19bbd6 Caz Yokoyama 2021-01-19 1041 INTEL_ADLS_IDS(&adl_s_info),
bdd27cad22379a Clinton Taylor 2021-05-06 1042 INTEL_ADLP_IDS(&adl_p_info),
42f5551d276921 Chris Wilson 2016-06-24 1043 {0, 0, 0}
42f5551d276921 Chris Wilson 2016-06-24 1044 };
42f5551d276921 Chris Wilson 2016-06-24 1045 MODULE_DEVICE_TABLE(pci, pciidlist);
42f5551d276921 Chris Wilson 2016-06-24 1046
:::::: The code at line 975 was first introduced by commit
:::::: 31409fff1a392fabebf59e3c58f606c7a1a2d24e drm/i915: simplify prefixes on device_info
:::::: TO: Lucas De Marchi <lucas.demarchi(a)intel.com>
:::::: CC: Lucas De Marchi <lucas.demarchi(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[peterz-queue:sched/core 8/11] include/linux/sched.h:1722:57: warning: unused parameter 'dst'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: 234b8ab6476c5edd5262e2ff563de9498d60044a
commit: b90ca8badbd11488e5f762346b028666808164e7 [8/11] sched: Introduce task_struct::user_cpus_ptr to track requested affinity
config: i386-randconfig-a016-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/core
git checkout b90ca8badbd11488e5f762346b028666808164e7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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_drv.c:30:
In file included from include/linux/acpi.h:15:
In file included from include/linux/device.h:15:
In file included from include/linux/dev_printk.h:16:
In file included from include/linux/ratelimit.h:6:
In file included from include/linux/sched.h:21:
include/linux/seccomp.h:71:65: warning: unused parameter 'sd' [-Wunused-parameter]
static inline int __secure_computing(const struct seccomp_data *sd) { return 0; }
^
include/linux/seccomp.h:81:52: warning: unused parameter 'arg2' [-Wunused-parameter]
static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3)
^
include/linux/seccomp.h:81:71: warning: unused parameter 'arg3' [-Wunused-parameter]
static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3)
^
include/linux/seccomp.h:86:48: warning: unused parameter 's' [-Wunused-parameter]
static inline int seccomp_mode(struct seccomp *s)
^
include/linux/seccomp.h:96:63: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void seccomp_filter_release(struct task_struct *tsk)
^
include/linux/seccomp.h:100:59: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void get_seccomp_filter(struct task_struct *tsk)
^
include/linux/seccomp.h:112:59: warning: unused parameter 'task' [-Wunused-parameter]
static inline long seccomp_get_filter(struct task_struct *task,
^
include/linux/seccomp.h:113:25: warning: unused parameter 'n' [-Wunused-parameter]
unsigned long n, void __user *data)
^
include/linux/seccomp.h:113:41: warning: unused parameter 'data' [-Wunused-parameter]
unsigned long n, void __user *data)
^
include/linux/seccomp.h:117:61: warning: unused parameter 'task' [-Wunused-parameter]
static inline long seccomp_get_metadata(struct task_struct *task,
^
include/linux/seccomp.h:118:20: warning: unused parameter 'filter_off' [-Wunused-parameter]
unsigned long filter_off,
^
include/linux/seccomp.h:119:19: warning: unused parameter 'data' [-Wunused-parameter]
void __user *data)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:15:
In file included from include/linux/device.h:15:
In file included from include/linux/dev_printk.h:16:
In file included from include/linux/ratelimit.h:6:
In file included from include/linux/sched.h:26:
include/linux/latencytop.h:47:47: warning: unused parameter 'task' [-Wunused-parameter]
account_scheduler_latency(struct task_struct *task, int usecs, int inter)
^
include/linux/latencytop.h:47:57: warning: unused parameter 'usecs' [-Wunused-parameter]
account_scheduler_latency(struct task_struct *task, int usecs, int inter)
^
include/linux/latencytop.h:47:68: warning: unused parameter 'inter' [-Wunused-parameter]
account_scheduler_latency(struct task_struct *task, int usecs, int inter)
^
include/linux/latencytop.h:51:66: warning: unused parameter 'p' [-Wunused-parameter]
static inline void clear_tsk_latency_tracing(struct task_struct *p)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:15:
In file included from include/linux/device.h:15:
In file included from include/linux/dev_printk.h:16:
In file included from include/linux/ratelimit.h:6:
In file included from include/linux/sched.h:33:
In file included from include/linux/posix-timers.h:9:
include/linux/task_work.h:30:55: warning: unused parameter 'task' [-Wunused-parameter]
static inline void exit_task_work(struct task_struct *task)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:15:
In file included from include/linux/device.h:15:
In file included from include/linux/dev_printk.h:16:
In file included from include/linux/ratelimit.h:6:
In file included from include/linux/sched.h:33:
include/linux/posix-timers.h:174:65: warning: unused parameter 'pct' [-Wunused-parameter]
static inline void posix_cputimers_init(struct posix_cputimers *pct) { }
^
include/linux/posix-timers.h:175:71: warning: unused parameter 'pct' [-Wunused-parameter]
static inline void posix_cputimers_group_init(struct posix_cputimers *pct,
^
include/linux/posix-timers.h:176:16: warning: unused parameter 'cpu_limit' [-Wunused-parameter]
u64 cpu_limit) { }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:15:
In file included from include/linux/device.h:15:
In file included from include/linux/dev_printk.h:16:
In file included from include/linux/ratelimit.h:6:
include/linux/sched.h:1713:60: warning: unused parameter 'p' [-Wunused-parameter]
static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
^
include/linux/sched.h:1713:85: warning: unused parameter 'new_mask' [-Wunused-parameter]
static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
^
include/linux/sched.h:1716:60: warning: unused parameter 'p' [-Wunused-parameter]
static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
^
>> include/linux/sched.h:1722:57: warning: unused parameter 'dst' [-Wunused-parameter]
static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
^
>> include/linux/sched.h:1722:91: warning: unused parameter 'node' [-Wunused-parameter]
static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
^
include/linux/sched.h:1829:53: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void kick_process(struct task_struct *tsk) { }
^
include/linux/sched.h:1858:68: warning: unused parameter 'p' [-Wunused-parameter]
static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
^
include/linux/sched.h:1858:84: warning: unused parameter 'match_state' [-Wunused-parameter]
static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
^
include/linux/sched.h:1985:46: warning: unused parameter 'lock' [-Wunused-parameter]
static inline int spin_needbreak(spinlock_t *lock)
^
include/linux/sched.h:2002:46: warning: unused parameter 'lock' [-Wunused-parameter]
static inline int rwlock_needbreak(rwlock_t *lock)
^
include/linux/sched.h:2034:63: warning: unused parameter 'p' [-Wunused-parameter]
static inline unsigned int task_cpu(const struct task_struct *p)
^
include/linux/sched.h:2039:53: warning: unused parameter 'p' [-Wunused-parameter]
static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
^
include/linux/sched.h:2039:69: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
^
include/linux/sched.h:2054:42: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool vcpu_is_preempted(int cpu)
^
include/linux/sched.h:2154:63: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_set_notify_resume(struct task_struct *t)
^
include/linux/sched.h:2157:62: warning: unused parameter 'ksig' [-Wunused-parameter]
static inline void rseq_handle_notify_resume(struct ksignal *ksig,
^
include/linux/sched.h:2158:27: warning: unused parameter 'regs' [-Wunused-parameter]
struct pt_regs *regs)
^
include/linux/sched.h:2161:56: warning: unused parameter 'ksig' [-Wunused-parameter]
static inline void rseq_signal_deliver(struct ksignal *ksig,
^
include/linux/sched.h:2162:28: warning: unused parameter 'regs' [-Wunused-parameter]
struct pt_regs *regs)
^
include/linux/sched.h:2165:53: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_preempt(struct task_struct *t)
^
include/linux/sched.h:2168:53: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_migrate(struct task_struct *t)
^
include/linux/sched.h:2171:50: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
^
include/linux/sched.h:2171:67: warning: unused parameter 'clone_flags' [-Wunused-parameter]
static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
^
include/linux/sched.h:2174:52: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_execve(struct task_struct *t)
^
include/linux/sched.h:2186:49: warning: unused parameter 'regs' [-Wunused-parameter]
static inline void rseq_syscall(struct pt_regs *regs)
^
include/linux/sched.h:2212:56: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void sched_core_free(struct task_struct *tsk) { }
^
include/linux/sched.h:2213:56: warning: unused parameter 'p' [-Wunused-parameter]
static inline void sched_core_fork(struct task_struct *p) { }
^
In file included from drivers/gpu/drm/i915/i915_drv.c:30:
In file included from include/linux/acpi.h:15:
In file included from include/linux/device.h:16:
In file included from include/linux/energy_model.h:10:
include/linux/sched/topology.h:210:36: warning: unused parameter 'ndoms_new' [-Wunused-parameter]
partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
^
include/linux/sched/topology.h:210:61: warning: unused parameter 'doms_new' [-Wunused-parameter]
partition_sched_domains_locked(int ndoms_new, cpumask_var_t doms_new[],
^
include/linux/sched/topology.h:211:37: warning: unused parameter 'dattr_new' [-Wunused-parameter]
struct sched_domain_attr *dattr_new)
^
include/linux/sched/topology.h:216:29: warning: unused parameter 'ndoms_new' [-Wunused-parameter]
partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
^
include/linux/sched/topology.h:216:54: warning: unused parameter 'doms_new' [-Wunused-parameter]
partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
^
include/linux/sched/topology.h:217:30: warning: unused parameter 'dattr_new' [-Wunused-parameter]
struct sched_domain_attr *dattr_new)
^
include/linux/sched/topology.h:221:41: warning: unused parameter 'this_cpu' [-Wunused-parameter]
static inline bool cpus_share_cache(int this_cpu, int that_cpu)
^
include/linux/sched/topology.h:221:55: warning: unused parameter 'that_cpu' [-Wunused-parameter]
static inline bool cpus_share_cache(int this_cpu, int that_cpu)
^
include/linux/sched/topology.h:248:43: warning: unused parameter 'cpu' [-Wunused-parameter]
unsigned long arch_scale_cpu_capacity(int cpu)
^
include/linux/sched/topology.h:256:47: warning: unused parameter 'cpu' [-Wunused-parameter]
--
In file included from include/linux/sched.h:22:
In file included from include/linux/nodemask.h:96:
include/linux/numa.h:47:47: warning: unused parameter 'node' [-Wunused-parameter]
static inline int numa_map_to_online_node(int node)
^
include/linux/numa.h:51:50: warning: unused parameter 'start' [-Wunused-parameter]
static inline int memory_add_physaddr_to_nid(u64 start)
^
include/linux/numa.h:55:43: warning: unused parameter 'start' [-Wunused-parameter]
static inline int phys_to_target_node(u64 start)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from include/linux/sched.h:22:
include/linux/nodemask.h:465:57: warning: unused parameter 'state' [-Wunused-parameter]
static inline int node_state(int node, enum node_states state)
^
include/linux/nodemask.h:470:39: warning: unused parameter 'node' [-Wunused-parameter]
static inline void node_set_state(int node, enum node_states state)
^
include/linux/nodemask.h:470:62: warning: unused parameter 'state' [-Wunused-parameter]
static inline void node_set_state(int node, enum node_states state)
^
include/linux/nodemask.h:474:41: warning: unused parameter 'node' [-Wunused-parameter]
static inline void node_clear_state(int node, enum node_states state)
^
include/linux/nodemask.h:474:64: warning: unused parameter 'state' [-Wunused-parameter]
static inline void node_clear_state(int node, enum node_states state)
^
include/linux/nodemask.h:478:51: warning: unused parameter 'state' [-Wunused-parameter]
static inline int num_node_state(enum node_states state)
^
include/linux/nodemask.h:500:49: warning: unused parameter 'mask' [-Wunused-parameter]
static inline int node_random(const nodemask_t *mask)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from include/linux/sched.h:26:
include/linux/latencytop.h:47:47: warning: unused parameter 'task' [-Wunused-parameter]
account_scheduler_latency(struct task_struct *task, int usecs, int inter)
^
include/linux/latencytop.h:47:57: warning: unused parameter 'usecs' [-Wunused-parameter]
account_scheduler_latency(struct task_struct *task, int usecs, int inter)
^
include/linux/latencytop.h:47:68: warning: unused parameter 'inter' [-Wunused-parameter]
account_scheduler_latency(struct task_struct *task, int usecs, int inter)
^
include/linux/latencytop.h:51:66: warning: unused parameter 'p' [-Wunused-parameter]
static inline void clear_tsk_latency_tracing(struct task_struct *p)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from include/linux/sched.h:33:
In file included from include/linux/posix-timers.h:9:
include/linux/task_work.h:30:55: warning: unused parameter 'task' [-Wunused-parameter]
static inline void exit_task_work(struct task_struct *task)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
In file included from include/linux/sched.h:33:
include/linux/posix-timers.h:174:65: warning: unused parameter 'pct' [-Wunused-parameter]
static inline void posix_cputimers_init(struct posix_cputimers *pct) { }
^
include/linux/posix-timers.h:175:71: warning: unused parameter 'pct' [-Wunused-parameter]
static inline void posix_cputimers_group_init(struct posix_cputimers *pct,
^
include/linux/posix-timers.h:176:16: warning: unused parameter 'cpu_limit' [-Wunused-parameter]
u64 cpu_limit) { }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:9:
include/linux/sched.h:1713:60: warning: unused parameter 'p' [-Wunused-parameter]
static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
^
include/linux/sched.h:1713:85: warning: unused parameter 'new_mask' [-Wunused-parameter]
static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
^
include/linux/sched.h:1716:60: warning: unused parameter 'p' [-Wunused-parameter]
static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
^
>> include/linux/sched.h:1722:57: warning: unused parameter 'dst' [-Wunused-parameter]
static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
^
>> include/linux/sched.h:1722:91: warning: unused parameter 'node' [-Wunused-parameter]
static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
^
include/linux/sched.h:1829:53: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void kick_process(struct task_struct *tsk) { }
^
include/linux/sched.h:1858:68: warning: unused parameter 'p' [-Wunused-parameter]
static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
^
include/linux/sched.h:1858:84: warning: unused parameter 'match_state' [-Wunused-parameter]
static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state)
^
include/linux/sched.h:1985:46: warning: unused parameter 'lock' [-Wunused-parameter]
static inline int spin_needbreak(spinlock_t *lock)
^
include/linux/sched.h:2002:46: warning: unused parameter 'lock' [-Wunused-parameter]
static inline int rwlock_needbreak(rwlock_t *lock)
^
include/linux/sched.h:2034:63: warning: unused parameter 'p' [-Wunused-parameter]
static inline unsigned int task_cpu(const struct task_struct *p)
^
include/linux/sched.h:2039:53: warning: unused parameter 'p' [-Wunused-parameter]
static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
^
include/linux/sched.h:2039:69: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
^
include/linux/sched.h:2054:42: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool vcpu_is_preempted(int cpu)
^
include/linux/sched.h:2154:63: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_set_notify_resume(struct task_struct *t)
^
include/linux/sched.h:2157:62: warning: unused parameter 'ksig' [-Wunused-parameter]
static inline void rseq_handle_notify_resume(struct ksignal *ksig,
^
include/linux/sched.h:2158:27: warning: unused parameter 'regs' [-Wunused-parameter]
struct pt_regs *regs)
^
include/linux/sched.h:2161:56: warning: unused parameter 'ksig' [-Wunused-parameter]
static inline void rseq_signal_deliver(struct ksignal *ksig,
^
include/linux/sched.h:2162:28: warning: unused parameter 'regs' [-Wunused-parameter]
struct pt_regs *regs)
^
include/linux/sched.h:2165:53: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_preempt(struct task_struct *t)
^
include/linux/sched.h:2168:53: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_migrate(struct task_struct *t)
^
include/linux/sched.h:2171:50: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
^
include/linux/sched.h:2171:67: warning: unused parameter 'clone_flags' [-Wunused-parameter]
static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags)
^
include/linux/sched.h:2174:52: warning: unused parameter 't' [-Wunused-parameter]
static inline void rseq_execve(struct task_struct *t)
^
include/linux/sched.h:2186:49: warning: unused parameter 'regs' [-Wunused-parameter]
static inline void rseq_syscall(struct pt_regs *regs)
^
include/linux/sched.h:2212:56: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void sched_core_free(struct task_struct *tsk) { }
^
include/linux/sched.h:2213:56: warning: unused parameter 'p' [-Wunused-parameter]
static inline void sched_core_fork(struct task_struct *p) { }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
include/linux/vtime.h:28:57: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_user_enter(struct task_struct *tsk) { }
^
include/linux/vtime.h:29:56: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_user_exit(struct task_struct *tsk) { }
^
include/linux/vtime.h:30:58: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_guest_enter(struct task_struct *tsk) { }
^
include/linux/vtime.h:31:57: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_guest_exit(struct task_struct *tsk) { }
^
include/linux/vtime.h:32:56: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { }
^
include/linux/vtime.h:32:65: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { }
^
include/linux/vtime.h:41:58: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
^
include/linux/vtime.h:41:76: warning: unused parameter 'offset' [-Wunused-parameter]
static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
^
include/linux/vtime.h:42:62: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_account_softirq(struct task_struct *tsk) { }
..
vim +/dst +1722 include/linux/sched.h
1704
1705 extern int cpuset_cpumask_can_shrink(const struct cpumask *cur, const struct cpumask *trial);
1706 extern int task_can_attach(struct task_struct *p, const struct cpumask *cs_cpus_allowed);
1707 #ifdef CONFIG_SMP
1708 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1709 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1710 extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node);
1711 extern void release_user_cpus_ptr(struct task_struct *p);
1712 #else
> 1713 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
1714 {
1715 }
1716 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
1717 {
1718 if (!cpumask_test_cpu(0, new_mask))
1719 return -EINVAL;
1720 return 0;
1721 }
> 1722 static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
1723 {
1724 if (src->user_cpus_ptr)
1725 return -EINVAL;
1726 return 0;
1727 }
1728 static inline void release_user_cpus_ptr(struct task_struct *p)
1729 {
1730 WARN_ON(p->user_cpus_ptr);
1731 }
1732 #endif
1733
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months