Re: [RFC PATCH 3/7] regulator: IRQ based event/error notification helpers
by Dan Carpenter
Hi Matti,
url: https://github.com/0day-ci/linux/commits/Matti-Vaittinen/Extend-regulator...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: x86_64-randconfig-m001-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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>
smatch warnings:
drivers/regulator/irq_helpers.c:194 regulator_notifier_isr() error: uninitialized symbol 'ret'.
vim +/ret +194 drivers/regulator/irq_helpers.c
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 155 static irqreturn_t regulator_notifier_isr(int irq, void *data)
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 156 {
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 157 struct regulator_irq *h = data;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 158 struct regulator_irq_desc *d;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 159 struct regulator_irq_data *rid;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 160 unsigned long rdev_map = 0;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 161 int num_rdevs;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 162 int ret, i, j;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 163
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 164 d = &h->desc;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 165 rid = &h->rdata;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 166 num_rdevs = rid->num_states;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 167
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 168 if (d->fatal_cnt)
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 169 h->retry_cnt++;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 170
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 171 /*
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 172 * we spare few cycles by not clearing statuses prior this call.
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 173 * The IC driver must initialize the status buffers for rdevs
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 174 * which it indicates having active events via rdev_map.
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 175 *
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 176 * Maybe we should just to be on a safer side(?)
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 177 */
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 178 if (d->map_event)
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 179 ret = d->map_event(irq, rid, &rdev_map);
"ret" not initialized on else path.
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 180
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 181 /*
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 182 * If status reading fails (which is unlikely) we don't ack/disable
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 183 * IRQ but just increase fail count and retry when IRQ fires again.
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 184 * If retry_count exceeds given safety limit we call IC specific die
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 185 * handler which can try disabling regulator(s).
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 186 *
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 187 * If no die handler is given we will just bug() as a last resort.
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 188 *
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 189 * We could try disabling all associated rdevs - but we might shoot
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 190 * ourself in the head and leave problematic regulator enabled. So
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 191 * if IC has no die-handler populated we just assume the regulator
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 192 * can't be disabled.
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 193 */
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 @194 if (unlikely(ret == REGULATOR_FAILED_RETRY))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 195 goto fail_out;
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 196
1844ad67f3ebe1 Matti Vaittinen 2021-02-11 197 h->retry_cnt = 0;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[frank-w-bpi-r2-4.14:5.11-mt76test 19/19] drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.11-mt76test
head: 5d6e12bac94e425c29b890e7aa9e027a2edf9142
commit: 5d6e12bac94e425c29b890e7aa9e027a2edf9142 [19/19] mt76: add openwrt-version with additional patches
config: openrisc-randconfig-r001-20210215 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/frank-w/BPI-R2-4.14/commit/5d6e12bac94e425c29b890e7aa9...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.11-mt76test
git checkout 5d6e12bac94e425c29b890e7aa9e027a2edf9142
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
make[2]: *** [scripts/kconfig/Makefile:71: olddefconfig] Error 1
make[1]: *** [Makefile:602: olddefconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
--
>> drivers/net/wireless/mediatek/Kconfig:16: can't open file "drivers/net/wireless/mediatek/mt76_test/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +16 drivers/net/wireless/mediatek/Kconfig
> 16 source "drivers/net/wireless/mediatek/mt76_test/Kconfig"
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[drm-drm-intel:drm-intel-next 7/8] drivers/gpu/drm/i915/display/skl_scaler.c:253 skl_update_scaler_plane() error: we previously assumed 'fb' could be null (see line 237)
by Dan Carpenter
tree: git://anongit.freedesktop.org/drm/drm-intel drm-intel-next
head: 81637a6ede89b95b6ea7b2f8c594676881110890
commit: 714b1cdb02ee670be1ec5b1190377fef3845acd9 [7/8] drm/i915: refactor skylake scaler code into new file.
config: x86_64-randconfig-m031-20210211 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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>
smatch warnings:
drivers/gpu/drm/i915/display/skl_scaler.c:253 skl_update_scaler_plane() error: we previously assumed 'fb' could be null (see line 237)
vim +/fb +253 drivers/gpu/drm/i915/display/skl_scaler.c
714b1cdb02ee67 Dave Airlie 2021-02-05 213 int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,
714b1cdb02ee67 Dave Airlie 2021-02-05 214 struct intel_plane_state *plane_state)
714b1cdb02ee67 Dave Airlie 2021-02-05 215 {
714b1cdb02ee67 Dave Airlie 2021-02-05 216 struct intel_plane *intel_plane =
714b1cdb02ee67 Dave Airlie 2021-02-05 217 to_intel_plane(plane_state->uapi.plane);
714b1cdb02ee67 Dave Airlie 2021-02-05 218 struct drm_i915_private *dev_priv = to_i915(intel_plane->base.dev);
714b1cdb02ee67 Dave Airlie 2021-02-05 219 struct drm_framebuffer *fb = plane_state->hw.fb;
714b1cdb02ee67 Dave Airlie 2021-02-05 220 int ret;
714b1cdb02ee67 Dave Airlie 2021-02-05 221 bool force_detach = !fb || !plane_state->uapi.visible;
All this code assumes "fb" can be NULL.
714b1cdb02ee67 Dave Airlie 2021-02-05 222 bool need_scaler = false;
714b1cdb02ee67 Dave Airlie 2021-02-05 223
714b1cdb02ee67 Dave Airlie 2021-02-05 224 /* Pre-gen11 and SDR planes always need a scaler for planar formats. */
714b1cdb02ee67 Dave Airlie 2021-02-05 225 if (!icl_is_hdr_plane(dev_priv, intel_plane->id) &&
714b1cdb02ee67 Dave Airlie 2021-02-05 226 fb && intel_format_info_is_yuv_semiplanar(fb->format, fb->modifier))
714b1cdb02ee67 Dave Airlie 2021-02-05 227 need_scaler = true;
714b1cdb02ee67 Dave Airlie 2021-02-05 228
714b1cdb02ee67 Dave Airlie 2021-02-05 229 ret = skl_update_scaler(crtc_state, force_detach,
714b1cdb02ee67 Dave Airlie 2021-02-05 230 drm_plane_index(&intel_plane->base),
714b1cdb02ee67 Dave Airlie 2021-02-05 231 &plane_state->scaler_id,
714b1cdb02ee67 Dave Airlie 2021-02-05 232 drm_rect_width(&plane_state->uapi.src) >> 16,
714b1cdb02ee67 Dave Airlie 2021-02-05 233 drm_rect_height(&plane_state->uapi.src) >> 16,
714b1cdb02ee67 Dave Airlie 2021-02-05 234 drm_rect_width(&plane_state->uapi.dst),
714b1cdb02ee67 Dave Airlie 2021-02-05 235 drm_rect_height(&plane_state->uapi.dst),
714b1cdb02ee67 Dave Airlie 2021-02-05 236 fb ? fb->format : NULL,
714b1cdb02ee67 Dave Airlie 2021-02-05 @237 fb ? fb->modifier : 0,
714b1cdb02ee67 Dave Airlie 2021-02-05 238 need_scaler);
714b1cdb02ee67 Dave Airlie 2021-02-05 239
714b1cdb02ee67 Dave Airlie 2021-02-05 240 if (ret || plane_state->scaler_id < 0)
714b1cdb02ee67 Dave Airlie 2021-02-05 241 return ret;
714b1cdb02ee67 Dave Airlie 2021-02-05 242
714b1cdb02ee67 Dave Airlie 2021-02-05 243 /* check colorkey */
714b1cdb02ee67 Dave Airlie 2021-02-05 244 if (plane_state->ckey.flags) {
714b1cdb02ee67 Dave Airlie 2021-02-05 245 drm_dbg_kms(&dev_priv->drm,
714b1cdb02ee67 Dave Airlie 2021-02-05 246 "[PLANE:%d:%s] scaling with color key not allowed",
714b1cdb02ee67 Dave Airlie 2021-02-05 247 intel_plane->base.base.id,
714b1cdb02ee67 Dave Airlie 2021-02-05 248 intel_plane->base.name);
714b1cdb02ee67 Dave Airlie 2021-02-05 249 return -EINVAL;
714b1cdb02ee67 Dave Airlie 2021-02-05 250 }
714b1cdb02ee67 Dave Airlie 2021-02-05 251
714b1cdb02ee67 Dave Airlie 2021-02-05 252 /* Check src format */
714b1cdb02ee67 Dave Airlie 2021-02-05 @253 switch (fb->format->format) {
^^^^^^^^^^^^
Unchecked dereference.
714b1cdb02ee67 Dave Airlie 2021-02-05 254 case DRM_FORMAT_RGB565:
714b1cdb02ee67 Dave Airlie 2021-02-05 255 case DRM_FORMAT_XBGR8888:
714b1cdb02ee67 Dave Airlie 2021-02-05 256 case DRM_FORMAT_XRGB8888:
714b1cdb02ee67 Dave Airlie 2021-02-05 257 case DRM_FORMAT_ABGR8888:
714b1cdb02ee67 Dave Airlie 2021-02-05 258 case DRM_FORMAT_ARGB8888:
714b1cdb02ee67 Dave Airlie 2021-02-05 259 case DRM_FORMAT_XRGB2101010:
714b1cdb02ee67 Dave Airlie 2021-02-05 260 case DRM_FORMAT_XBGR2101010:
714b1cdb02ee67 Dave Airlie 2021-02-05 261 case DRM_FORMAT_ARGB2101010:
714b1cdb02ee67 Dave Airlie 2021-02-05 262 case DRM_FORMAT_ABGR2101010:
714b1cdb02ee67 Dave Airlie 2021-02-05 263 case DRM_FORMAT_YUYV:
714b1cdb02ee67 Dave Airlie 2021-02-05 264 case DRM_FORMAT_YVYU:
714b1cdb02ee67 Dave Airlie 2021-02-05 265 case DRM_FORMAT_UYVY:
714b1cdb02ee67 Dave Airlie 2021-02-05 266 case DRM_FORMAT_VYUY:
714b1cdb02ee67 Dave Airlie 2021-02-05 267 case DRM_FORMAT_NV12:
714b1cdb02ee67 Dave Airlie 2021-02-05 268 case DRM_FORMAT_XYUV8888:
714b1cdb02ee67 Dave Airlie 2021-02-05 269 case DRM_FORMAT_P010:
714b1cdb02ee67 Dave Airlie 2021-02-05 270 case DRM_FORMAT_P012:
714b1cdb02ee67 Dave Airlie 2021-02-05 271 case DRM_FORMAT_P016:
714b1cdb02ee67 Dave Airlie 2021-02-05 272 case DRM_FORMAT_Y210:
714b1cdb02ee67 Dave Airlie 2021-02-05 273 case DRM_FORMAT_Y212:
714b1cdb02ee67 Dave Airlie 2021-02-05 274 case DRM_FORMAT_Y216:
714b1cdb02ee67 Dave Airlie 2021-02-05 275 case DRM_FORMAT_XVYU2101010:
714b1cdb02ee67 Dave Airlie 2021-02-05 276 case DRM_FORMAT_XVYU12_16161616:
714b1cdb02ee67 Dave Airlie 2021-02-05 277 case DRM_FORMAT_XVYU16161616:
714b1cdb02ee67 Dave Airlie 2021-02-05 278 break;
714b1cdb02ee67 Dave Airlie 2021-02-05 279 case DRM_FORMAT_XBGR16161616F:
714b1cdb02ee67 Dave Airlie 2021-02-05 280 case DRM_FORMAT_ABGR16161616F:
714b1cdb02ee67 Dave Airlie 2021-02-05 281 case DRM_FORMAT_XRGB16161616F:
714b1cdb02ee67 Dave Airlie 2021-02-05 282 case DRM_FORMAT_ARGB16161616F:
714b1cdb02ee67 Dave Airlie 2021-02-05 283 if (INTEL_GEN(dev_priv) >= 11)
714b1cdb02ee67 Dave Airlie 2021-02-05 284 break;
714b1cdb02ee67 Dave Airlie 2021-02-05 285 fallthrough;
714b1cdb02ee67 Dave Airlie 2021-02-05 286 default:
714b1cdb02ee67 Dave Airlie 2021-02-05 287 drm_dbg_kms(&dev_priv->drm,
714b1cdb02ee67 Dave Airlie 2021-02-05 288 "[PLANE:%d:%s] FB:%d unsupported scaling format 0x%x\n",
714b1cdb02ee67 Dave Airlie 2021-02-05 289 intel_plane->base.base.id, intel_plane->base.name,
714b1cdb02ee67 Dave Airlie 2021-02-05 290 fb->base.id, fb->format->format);
714b1cdb02ee67 Dave Airlie 2021-02-05 291 return -EINVAL;
714b1cdb02ee67 Dave Airlie 2021-02-05 292 }
714b1cdb02ee67 Dave Airlie 2021-02-05 293
714b1cdb02ee67 Dave Airlie 2021-02-05 294 return 0;
714b1cdb02ee67 Dave Airlie 2021-02-05 295 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:pr/257 9167/17025] drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: error: 'mfg_mode' undeclared
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/257
head: 5df3672236fb7ca1b04a8e8fa65bf039400b5020
commit: 688b67b2c7220b01521ffe560da7eee33042c7bd [9167/17025] MLK-23806-01 net: wireless: nxp: mxm_wifiex: add initial MxM wifi driver
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/688b67b2c7220b01521ffe560d...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/257
git checkout 688b67b2c7220b01521ffe560da7eee33042c7bd
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: warning: /mlan: No such file or directory [-Wmissing-include-dirs]
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan.h:34,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:116,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan_ioctl.h:1941:1: note: offset of packed bit-field 'MaxAMSDU' has changed in GCC 4.4
1941 | } MLAN_PACK_END ExtCap_t, *pExtCap_t;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function 'woal_get_mode':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:988:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
988 | int ret = 0;
| ^~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2160:1: warning: no previous prototype for 'woal_request_init_user_conf_callback' [-Wmissing-prototypes]
2160 | woal_request_init_user_conf_callback(const struct firmware *firmware,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2654:1: warning: no previous prototype for 'woal_add_card_dpc' [-Wmissing-prototypes]
2654 | woal_add_card_dpc(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:3342:1: warning: no previous prototype for 'woal_fill_mlan_buffer' [-Wmissing-prototypes]
3342 | woal_fill_mlan_buffer(moal_private *priv,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4267:1: warning: no previous prototype for 'woal_flush_evt_queue' [-Wmissing-prototypes]
4267 | woal_flush_evt_queue(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4821:1: warning: no previous prototype for 'woal_ioctl_timeout' [-Wmissing-prototypes]
4821 | woal_ioctl_timeout(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5125:1: warning: no previous prototype for 'woal_tcp_ack_timer_func' [-Wmissing-prototypes]
5125 | woal_tcp_ack_timer_func(void *context)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5194:1: warning: no previous prototype for 'woal_send_tcp_ack' [-Wmissing-prototypes]
5194 | woal_send_tcp_ack(moal_private *priv, struct tcp_sess *tcp_session)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5251:1: warning: no previous prototype for 'woal_process_tcp_ack' [-Wmissing-prototypes]
5251 | woal_process_tcp_ack(moal_private *priv, mlan_buffer *pmbuf)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:7990:1: warning: no previous prototype for 'woal_netdev_poll_rx' [-Wmissing-prototypes]
7990 | woal_netdev_poll_rx(struct napi_struct *napi, int budget)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8865:1: warning: no previous prototype for 'woal_pre_reset' [-Wmissing-prototypes]
8865 | woal_pre_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8884:1: warning: no previous prototype for 'woal_post_reset' [-Wmissing-prototypes]
8884 | woal_post_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function 'mfg_mode_setup':
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: error: 'mfg_mode' undeclared (first use in this function)
9342 | mfg_mode = 1;
| ^~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: note: each undeclared identifier is reported only once for each function it appears in
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:130,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_priv.h:282:34: warning: 'woal_private_args' defined but not used [-Wunused-const-variable=]
282 | static const struct iw_priv_args woal_private_args[] = {
| ^~~~~~~~~~~~~~~~~
--
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan.h:34,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:116,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/mlan_ioctl.h:1941:1: note: offset of packed bit-field 'MaxAMSDU' has changed in GCC 4.4
1941 | } MLAN_PACK_END ExtCap_t, *pExtCap_t;
| ^
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function 'woal_get_mode':
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:988:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
988 | int ret = 0;
| ^~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2160:1: warning: no previous prototype for 'woal_request_init_user_conf_callback' [-Wmissing-prototypes]
2160 | woal_request_init_user_conf_callback(const struct firmware *firmware,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:2654:1: warning: no previous prototype for 'woal_add_card_dpc' [-Wmissing-prototypes]
2654 | woal_add_card_dpc(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:3342:1: warning: no previous prototype for 'woal_fill_mlan_buffer' [-Wmissing-prototypes]
3342 | woal_fill_mlan_buffer(moal_private *priv,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4267:1: warning: no previous prototype for 'woal_flush_evt_queue' [-Wmissing-prototypes]
4267 | woal_flush_evt_queue(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:4821:1: warning: no previous prototype for 'woal_ioctl_timeout' [-Wmissing-prototypes]
4821 | woal_ioctl_timeout(moal_handle *handle)
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5125:1: warning: no previous prototype for 'woal_tcp_ack_timer_func' [-Wmissing-prototypes]
5125 | woal_tcp_ack_timer_func(void *context)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5194:1: warning: no previous prototype for 'woal_send_tcp_ack' [-Wmissing-prototypes]
5194 | woal_send_tcp_ack(moal_private *priv, struct tcp_sess *tcp_session)
| ^~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:5251:1: warning: no previous prototype for 'woal_process_tcp_ack' [-Wmissing-prototypes]
5251 | woal_process_tcp_ack(moal_private *priv, mlan_buffer *pmbuf)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:7990:1: warning: no previous prototype for 'woal_netdev_poll_rx' [-Wmissing-prototypes]
7990 | woal_netdev_poll_rx(struct napi_struct *napi, int budget)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8865:1: warning: no previous prototype for 'woal_pre_reset' [-Wmissing-prototypes]
8865 | woal_pre_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:8884:1: warning: no previous prototype for 'woal_post_reset' [-Wmissing-prototypes]
8884 | woal_post_reset(moal_handle *handle)
| ^~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c: In function 'mfg_mode_setup':
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: error: 'mfg_mode' undeclared (first use in this function)
9342 | mfg_mode = 1;
| ^~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:9342:3: note: each undeclared identifier is reported only once for each function it appears in
In file included from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.h:130,
from drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c:29:
At top level:
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_priv.h:282:34: warning: 'woal_private_args' defined but not used [-Wunused-const-variable=]
282 | static const struct iw_priv_args woal_private_args[] = {
| ^~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for IMX_IRQSTEER
Depends on ARCH_MXC || COMPILE_TEST
Selected by
- DRM_IMX_DCSS && HAS_IOMEM
vim +/mfg_mode +9342 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlinux/moal_main.c
9327
9328 #ifndef MODULE
9329 #ifdef MFG_CMD_SUPPORT
9330 /**
9331 * @brief This function handle the mfg_mode from kernel boot command
9332 *
9333 * @param str buffer for mfg_mode
9334 * @return N/A
9335 */
9336 static int __init
9337 mfg_mode_setup(char *str)
9338 {
9339 int val = -1;
9340 get_option(&str, &val);
9341 if (val > 0)
> 9342 mfg_mode = 1;
9343 PRINTM(MMSG, "mfg_mode=%d\n", mfg_mode);
9344 return 1;
9345 }
9346
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:pr/257 8473/17025] drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to incomplete type 'struct ci_hdrc_platform_data'
by kernel test robot
Hi Peter,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/257
head: 5df3672236fb7ca1b04a8e8fa65bf039400b5020
commit: d74f8108dce77b0fb2496cfe92461de9766e060e [8473/17025] MLK-23677-4 usb: chipidea: add tracepoint support for udc
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/d74f8108dce77b0fb2496cfe92...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/257
git checkout d74f8108dce77b0fb2496cfe92461de9766e060e
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/usb/chipidea/trace.h:18,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':
>> drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to incomplete type 'struct ci_hdrc_platform_data'
476 | struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
| ^~
In file included from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
--
In file included from drivers/usb/chipidea/trace.h:18,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':
>> drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to incomplete type 'struct ci_hdrc_platform_data'
476 | struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
| ^~
In file included from include/trace/define_trace.h:102,
from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/./trace.h: In function 'trace_raw_output_ci_log_trb':
drivers/usb/chipidea/./trace.h:62:12: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
62 | TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size: %d,"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:360:22: note: in definition of macro 'DECLARE_EVENT_CLASS'
360 | trace_seq_printf(s, print); \
| ^~~~~
drivers/usb/chipidea/./trace.h:62:2: note: in expansion of macro 'TP_printk'
62 | TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size: %d,"
| ^~~~~~~~~
In file included from include/trace/trace_events.h:394,
from include/trace/define_trace.h:102,
from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/./trace.h:62:54: note: format string is defined here
62 | TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size: %d,"
| ~~~^
| |
| long long unsigned int
| %x
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for IMX_IRQSTEER
Depends on ARCH_MXC || COMPILE_TEST
Selected by
- DRM_IMX_DCSS && HAS_IOMEM
vim +476 drivers/usb/chipidea/ci.h
e443b333629f82 Alexander Shishkin 2012-05-11 466
57677be5ef8387 Li Jun 2014-04-23 467 /**
57677be5ef8387 Li Jun 2014-04-23 468 * ci_otg_is_fsm_mode: runtime check if otg controller
57677be5ef8387 Li Jun 2014-04-23 469 * is in otg fsm mode.
19353881b4afc9 Peter Chen 2014-09-22 470 *
19353881b4afc9 Peter Chen 2014-09-22 471 * @ci: chipidea device
57677be5ef8387 Li Jun 2014-04-23 472 */
57677be5ef8387 Li Jun 2014-04-23 473 static inline bool ci_otg_is_fsm_mode(struct ci_hdrc *ci)
57677be5ef8387 Li Jun 2014-04-23 474 {
57677be5ef8387 Li Jun 2014-04-23 475 #ifdef CONFIG_USB_OTG_FSM
b0930d4cafb487 Li Jun 2015-07-09 @476 struct usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
b0930d4cafb487 Li Jun 2015-07-09 477
57677be5ef8387 Li Jun 2014-04-23 478 return ci->is_otg && ci->roles[CI_ROLE_HOST] &&
b0930d4cafb487 Li Jun 2015-07-09 479 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support ||
b0930d4cafb487 Li Jun 2015-07-09 480 otg_caps->hnp_support || otg_caps->adp_support);
57677be5ef8387 Li Jun 2014-04-23 481 #else
57677be5ef8387 Li Jun 2014-04-23 482 return false;
57677be5ef8387 Li Jun 2014-04-23 483 #endif
57677be5ef8387 Li Jun 2014-04-23 484 }
57677be5ef8387 Li Jun 2014-04-23 485
:::::: The code at line 476 was first introduced by commit
:::::: b0930d4cafb487a663ac6780a0369d1a0f461bc2 usb: chipidea: update ci_otg_is_fsm_mode conditions
:::::: TO: Li Jun <jun.li(a)freescale.com>
:::::: CC: Felipe Balbi <balbi(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 10714/11103] ld.lld: error: main.c:(.text+0x1D32): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: "Steven Rostedt (VMware)" <rostedt(a)goodmis.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 07f7e57c63aaa2afb4ea31edef05e08699a63a00
commit: eed9caaaa5764b88d7b6f8504f6123cd6bdae975 [10714/11103] Merge remote-tracking branch 'ftrace/for-next'
config: riscv-randconfig-r031-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout eed9caaaa5764b88d7b6f8504f6123cd6bdae975
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x3E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x154): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x1152): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x1190): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x11B0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x11CA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xC0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x180): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x24C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x3F4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x668): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x7D8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x9FA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xB76): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xDA4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x1D32): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x1DB8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[android-common:android12-5.4 4/9] drivers/dma-buf/heaps/page_pool.c:243:5: warning: no previous prototype for function 'dmabuf_page_pool_init_shrinker'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 82c67a98c7494b4e71dcbea03335509e9ccecfa5
commit: 44008f99d9ca0793e2562967e1da01fa74ee4a41 [4/9] ANDROID: dma-buf: system_heap: Add pagepool support to system heap
config: x86_64-randconfig-a004-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout 44008f99d9ca0793e2562967e1da01fa74ee4a41
# 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/dma-buf/heaps/page_pool.c:243:5: warning: no previous prototype for function 'dmabuf_page_pool_init_shrinker' [-Wmissing-prototypes]
int dmabuf_page_pool_init_shrinker(void)
^
drivers/dma-buf/heaps/page_pool.c:243:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dmabuf_page_pool_init_shrinker(void)
^
static
1 warning generated.
vim +/dmabuf_page_pool_init_shrinker +243 drivers/dma-buf/heaps/page_pool.c
bd4db96bfc247a John Stultz 2020-10-02 242
bd4db96bfc247a John Stultz 2020-10-02 @243 int dmabuf_page_pool_init_shrinker(void)
:::::: The code at line 243 was first introduced by commit
:::::: bd4db96bfc247afdaf7a4cfde85fd8147522f3e6 ANDROID: dma-buf: heaps: Add a shrinker controlled page pool
:::::: TO: John Stultz <john.stultz(a)linaro.org>
:::::: CC: John Stultz <john.stultz(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:pr/257 8338/17025] drivers/staging/android/ion/ion_cma_heap.c:65:4: error: implicit declaration of function '__flush_dcache_area'; did you mean
by kernel test robot
Hi Richard,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/257
head: 5df3672236fb7ca1b04a8e8fa65bf039400b5020
commit: d39a68543c7002b7abd7f9df6d8f26fedda72ea5 [8338/17025] MGS-5565-1 staging: android: ion: Flush outer cache after zero CMA allocated memory
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/d39a68543c7002b7abd7f9df6d...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/257
git checkout d39a68543c7002b7abd7f9df6d8f26fedda72ea5
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/staging/android/ion/ion_cma_heap.c: In function 'ion_cma_allocate':
>> drivers/staging/android/ion/ion_cma_heap.c:65:4: error: implicit declaration of function '__flush_dcache_area'; did you mean 'flush_dcache_page'? [-Werror=implicit-function-declaration]
65 | __flush_dcache_area(vaddr,PAGE_SIZE);
| ^~~~~~~~~~~~~~~~~~~
| flush_dcache_page
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for IMX_IRQSTEER
Depends on ARCH_MXC || COMPILE_TEST
Selected by
- DRM_IMX_DCSS && HAS_IOMEM
vim +65 drivers/staging/android/ion/ion_cma_heap.c
57
58 while (nr_clear_pages > 0) {
59 void *vaddr = kmap_atomic(page);
60
61 memset(vaddr, 0, PAGE_SIZE);
62 #ifdef CONFIG_ARM
63 __cpuc_flush_dcache_area(vaddr,PAGE_SIZE);
64 #else
> 65 __flush_dcache_area(vaddr,PAGE_SIZE);
66 #endif
67 kunmap_atomic(vaddr);
68 page++;
69 nr_clear_pages--;
70 }
71 #ifdef CONFIG_ARM
72 outer_flush_range(base, end);
73 #endif
74 } else {
75 void *ptr = page_address(pages);
76 memset(ptr, 0, size);
77 #ifdef CONFIG_ARM
78 __cpuc_flush_dcache_area(ptr,size);
79 outer_flush_range(__pa(ptr), __pa(ptr) + size);
80 #else
81 __flush_dcache_area(ptr,size);
82 #endif
83 }
84
85 table = kmalloc(sizeof(*table), GFP_KERNEL);
86 if (!table)
87 goto err;
88
89 ret = sg_alloc_table(table, 1, GFP_KERNEL);
90 if (ret)
91 goto free_mem;
92
93 sg_set_page(table->sgl, pages, size, 0);
94
95 buffer->priv_virt = pages;
96 buffer->sg_table = table;
97 return 0;
98
99 free_mem:
100 kfree(table);
101 err:
102 cma_release(cma_heap->cma, pages, nr_pages);
103 return -ENOMEM;
104 }
105
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[freescale-fslc:pr/257 12053/17025] drivers/gpu/drm/rockchip/cdn-dp-core.h:10:10: fatal error: drm/bridge/cdns-mhdp-common.h: No such file or directory
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/257
head: 5df3672236fb7ca1b04a8e8fa65bf039400b5020
commit: 110d5c01d3f73ef56cd4ff4eba74a45b6f2dfc63 [12053/17025] MLK-24427-3: drm: mhdp: Backporting code change from linux-nxp
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/110d5c01d3f73ef56cd4ff4eba...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/257
git checkout 110d5c01d3f73ef56cd4ff4eba74a45b6f2dfc63
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/rockchip/cdn-dp-core.c:24:
>> drivers/gpu/drm/rockchip/cdn-dp-core.h:10:10: fatal error: drm/bridge/cdns-mhdp-common.h: No such file or directory
10 | #include <drm/bridge/cdns-mhdp-common.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
vim +10 drivers/gpu/drm/rockchip/cdn-dp-core.h
1a0f7ed3abe29c Chris Zhong 2017-02-05 9
7a3d6a6e256cf5 Sandor Yu 2019-07-10 @10 #include <drm/bridge/cdns-mhdp-common.h>
7a3d6a6e256cf5 Sandor Yu 2019-07-10 11 #include <drm/drmP.h>
1a0f7ed3abe29c Chris Zhong 2017-02-05 12 #include <drm/drm_dp_helper.h>
1a0f7ed3abe29c Chris Zhong 2017-02-05 13 #include <drm/drm_panel.h>
fcd70cd36b9bf6 Daniel Vetter 2019-01-17 14 #include <drm/drm_probe_helper.h>
c2156ccd9657c9 Sam Ravnborg 2019-07-16 15
:::::: The code at line 10 was first introduced by commit
:::::: 7a3d6a6e256cf5f35a9910c68432e3ba5b491116 drm: bridge: add Cadence MHDP HDMI/DP API
:::::: TO: Sandor Yu <Sandor.yu(a)nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months