[tobetter-linux:odroid-5.13.y 41/93] drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.13.y
head: ec41beb389cd0d7ab68345d550334d44842a2cb1
commit: 4c6761c55d4f15337b88e29cb05834a753ddc506 [41/93] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
config: riscv-randconfig-r016-20210617 (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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/tobetter/linux/commit/4c6761c55d4f15337b88e29cb05834a7...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.13.y
git checkout 4c6761c55d4f15337b88e29cb05834a753ddc506
# 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 >>):
>> drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot' [-Werror,-Wimplicit-function-declaration]
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^
>> drivers/char/exynos-gpiomem.c:121:20: error: assigning to 'pgprot_t' from incompatible type 'int'
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/phys_mem_access_prot +121 drivers/char/exynos-gpiomem.c
106
107 static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
108 {
109 int gpio_area = 0;
110
111 while (gpio_area < inst->gpio_area_count) {
112 if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff)
113 goto found;
114
115 gpio_area++;
116 }
117
118 return -EACCES;
119
120 found:
> 121 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
122 PAGE_SIZE,
123 vma->vm_page_prot);
124
125 vma->vm_ops = &exynos_gpiomem_vm_ops;
126
127 if (remap_pfn_range(vma, vma->vm_start,
128 vma->vm_pgoff,
129 PAGE_SIZE,
130 vma->vm_page_prot)) {
131 return -EAGAIN;
132 }
133
134 return 0;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[chrome-os:chromeos-5.4 22/23] drivers/media/i2c/imx208.c:866:6: warning: variable 'exposure_max' set but not used
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 396a3bd4c4f1c21fe4ee56146a2c97da7887b99c
commit: 0b22113dab8defd916f1cd9b5f006c850b9017b6 [22/23] FROMLIST: BACKPORT: media: imx208: Add imx208 camera sensor driver
config: ia64-randconfig-r024-20210617 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 0b22113dab8defd916f1cd9b5f006c850b9017b6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/media/i2c/imx208.c: In function 'imx208_init_controls':
>> drivers/media/i2c/imx208.c:866:6: warning: variable 'exposure_max' set but not used [-Wunused-but-set-variable]
866 | s64 exposure_max;
| ^~~~~~~~~~~~
vim +/exposure_max +866 drivers/media/i2c/imx208.c
860
861 /* Initialize control handlers */
862 static int imx208_init_controls(struct imx208 *imx208)
863 {
864 struct i2c_client *client = v4l2_get_subdevdata(&imx208->sd);
865 struct v4l2_ctrl_handler *ctrl_hdlr = &imx208->ctrl_handler;
> 866 s64 exposure_max;
867 s64 vblank_def;
868 s64 vblank_min;
869 s64 pixel_rate_min;
870 s64 pixel_rate_max;
871 int ret;
872
873 ret = v4l2_ctrl_handler_init(ctrl_hdlr, 8);
874 if (ret)
875 return ret;
876
877 mutex_init(&imx208->imx208_mx);
878 ctrl_hdlr->lock = &imx208->imx208_mx;
879 imx208->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr,
880 &imx208_ctrl_ops,
881 V4L2_CID_LINK_FREQ,
882 ARRAY_SIZE(link_freq_menu_items) - 1,
883 0, link_freq_menu_items);
884
885 if (imx208->link_freq)
886 imx208->link_freq->flags |= V4L2_CTRL_FLAG_READ_ONLY;
887
888 pixel_rate_max = link_freq_to_pixel_rate(link_freq_menu_items[0]);
889 pixel_rate_min = link_freq_to_pixel_rate(
890 link_freq_menu_items[ARRAY_SIZE(
891 link_freq_menu_items) - 1]);
892 /* By default, PIXEL_RATE is read only */
893 imx208->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops,
894 V4L2_CID_PIXEL_RATE,
895 pixel_rate_min, pixel_rate_max,
896 1, pixel_rate_max);
897
898 vblank_def = imx208->cur_mode->vts_def - imx208->cur_mode->height;
899 vblank_min = imx208->cur_mode->vts_min - imx208->cur_mode->height;
900 imx208->vblank = v4l2_ctrl_new_std(
901 ctrl_hdlr, &imx208_ctrl_ops, V4L2_CID_VBLANK,
902 vblank_min,
903 IMX208_VTS_MAX - imx208->cur_mode->height, 1,
904 vblank_def);
905
906 imx208->hblank = v4l2_ctrl_new_std(
907 ctrl_hdlr, &imx208_ctrl_ops, V4L2_CID_HBLANK,
908 IMX208_PPL_384MHZ - imx208->cur_mode->width,
909 IMX208_PPL_384MHZ - imx208->cur_mode->width,
910 1,
911 IMX208_PPL_384MHZ - imx208->cur_mode->width);
912
913 if (imx208->hblank)
914 imx208->hblank->flags |= V4L2_CTRL_FLAG_READ_ONLY;
915
916 exposure_max = imx208->cur_mode->vts_def - 8;
917 v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, V4L2_CID_EXPOSURE,
918 IMX208_EXPOSURE_MIN, IMX208_EXPOSURE_MAX,
919 IMX208_EXPOSURE_STEP, IMX208_EXPOSURE_DEFAULT);
920
921 imx208->hflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops,
922 V4L2_CID_HFLIP, 0, 1, 1, 0);
923 imx208->vflip = v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops,
924 V4L2_CID_VFLIP, 0, 1, 1, 0);
925
926 v4l2_ctrl_new_std(ctrl_hdlr, &imx208_ctrl_ops, V4L2_CID_ANALOGUE_GAIN,
927 IMX208_ANA_GAIN_MIN, IMX208_ANA_GAIN_MAX,
928 IMX208_ANA_GAIN_STEP, IMX208_ANA_GAIN_DEFAULT);
929
930 v4l2_ctrl_new_custom(ctrl_hdlr, &imx208_digital_gain_control, NULL);
931
932 v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &imx208_ctrl_ops,
933 V4L2_CID_TEST_PATTERN,
934 ARRAY_SIZE(imx208_test_pattern_menu) - 1,
935 0, 0, imx208_test_pattern_menu);
936
937 if (ctrl_hdlr->error) {
938 ret = ctrl_hdlr->error;
939 dev_err(&client->dev, "%s control init failed (%d)\n",
940 __func__, ret);
941 goto error;
942 }
943
944 imx208->sd.ctrl_handler = ctrl_hdlr;
945
946 return 0;
947
948 error:
949 v4l2_ctrl_handler_free(ctrl_hdlr);
950 mutex_destroy(&imx208->imx208_mx);
951
952 return ret;
953 }
954
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [RFCv1 5/8] phy: amlogic: meson8b-usb2: Reorder phy poweroff callback function
by kernel test robot
Hi Anand,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v5.13-rc6 next-20210617]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Anand-Moon/Meson-8b-and-Meson-gx...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 39519f6a56e398544d270fcb548de99b54421d43
config: mips-randconfig-s032-20210617 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/e76fc9ed24b7659aab9a154de394a51a7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Anand-Moon/Meson-8b-and-Meson-gxbb-USB-phy-code-re-structure/20210618-034534
git checkout e76fc9ed24b7659aab9a154de394a51a70de2bd8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> drivers/phy/amlogic/phy-meson8b-usb2.c:203:25: sparse: sparse: mixing different enum types:
>> drivers/phy/amlogic/phy-meson8b-usb2.c:203:25: sparse: unsigned int enum phy_mode
>> drivers/phy/amlogic/phy-meson8b-usb2.c:203:25: sparse: unsigned int enum usb_dr_mode
drivers/phy/amlogic/phy-meson8b-usb2.c:243:49: sparse: sparse: mixing different enum types:
drivers/phy/amlogic/phy-meson8b-usb2.c:243:49: sparse: unsigned int enum usb_dr_mode
drivers/phy/amlogic/phy-meson8b-usb2.c:243:49: sparse: unsigned int enum phy_mode
vim +203 drivers/phy/amlogic/phy-meson8b-usb2.c
51c202a9ef028b Anand Moon 2021-06-17 175
ee40e59b658c4a Anand Moon 2021-06-17 176 static int phy_meson8b_usb2_setmode(struct phy *phy, enum phy_mode mode,
ee40e59b658c4a Anand Moon 2021-06-17 177 int submode)
75c5cd9a01e14e Anand Moon 2021-06-17 178 {
75c5cd9a01e14e Anand Moon 2021-06-17 179 struct phy_meson8b_usb2_priv *priv = phy_get_drvdata(phy);
75c5cd9a01e14e Anand Moon 2021-06-17 180 u32 reg;
75c5cd9a01e14e Anand Moon 2021-06-17 181
ee40e59b658c4a Anand Moon 2021-06-17 182 switch (mode) {
ee40e59b658c4a Anand Moon 2021-06-17 183 case PHY_MODE_USB_HOST:
ee40e59b658c4a Anand Moon 2021-06-17 184 if (priv->match->host_enable_aca) {
ee40e59b658c4a Anand Moon 2021-06-17 185 regmap_update_bits(priv->regmap, REG_ADP_BC,
ee40e59b658c4a Anand Moon 2021-06-17 186 REG_ADP_BC_ACA_ENABLE,
ee40e59b658c4a Anand Moon 2021-06-17 187 REG_ADP_BC_ACA_ENABLE);
ee40e59b658c4a Anand Moon 2021-06-17 188
ee40e59b658c4a Anand Moon 2021-06-17 189 udelay(ACA_ENABLE_COMPLETE_TIME);
ee40e59b658c4a Anand Moon 2021-06-17 190
ee40e59b658c4a Anand Moon 2021-06-17 191 regmap_read(priv->regmap, REG_ADP_BC, ®);
ee40e59b658c4a Anand Moon 2021-06-17 192 if (reg & REG_ADP_BC_ACA_PIN_FLOAT) {
ee40e59b658c4a Anand Moon 2021-06-17 193 dev_warn(&phy->dev, "USB ID detect failed!\n");
ee40e59b658c4a Anand Moon 2021-06-17 194 return -EINVAL;
ee40e59b658c4a Anand Moon 2021-06-17 195 }
ee40e59b658c4a Anand Moon 2021-06-17 196 }
ee40e59b658c4a Anand Moon 2021-06-17 197 break;
ee40e59b658c4a Anand Moon 2021-06-17 198 default:
ee40e59b658c4a Anand Moon 2021-06-17 199 dev_warn(&phy->dev, "USB ID detect failed to setnode! %d\n", mode);
ee40e59b658c4a Anand Moon 2021-06-17 200 return -EINVAL;
ee40e59b658c4a Anand Moon 2021-06-17 201 }
ee40e59b658c4a Anand Moon 2021-06-17 202
ee40e59b658c4a Anand Moon 2021-06-17 @203 priv->dr_mode = mode;
ee40e59b658c4a Anand Moon 2021-06-17 204
ee40e59b658c4a Anand Moon 2021-06-17 205 return 0;
ee40e59b658c4a Anand Moon 2021-06-17 206 }
ee40e59b658c4a Anand Moon 2021-06-17 207
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-stable-rc:linux-5.4.y 1/3868] drivers/nvme/target/discovery.c:243:2: warning: 'strncpy' output truncated copying 8 bytes from a string of length 27
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: e72abf1f11a982a2a3fb555b5a9bd2eb2011dee8
commit: 6b47a3043a24a25e9bf4c9e8a65be2803ecd1ca9 [1/3868] Bluetooth: Fix invalid-free in bcsp_close()
config: ia64-randconfig-r024-20210617 (attached as .config)
compiler: ia64-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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout 6b47a3043a24a25e9bf4c9e8a65be2803ecd1ca9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/nvme/target/discovery.c: In function 'nvmet_execute_identify_disc_ctrl':
>> drivers/nvme/target/discovery.c:243:2: warning: 'strncpy' output truncated copying 8 bytes from a string of length 27 [-Wstringop-truncation]
243 | strncpy((char *)id->fr, UTS_RELEASE, sizeof(id->fr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +243 drivers/nvme/target/discovery.c
a07b4970f464f1 Christoph Hellwig 2016-06-21 229
a07b4970f464f1 Christoph Hellwig 2016-06-21 230 static void nvmet_execute_identify_disc_ctrl(struct nvmet_req *req)
a07b4970f464f1 Christoph Hellwig 2016-06-21 231 {
a07b4970f464f1 Christoph Hellwig 2016-06-21 232 struct nvmet_ctrl *ctrl = req->sq->ctrl;
a07b4970f464f1 Christoph Hellwig 2016-06-21 233 struct nvme_id_ctrl *id;
a07b4970f464f1 Christoph Hellwig 2016-06-21 234 u16 status = 0;
a07b4970f464f1 Christoph Hellwig 2016-06-21 235
a07b4970f464f1 Christoph Hellwig 2016-06-21 236 id = kzalloc(sizeof(*id), GFP_KERNEL);
a07b4970f464f1 Christoph Hellwig 2016-06-21 237 if (!id) {
a07b4970f464f1 Christoph Hellwig 2016-06-21 238 status = NVME_SC_INTERNAL;
a07b4970f464f1 Christoph Hellwig 2016-06-21 239 goto out;
a07b4970f464f1 Christoph Hellwig 2016-06-21 240 }
a07b4970f464f1 Christoph Hellwig 2016-06-21 241
a07b4970f464f1 Christoph Hellwig 2016-06-21 242 memset(id->fr, ' ', sizeof(id->fr));
a07b4970f464f1 Christoph Hellwig 2016-06-21 @243 strncpy((char *)id->fr, UTS_RELEASE, sizeof(id->fr));
a07b4970f464f1 Christoph Hellwig 2016-06-21 244
a07b4970f464f1 Christoph Hellwig 2016-06-21 245 /* no limit on data transfer sizes for now */
a07b4970f464f1 Christoph Hellwig 2016-06-21 246 id->mdts = 0;
a07b4970f464f1 Christoph Hellwig 2016-06-21 247 id->cntlid = cpu_to_le16(ctrl->cntlid);
a07b4970f464f1 Christoph Hellwig 2016-06-21 248 id->ver = cpu_to_le32(ctrl->subsys->ver);
a07b4970f464f1 Christoph Hellwig 2016-06-21 249 id->lpa = (1 << 2);
a07b4970f464f1 Christoph Hellwig 2016-06-21 250
a07b4970f464f1 Christoph Hellwig 2016-06-21 251 /* no enforcement soft-limit for maxcmd - pick arbitrary high value */
a07b4970f464f1 Christoph Hellwig 2016-06-21 252 id->maxcmd = cpu_to_le16(NVMET_MAX_CMD);
a07b4970f464f1 Christoph Hellwig 2016-06-21 253
a07b4970f464f1 Christoph Hellwig 2016-06-21 254 id->sgls = cpu_to_le32(1 << 0); /* we always support SGLs */
a07b4970f464f1 Christoph Hellwig 2016-06-21 255 if (ctrl->ops->has_keyed_sgls)
a07b4970f464f1 Christoph Hellwig 2016-06-21 256 id->sgls |= cpu_to_le32(1 << 2);
0d5ee2b2ab4f67 Steve Wise 2018-06-20 257 if (req->port->inline_data_size)
a07b4970f464f1 Christoph Hellwig 2016-06-21 258 id->sgls |= cpu_to_le32(1 << 20);
a07b4970f464f1 Christoph Hellwig 2016-06-21 259
b662a078576e7d Jay Sternberg 2018-11-12 260 id->oaes = cpu_to_le32(NVMET_DISC_AEN_CFG_OPTIONAL);
b662a078576e7d Jay Sternberg 2018-11-12 261
5eadc9cce17100 Bart Van Assche 2018-10-08 262 strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn));
a07b4970f464f1 Christoph Hellwig 2016-06-21 263
a07b4970f464f1 Christoph Hellwig 2016-06-21 264 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id));
a07b4970f464f1 Christoph Hellwig 2016-06-21 265
a07b4970f464f1 Christoph Hellwig 2016-06-21 266 kfree(id);
a07b4970f464f1 Christoph Hellwig 2016-06-21 267 out:
a07b4970f464f1 Christoph Hellwig 2016-06-21 268 nvmet_req_complete(req, status);
a07b4970f464f1 Christoph Hellwig 2016-06-21 269 }
a07b4970f464f1 Christoph Hellwig 2016-06-21 270
:::::: The code at line 243 was first introduced by commit
:::::: a07b4970f464f13640e28e16dad6cfa33647cc99 nvmet: add a generic NVMe target
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)fb.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[iwlwifi-next:iwlmei 5/6] drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3138:16: error: 'struct iwl_mvm_vif' has no member named 'rekey_data'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git iwlmei
head: 05468ee36282cd2564af0a4d085bd98771ecf5d5
commit: d1de5e2d1a96fe5e101aaa773ccb3c6e4fa3c855 [5/6] iwlwifi: generate the HOST_ASSOC / HOST_DISASSOC for iwlmei
config: parisc-allyesconfig (attached as .config)
compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git/...
git remote add iwlwifi-next https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git
git fetch --no-tags iwlwifi-next iwlmei
git checkout d1de5e2d1a96fe5e101aaa773ccb3c6e4fa3c855
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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/intel/iwlwifi/mvm/mac80211.c: In function 'iwl_mvm_mei_host_associated':
>> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:3138:16: error: 'struct iwl_mvm_vif' has no member named 'rekey_data'
3138 | switch (mvmvif->rekey_data.akm) {
| ^~
vim +3138 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
3103
3104 static void iwl_mvm_mei_host_associated(struct iwl_mvm *mvm,
3105 struct ieee80211_vif *vif,
3106 struct iwl_mvm_sta *mvm_sta)
3107 {
3108 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
3109 struct iwl_mei_conn_info conn_info = {
3110 .ssid_len = vif->bss_conf.ssid_len,
3111 .channel = vif->bss_conf.chandef.chan->hw_value,
3112 };
3113
3114 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))
3115 return;
3116
3117 if (!mvm->mei_registered)
3118 return;
3119
3120 switch (mvm_sta->pairwise_cipher) {
3121 case WLAN_CIPHER_SUITE_CCMP:
3122 conn_info.pairwise_cipher = IWL_MEI_CIPHER_CCMP;
3123 break;
3124 case WLAN_CIPHER_SUITE_GCMP:
3125 conn_info.pairwise_cipher = IWL_MEI_CIPHER_GCMP;
3126 break;
3127 case WLAN_CIPHER_SUITE_GCMP_256:
3128 conn_info.pairwise_cipher = IWL_MEI_CIPHER_GCMP_256;
3129 break;
3130 case 0:
3131 /* open profile */
3132 break;
3133 default:
3134 /* cipher not supported, don't send anything to iwlmei */
3135 return;
3136 };
3137
> 3138 switch (mvmvif->rekey_data.akm) {
3139 case WLAN_AKM_SUITE_SAE & 0xff:
3140 conn_info.auth_mode = IWL_MEI_AKM_AUTH_SAE;
3141 break;
3142 case WLAN_AKM_SUITE_PSK & 0xff:
3143 conn_info.auth_mode = IWL_MEI_AKM_AUTH_RSNA_PSK;
3144 break;
3145 case WLAN_AKM_SUITE_8021X & 0xff:
3146 conn_info.auth_mode = IWL_MEI_AKM_AUTH_RSNA;
3147 break;
3148 case 0:
3149 /* open profile */
3150 conn_info.auth_mode = IWL_MEI_AKM_AUTH_OPEN;
3151 break;
3152 default:
3153 /* auth method / AKM not supported */
3154 /* TODO: All the FT vesions of these? */
3155 return;
3156 }
3157
3158 memcpy(conn_info.ssid, vif->bss_conf.ssid, vif->bss_conf.ssid_len);
3159 memcpy(conn_info.bssid, vif->bss_conf.bssid, ETH_ALEN);
3160
3161 /* TODO: add support for collocated AP data */
3162 iwl_mei_host_associated(&conn_info, NULL);
3163 }
3164
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tobetter-linux:odroid-5.13.y 17/93] drivers/pwm/pwm-gpio.c:60:22: warning: no previous prototype for 'gpio_pwm_timer'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.13.y
head: ec41beb389cd0d7ab68345d550334d44842a2cb1
commit: 834c04942cc7aa318347e65dc3511510c68405e1 [17/93] ODROID-COMMON: pwm: gpio: Add a generic gpio based PWM driver
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/tobetter/linux/commit/834c04942cc7aa318347e65dc3511510...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.13.y
git checkout 834c04942cc7aa318347e65dc3511510c68405e1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/pwm/pwm-gpio.c:60:22: warning: no previous prototype for 'gpio_pwm_timer' [-Wmissing-prototypes]
60 | enum hrtimer_restart gpio_pwm_timer(struct hrtimer *timer)
| ^~~~~~~~~~~~~~
vim +/gpio_pwm_timer +60 drivers/pwm/pwm-gpio.c
59
> 60 enum hrtimer_restart gpio_pwm_timer(struct hrtimer *timer)
61 {
62 struct gpio_pwm_data *gpio_data = container_of(timer,
63 struct gpio_pwm_data,
64 timer);
65 if (!gpio_data->run) {
66 gpio_pwm_off(gpio_data);
67 gpio_data->pin_on = false;
68 return HRTIMER_NORESTART;
69 }
70
71 if (!gpio_data->pin_on) {
72 hrtimer_forward_now(&gpio_data->timer,
73 ns_to_ktime(gpio_data->on_time));
74 gpio_pwm_on(gpio_data);
75 gpio_data->pin_on = true;
76 } else {
77 hrtimer_forward_now(&gpio_data->timer,
78 ns_to_ktime(gpio_data->off_time));
79 gpio_pwm_off(gpio_data);
80 gpio_data->pin_on = false;
81 }
82
83 return HRTIMER_RESTART;
84 }
85
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tobetter-linux:odroid-5.13.y 41/93] drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'
by kernel test robot
tree: https://github.com/tobetter/linux odroid-5.13.y
head: ec41beb389cd0d7ab68345d550334d44842a2cb1
commit: 4c6761c55d4f15337b88e29cb05834a753ddc506 [41/93] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access
config: arm-randconfig-r034-20210617 (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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/tobetter/linux/commit/4c6761c55d4f15337b88e29cb05834a7...
git remote add tobetter-linux https://github.com/tobetter/linux
git fetch --no-tags tobetter-linux odroid-5.13.y
git checkout 4c6761c55d4f15337b88e29cb05834a753ddc506
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot' [-Werror,-Wimplicit-function-declaration]
vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
^
1 error generated.
vim +/phys_mem_access_prot +121 drivers/char/exynos-gpiomem.c
106
107 static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma)
108 {
109 int gpio_area = 0;
110
111 while (gpio_area < inst->gpio_area_count) {
112 if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff)
113 goto found;
114
115 gpio_area++;
116 }
117
118 return -EACCES;
119
120 found:
> 121 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
122 PAGE_SIZE,
123 vma->vm_page_prot);
124
125 vma->vm_ops = &exynos_gpiomem_vm_ops;
126
127 if (remap_pfn_range(vma, vma->vm_start,
128 vma->vm_pgoff,
129 PAGE_SIZE,
130 vma->vm_page_prot)) {
131 return -EAGAIN;
132 }
133
134 return 0;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months