tree:
https://github.com/km13park/linux-1.git master
head: 77464b203e49ef9c4d957061005b4d54b0c5e633
commit: 4dab1d6923971a00f7de82497cb99b0a2a54f6d2 [2/3] drivers/saf: Introduce Scan At
Field driver
config: x86_64-randconfig-a016-20210420 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/km13park/linux-1/commit/4dab1d6923971a00f7de82497cb99b...
git remote add km13park-linux-1
https://github.com/km13park/linux-1.git
git fetch --no-tags km13park-linux-1 master
git checkout 4dab1d6923971a00f7de82497cb99b0a2a54f6d2
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
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/scan_at_field/scan_at_field.c: In function 'load_scan_binary':
drivers/scan_at_field/scan_at_field.c:210:10: warning: returning 'long int'
from a function with return type 'const struct firmware *' makes pointer from
integer without a cast [-Wint-conversion]
210 | return PTR_ERR(saf_pdev);
| ^~~~~~~~~~~~~~~~~
> drivers/scan_at_field/scan_at_field.c:218:18: error: implicit
declaration of function 'scan_blob_sanity_check'
[-Werror=implicit-function-declaration]
218 | if (is_hash &&
!scan_blob_sanity_check((void *)fw->data)) {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/scan_at_field/scan_at_field.c: In function 'test_init':
drivers/scan_at_field/scan_at_field.c:332:17: warning: variable 'root' set but
not used [-Wunused-but-set-variable]
332 | struct device *root;
| ^~~~
drivers/scan_at_field/scan_at_field.c: In function 'load_scan_binaries':
drivers/scan_at_field/scan_at_field.c:303:1: warning: the frame size of 8736 bytes is
larger than 8192 bytes [-Wframe-larger-than=]
303 | }
| ^
cc1: some warnings being treated as errors
vim +/scan_blob_sanity_check +218 drivers/scan_at_field/scan_at_field.c
197
198 /*
199 * Scan binary blob loading. Intel distributes the scan binary blob to vendors
200 * and vendor installed the hash and scan binary blobs to /lib/firmware/intel-saf.
201 */
202 static const struct firmware *load_scan_binary(const char *path, bool is_hash)
203 {
204 const struct firmware *fw;
205 int err;
206
207 saf_pdev = platform_device_register_simple("saf", -1, NULL, 0);
208 if (IS_ERR(saf_pdev)) {
209 pr_err("Error: platform_device_register_simple");
210 return PTR_ERR(saf_pdev);
211 }
212 err = request_firmware_direct(&fw, path, &saf_pdev->dev);
213 if (err) {
214 pr_err("Error: request_firmware_direct return");
215 goto out;
216 }
217
218 if (is_hash && !scan_blob_sanity_check((void
*)fw->data)) {
219 pr_err("scan blob header sanity check
failed");
220 goto out;
221 }
222 out:
223 platform_device_unregister(saf_pdev);
224
225 return fw;
226 }
227
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org