drivers/crypto/sa2ul.c:1674:6: warning: variable 'auth_len' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 231bc539066760aaa44d46818c85b14ca2f56d9f
commit: 00c9211f60db2dead16856f81a3e6ab86b31f275 crypto: sa2ul - Fix DMA mapping API usage
date: 8 months ago
config: arm64-randconfig-r005-20210601 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d41cb6bb2607fa5c7a9df2b3dab361353657d225)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 00c9211f60db2dead16856f81a3e6ab86b31f275
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/crypto/sa2ul.c:1674:6: warning: variable 'auth_len' set but not used [-Wunused-but-set-variable]
u16 auth_len;
^
1 warning generated.
vim +/auth_len +1674 drivers/crypto/sa2ul.c
2dc53d0047458e2 Keerthy 2020-07-13 1662
d2c8ac187fc922e Keerthy 2020-07-13 1663 static void sa_aead_dma_in_callback(void *data)
d2c8ac187fc922e Keerthy 2020-07-13 1664 {
d2c8ac187fc922e Keerthy 2020-07-13 1665 struct sa_rx_data *rxd = (struct sa_rx_data *)data;
d2c8ac187fc922e Keerthy 2020-07-13 1666 struct aead_request *req;
d2c8ac187fc922e Keerthy 2020-07-13 1667 struct crypto_aead *tfm;
d2c8ac187fc922e Keerthy 2020-07-13 1668 unsigned int start;
d2c8ac187fc922e Keerthy 2020-07-13 1669 unsigned int authsize;
d2c8ac187fc922e Keerthy 2020-07-13 1670 u8 auth_tag[SA_MAX_AUTH_TAG_SZ];
d2c8ac187fc922e Keerthy 2020-07-13 1671 size_t pl, ml;
00c9211f60db2de Peter Ujfalusi 2020-09-23 1672 int i;
d2c8ac187fc922e Keerthy 2020-07-13 1673 int err = 0;
d2c8ac187fc922e Keerthy 2020-07-13 @1674 u16 auth_len;
d2c8ac187fc922e Keerthy 2020-07-13 1675 u32 *mdptr;
d2c8ac187fc922e Keerthy 2020-07-13 1676
00c9211f60db2de Peter Ujfalusi 2020-09-23 1677 sa_sync_from_device(rxd);
d2c8ac187fc922e Keerthy 2020-07-13 1678 req = container_of(rxd->req, struct aead_request, base);
d2c8ac187fc922e Keerthy 2020-07-13 1679 tfm = crypto_aead_reqtfm(req);
d2c8ac187fc922e Keerthy 2020-07-13 1680 start = req->assoclen + req->cryptlen;
d2c8ac187fc922e Keerthy 2020-07-13 1681 authsize = crypto_aead_authsize(tfm);
d2c8ac187fc922e Keerthy 2020-07-13 1682
d2c8ac187fc922e Keerthy 2020-07-13 1683 mdptr = (u32 *)dmaengine_desc_get_metadata_ptr(rxd->tx_in, &pl, &ml);
d2c8ac187fc922e Keerthy 2020-07-13 1684 for (i = 0; i < (authsize / 4); i++)
d2c8ac187fc922e Keerthy 2020-07-13 1685 mdptr[i + 4] = swab32(mdptr[i + 4]);
d2c8ac187fc922e Keerthy 2020-07-13 1686
d2c8ac187fc922e Keerthy 2020-07-13 1687 auth_len = req->assoclen + req->cryptlen;
d2c8ac187fc922e Keerthy 2020-07-13 1688
d2c8ac187fc922e Keerthy 2020-07-13 1689 if (rxd->enc) {
d2c8ac187fc922e Keerthy 2020-07-13 1690 scatterwalk_map_and_copy(&mdptr[4], req->dst, start, authsize,
d2c8ac187fc922e Keerthy 2020-07-13 1691 1);
d2c8ac187fc922e Keerthy 2020-07-13 1692 } else {
00c9211f60db2de Peter Ujfalusi 2020-09-23 1693 auth_len -= authsize;
d2c8ac187fc922e Keerthy 2020-07-13 1694 start -= authsize;
d2c8ac187fc922e Keerthy 2020-07-13 1695 scatterwalk_map_and_copy(auth_tag, req->src, start, authsize,
d2c8ac187fc922e Keerthy 2020-07-13 1696 0);
d2c8ac187fc922e Keerthy 2020-07-13 1697
d2c8ac187fc922e Keerthy 2020-07-13 1698 err = memcmp(&mdptr[4], auth_tag, authsize) ? -EBADMSG : 0;
d2c8ac187fc922e Keerthy 2020-07-13 1699 }
d2c8ac187fc922e Keerthy 2020-07-13 1700
00c9211f60db2de Peter Ujfalusi 2020-09-23 1701 sa_free_sa_rx_data(rxd);
d2c8ac187fc922e Keerthy 2020-07-13 1702
d2c8ac187fc922e Keerthy 2020-07-13 1703 aead_request_complete(req, err);
d2c8ac187fc922e Keerthy 2020-07-13 1704 }
d2c8ac187fc922e Keerthy 2020-07-13 1705
:::::: The code at line 1674 was first introduced by commit
:::::: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD algorithm support
:::::: TO: Keerthy <j-keerthy(a)ti.com>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:7071:13: warning: stack frame size of 2080 bytes in function 'mlxsw_sp_router_fib_event_work'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 009c9aa5be652675a06d5211e1640e02bbb1c33d
commit: 997acaf6b4b59c6a9c259740312a69ea549cc684 lockdep: report broken irq restoration
date: 5 months ago
config: powerpc-randconfig-r023-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 997acaf6b4b59c6a9c259740312a69ea549cc684
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:4:
In file included from include/linux/kernel.h:11:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:7071:13: warning: stack frame size of 2080 bytes in function 'mlxsw_sp_router_fib_event_work' [-Wframe-larger-than=]
static void mlxsw_sp_router_fib_event_work(struct work_struct *work)
^
2 warnings generated.
vim +/mlxsw_sp_router_fib_event_work +7071 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
d42b0965b1d4fe Yotam Gigi 2017-09-27 7070
c1b290d594a12b Jiri Pirko 2020-11-10 @7071 static void mlxsw_sp_router_fib_event_work(struct work_struct *work)
c1b290d594a12b Jiri Pirko 2020-11-10 7072 {
c1b290d594a12b Jiri Pirko 2020-11-10 7073 struct mlxsw_sp_router *router = container_of(work, struct mlxsw_sp_router, fib_event_work);
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7074 struct mlxsw_sp_fib_entry_op_ctx *op_ctx = router->ll_op_ctx;
c1b290d594a12b Jiri Pirko 2020-11-10 7075 struct mlxsw_sp *mlxsw_sp = router->mlxsw_sp;
505cd65c66e822 Jiri Pirko 2020-11-10 7076 struct mlxsw_sp_fib_event *next_fib_event;
505cd65c66e822 Jiri Pirko 2020-11-10 7077 struct mlxsw_sp_fib_event *fib_event;
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7078 int last_family = AF_UNSPEC;
c1b290d594a12b Jiri Pirko 2020-11-10 7079 LIST_HEAD(fib_event_queue);
c1b290d594a12b Jiri Pirko 2020-11-10 7080
c1b290d594a12b Jiri Pirko 2020-11-10 7081 spin_lock_bh(&router->fib_event_queue_lock);
c1b290d594a12b Jiri Pirko 2020-11-10 7082 list_splice_init(&router->fib_event_queue, &fib_event_queue);
c1b290d594a12b Jiri Pirko 2020-11-10 7083 spin_unlock_bh(&router->fib_event_queue_lock);
c1b290d594a12b Jiri Pirko 2020-11-10 7084
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7085 /* Router lock is held here to make sure per-instance
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7086 * operation context is not used in between FIB4/6 events
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7087 * processing.
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7088 */
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7089 mutex_lock(&router->lock);
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7090 mlxsw_sp_fib_entry_op_ctx_clear(op_ctx);
505cd65c66e822 Jiri Pirko 2020-11-10 7091 list_for_each_entry_safe(fib_event, next_fib_event,
505cd65c66e822 Jiri Pirko 2020-11-10 7092 &fib_event_queue, list) {
505cd65c66e822 Jiri Pirko 2020-11-10 7093 /* Check if the next entry in the queue exists and it is
505cd65c66e822 Jiri Pirko 2020-11-10 7094 * of the same type (family and event) as the currect one.
505cd65c66e822 Jiri Pirko 2020-11-10 7095 * In that case it is permitted to do the bulking
505cd65c66e822 Jiri Pirko 2020-11-10 7096 * of multiple FIB entries to a single register write.
505cd65c66e822 Jiri Pirko 2020-11-10 7097 */
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7098 op_ctx->bulk_ok = !list_is_last(&fib_event->list, &fib_event_queue) &&
505cd65c66e822 Jiri Pirko 2020-11-10 7099 fib_event->family == next_fib_event->family &&
505cd65c66e822 Jiri Pirko 2020-11-10 7100 fib_event->event == next_fib_event->event;
54ff9dbbb96f7e Jiri Pirko 2020-12-14 7101 op_ctx->event = fib_event->event;
505cd65c66e822 Jiri Pirko 2020-11-10 7102
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7103 /* In case family of this and the previous entry are different, context
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7104 * reinitialization is going to be needed now, indicate that.
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7105 * Note that since last_family is initialized to AF_UNSPEC, this is always
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7106 * going to happen for the first entry processed in the work.
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7107 */
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7108 if (fib_event->family != last_family)
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7109 op_ctx->initialized = false;
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7110
c1b290d594a12b Jiri Pirko 2020-11-10 7111 switch (fib_event->family) {
c1b290d594a12b Jiri Pirko 2020-11-10 7112 case AF_INET:
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7113 mlxsw_sp_router_fib4_event_process(mlxsw_sp, op_ctx,
2d5bd7a111ca08 Jiri Pirko 2020-11-10 7114 fib_event);
c1b290d594a12b Jiri Pirko 2020-11-10 7115 break;
c1b290d594a12b Jiri Pirko 2020-11-10 7116 case AF_INET6:
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7117 mlxsw_sp_router_fib6_event_process(mlxsw_sp, op_ctx,
2d5bd7a111ca08 Jiri Pirko 2020-11-10 7118 fib_event);
c1b290d594a12b Jiri Pirko 2020-11-10 7119 break;
c1b290d594a12b Jiri Pirko 2020-11-10 7120 case RTNL_FAMILY_IP6MR:
c1b290d594a12b Jiri Pirko 2020-11-10 7121 case RTNL_FAMILY_IPMR:
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7122 /* Unlock here as inside FIBMR the lock is taken again
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7123 * under RTNL. The per-instance operation context
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7124 * is not used by FIBMR.
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7125 */
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7126 mutex_unlock(&router->lock);
c1b290d594a12b Jiri Pirko 2020-11-10 7127 mlxsw_sp_router_fibmr_event_process(mlxsw_sp,
c1b290d594a12b Jiri Pirko 2020-11-10 7128 fib_event);
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7129 mutex_lock(&router->lock);
c1b290d594a12b Jiri Pirko 2020-11-10 7130 break;
c1b290d594a12b Jiri Pirko 2020-11-10 7131 default:
c1b290d594a12b Jiri Pirko 2020-11-10 7132 WARN_ON_ONCE(1);
c1b290d594a12b Jiri Pirko 2020-11-10 7133 }
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7134 last_family = fib_event->family;
c1b290d594a12b Jiri Pirko 2020-11-10 7135 kfree(fib_event);
c1b290d594a12b Jiri Pirko 2020-11-10 7136 cond_resched();
c1b290d594a12b Jiri Pirko 2020-11-10 7137 }
ae9ce81aa726ef Jiri Pirko 2020-11-10 7138 WARN_ON_ONCE(!list_empty(&router->ll_op_ctx->fib_entry_priv_list));
91d20d71b2f0b1 Jiri Pirko 2020-11-10 7139 mutex_unlock(&router->lock);
c1b290d594a12b Jiri Pirko 2020-11-10 7140 }
c1b290d594a12b Jiri Pirko 2020-11-10 7141
:::::: The code at line 7071 was first introduced by commit
:::::: c1b290d594a12b4ed3b7386947162d5a061900b2 mlxsw: spectrum_router: Introduce FIB event queue instead of separate works
:::::: TO: Jiri Pirko <jiri(a)nvidia.com>
:::::: CC: Jakub Kicinski <kuba(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/gpu/drm/panel/panel-samsung-ld9040.c:239:12: warning: stack frame size of 8344 bytes in function 'ld9040_prepare'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 009c9aa5be652675a06d5211e1640e02bbb1c33d
commit: 02c587733c8161355a43e6e110c2e29bd0acff72 kasan: remove redundant config option
date: 8 weeks ago
config: x86_64-randconfig-a016-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 02c587733c8161355a43e6e110c2e29bd0acff72
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/panel/panel-samsung-ld9040.c:377:35: warning: unused variable 'ld9040_ids' [-Wunused-const-variable]
static const struct spi_device_id ld9040_ids[] = {
^
>> drivers/gpu/drm/panel/panel-samsung-ld9040.c:239:12: warning: stack frame size of 8344 bytes in function 'ld9040_prepare' [-Wframe-larger-than=]
static int ld9040_prepare(struct drm_panel *panel)
^
2 warnings generated.
--
>> drivers/usb/gadget/udc/max3420_udc.c:843:12: warning: stack frame size of 13976 bytes in function 'max3420_thread' [-Wframe-larger-than=]
static int max3420_thread(void *dev_id)
^
1 warning generated.
vim +/ld9040_prepare +239 drivers/gpu/drm/panel/panel-samsung-ld9040.c
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 238
099b3e8699322e drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 @239 static int ld9040_prepare(struct drm_panel *panel)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 240 {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 241 struct ld9040 *ctx = panel_to_ld9040(panel);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 242 int ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 243
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 244 ret = ld9040_power_on(ctx);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 245 if (ret < 0)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 246 return ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 247
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 248 ld9040_init(ctx);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 249
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 250 ret = ld9040_clear_error(ctx);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 251
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 252 if (ret < 0)
8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 253 ld9040_unprepare(panel);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 254
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 255 return ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 256 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 257
8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 258 static int ld9040_enable(struct drm_panel *panel)
8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 259 {
8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 260 return 0;
8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 261 }
8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 262
0ce8ddd8e06dcb drivers/gpu/drm/panel/panel-samsung-ld9040.c Sam Ravnborg 2019-12-07 263 static int ld9040_get_modes(struct drm_panel *panel,
0ce8ddd8e06dcb drivers/gpu/drm/panel/panel-samsung-ld9040.c Sam Ravnborg 2019-12-07 264 struct drm_connector *connector)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 265 {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 266 struct ld9040 *ctx = panel_to_ld9040(panel);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 267 struct drm_display_mode *mode;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 268
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 269 mode = drm_mode_create(connector->dev);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 270 if (!mode) {
5936b3bdaa8889 drivers/gpu/drm/panel/panel-samsung-ld9040.c Sam Ravnborg 2020-08-15 271 dev_err(panel->dev, "failed to create a new display mode\n");
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 272 return 0;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 273 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 274
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 275 drm_display_mode_from_videomode(&ctx->vm, mode);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 276 mode->width_mm = ctx->width_mm;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 277 mode->height_mm = ctx->height_mm;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 278 connector->display_info.width_mm = mode->width_mm;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 279 connector->display_info.height_mm = mode->height_mm;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 280
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 281 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 282 drm_mode_probed_add(connector, mode);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 283
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 284 return 1;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 285 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 286
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 287 static const struct drm_panel_funcs ld9040_drm_funcs = {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 288 .disable = ld9040_disable,
099b3e8699322e drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 289 .unprepare = ld9040_unprepare,
099b3e8699322e drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 290 .prepare = ld9040_prepare,
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 291 .enable = ld9040_enable,
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 292 .get_modes = ld9040_get_modes,
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 293 };
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 294
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 295 static int ld9040_parse_dt(struct ld9040 *ctx)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 296 {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 297 struct device *dev = ctx->dev;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 298 struct device_node *np = dev->of_node;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 299 int ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 300
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 301 ret = of_get_videomode(np, &ctx->vm, 0);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 302 if (ret < 0)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 303 return ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 304
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 305 of_property_read_u32(np, "power-on-delay", &ctx->power_on_delay);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 306 of_property_read_u32(np, "reset-delay", &ctx->reset_delay);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 307 of_property_read_u32(np, "panel-width-mm", &ctx->width_mm);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 308 of_property_read_u32(np, "panel-height-mm", &ctx->height_mm);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 309
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 310 return 0;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 311 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 312
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 313 static int ld9040_probe(struct spi_device *spi)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 314 {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 315 struct device *dev = &spi->dev;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 316 struct ld9040 *ctx;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 317 int ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 318
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 319 ctx = devm_kzalloc(dev, sizeof(struct ld9040), GFP_KERNEL);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 320 if (!ctx)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 321 return -ENOMEM;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 322
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 323 spi_set_drvdata(spi, ctx);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 324
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 325 ctx->dev = dev;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 326 ctx->brightness = ARRAY_SIZE(ld9040_gammas) - 1;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 327
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 328 ret = ld9040_parse_dt(ctx);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 329 if (ret < 0)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 330 return ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 331
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 332 ctx->supplies[0].supply = "vdd3";
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 333 ctx->supplies[1].supply = "vci";
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 334 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies),
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 335 ctx->supplies);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 336 if (ret < 0)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 337 return ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 338
8a8cc83cbd081b drivers/gpu/drm/panel/panel-ld9040.c Alexandre Courbot 2014-10-23 339 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 340 if (IS_ERR(ctx->reset_gpio)) {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 341 dev_err(dev, "cannot get reset-gpios %ld\n",
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 342 PTR_ERR(ctx->reset_gpio));
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 343 return PTR_ERR(ctx->reset_gpio);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 344 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 345
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 346 spi->bits_per_word = 9;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 347 ret = spi_setup(spi);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 348 if (ret < 0) {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 349 dev_err(dev, "spi setup failed.\n");
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 350 return ret;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 351 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 352
9a2654c0f62a17 drivers/gpu/drm/panel/panel-samsung-ld9040.c Laurent Pinchart 2019-09-04 353 drm_panel_init(&ctx->panel, dev, &ld9040_drm_funcs,
9a2654c0f62a17 drivers/gpu/drm/panel/panel-samsung-ld9040.c Laurent Pinchart 2019-09-04 354 DRM_MODE_CONNECTOR_DPI);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 355
c3ee8c65f63799 drivers/gpu/drm/panel/panel-samsung-ld9040.c Bernard Zhao 2020-08-01 356 drm_panel_add(&ctx->panel);
c3ee8c65f63799 drivers/gpu/drm/panel/panel-samsung-ld9040.c Bernard Zhao 2020-08-01 357
c3ee8c65f63799 drivers/gpu/drm/panel/panel-samsung-ld9040.c Bernard Zhao 2020-08-01 358 return 0;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 359 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 360
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 361 static int ld9040_remove(struct spi_device *spi)
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 362 {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 363 struct ld9040 *ctx = spi_get_drvdata(spi);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 364
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 365 ld9040_power_off(ctx);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 366 drm_panel_remove(&ctx->panel);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 367
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 368 return 0;
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 369 }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 370
1a8f9056f59e01 drivers/gpu/drm/panel/panel-ld9040.c Thierry Reding 2015-04-14 371 static const struct of_device_id ld9040_of_match[] = {
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 372 { .compatible = "samsung,ld9040" },
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 373 { }
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 374 };
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 375 MODULE_DEVICE_TABLE(of, ld9040_of_match);
ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 376
6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 @377 static const struct spi_device_id ld9040_ids[] = {
6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 378 { "ld9040", },
6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 379 { /* sentinel */ }
6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 380 };
6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 381 MODULE_DEVICE_TABLE(spi, ld9040_ids);
6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 382
:::::: The code at line 239 was first introduced by commit
:::::: 099b3e8699322efb7229913d2c1651588205f182 drm/panel: ld9040: Add dummy prepare and unprepare routines
:::::: TO: Ajay Kumar <ajaykumar.rs(a)samsung.com>
:::::: CC: Thierry Reding <treding(a)nvidia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[nomadik:ux500-gavini-v5.13-rc1 1/5] dtbs_check: arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/scu@a0410000: failed to match any schema with compatible: ['arm,cortex-a9-scu']
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-gavini-v5.13-rc1
head: 2dd1d4c6b852a045a2591eb647df303399b8666c
commit: a9311cbfae8f7cc0a7ec89c25448238762e54a95 [1/5] ARM: dts: ux500: Add device tree for Samsung Gavini
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
From schema: /usr/local/lib/python3.9/dist-packages/dtschema/schemas/simple-bus.yaml
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml: soc: dma-controller@801C0000:reg:0: [2149318656, 4096, 1073807360, 2048] is too long
From schema: /usr/local/lib/python3.9/dist-packages/dtschema/schemas/reg.yaml
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc: failed to match any schema with compatible: ['stericsson,db8500', 'simple-bus']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/ptm@801ae000: failed to match any schema with compatible: ['arm,coresight-etm3x', 'arm,primecell']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/ptm@801af000: failed to match any schema with compatible: ['arm,coresight-etm3x', 'arm,primecell']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/funnel@801a6000: failed to match any schema with compatible: ['arm,coresight-dynamic-funnel', 'arm,primecell']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/replicator: failed to match any schema with compatible: ['arm,coresight-static-replicator']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/tpiu@80190000: failed to match any schema with compatible: ['arm,coresight-tpiu', 'arm,primecell']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/etb@801a4000: failed to match any schema with compatible: ['arm,coresight-etb10', 'arm,primecell']
>> arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/scu@a0410000: failed to match any schema with compatible: ['arm,cortex-a9-scu']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/backupram@80150000: failed to match any schema with compatible: ['ste,dbx500-backupram']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/pm_domains0: failed to match any schema with compatible: ['stericsson,ux500-pm-domains']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/clocks: failed to match any schema with compatible: ['stericsson,u8500-clks']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/mtu@a03c6000: failed to match any schema with compatible: ['st,nomadik-mtu']
>> arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/timer@a0410600: failed to match any schema with compatible: ['arm,cortex-a9-twd-timer']
>> arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/watchdog@a0410620: failed to match any schema with compatible: ['arm,cortex-a9-twd-wdt']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/rtc@80154000: failed to match any schema with compatible: ['arm,pl031', 'arm,primecell']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8012e000: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8012e000: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8012e080: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8012e080: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8000e000: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8000e000: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8000e080: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8000e080: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
arch/arm/boot/dts/ste-ux500-samsung-gavini.dt.yaml:0:0: /soc/gpio@8000e100: failed to match any schema with compatible: ['stericsson,db8500-gpio', 'st,nomadik-gpio']
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months