All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-lts:5.4/yocto 17294/18531] drivers/platform/x86/intel_isi_hstd.c:572:5: warning: no previous prototype for 'hstd_init'
Date: Sun, 05 Dec 2021 08:09:43 +0800	[thread overview]
Message-ID: <202112050835.tsRoChSR-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4081 bytes --]

Hi Karthik,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   93b630f89c8d94187fd181ae4cbca13b4b47201c
commit: 6e9c23a32b60ca1e35e154e8d857c73b3c313734 [17294/18531] driver: platform: x86: ISI: [Hstd] Host STL Linux Driver for EHL FuSa
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20211205/202112050835.tsRoChSR-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/linux-intel-lts/commit/6e9c23a32b60ca1e35e154e8d857c73b3c313734
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-lts 5.4/yocto
        git checkout 6e9c23a32b60ca1e35e154e8d857c73b3c313734
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/platform/x86/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/bitops.h:5,
                    from include/linux/kernel.h:12,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/platform/x86/intel_isi_hstd.c:8:
   drivers/platform/x86/intel_isi_hstd.c: In function 'global_ctrl_check':
   include/linux/bits.h:8:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       8 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   drivers/platform/x86/intel_isi_hstd.c:138:26: note: in expansion of macro 'BIT'
     138 |  uint64_t m = ~(BIT(0) | BIT(33));
         |                          ^~~
   drivers/platform/x86/intel_isi_hstd.c: In function 'global_ovfctrl_check':
   include/linux/bits.h:8:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       8 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   drivers/platform/x86/intel_isi_hstd.c:155:26: note: in expansion of macro 'BIT'
     155 |  uint64_t m = ~(BIT(0) | BIT(33));
         |                          ^~~
   include/linux/bits.h:8:26: warning: left shift count >= width of type [-Wshift-count-overflow]
       8 | #define BIT(nr)   (UL(1) << (nr))
         |                          ^~
   drivers/platform/x86/intel_isi_hstd.c:162:29: note: in expansion of macro 'BIT'
     162 |  if (!(v & BIT(0)) || !(v & BIT(33)))
         |                             ^~~
   drivers/platform/x86/intel_isi_hstd.c: At top level:
>> drivers/platform/x86/intel_isi_hstd.c:572:5: warning: no previous prototype for 'hstd_init' [-Wmissing-prototypes]
     572 | int hstd_init(void)
         |     ^~~~~~~~~


vim +/hstd_init +572 drivers/platform/x86/intel_isi_hstd.c

   571	
 > 572	int hstd_init(void)
   573	{
   574		int err = 0;
   575	
   576		hstd_major_num = register_chrdev(0, DEVICE_NAME, &fops);
   577		if (hstd_major_num < 0)
   578			return hstd_major_num;
   579	
   580		hstd_class = class_create(THIS_MODULE, CLASS_NAME);
   581		if (IS_ERR(hstd_class)) {
   582			err = PTR_ERR(hstd_class);
   583			goto out_chrdev;
   584		}
   585	
   586		hstd_dev = device_create(hstd_class, NULL,
   587				MKDEV(hstd_major_num, 0), NULL, DEVICE_NAME);
   588		if (IS_ERR(hstd_dev)) {
   589			err = PTR_ERR(hstd_dev);
   590			goto out_class;
   591		}
   592		err = do_init();
   593		if (err)
   594			goto out_init;
   595	
   596		pr_info(PFX "Module version %s successfuly initilized\n", DRV_VERSION);
   597		return 0;
   598	
   599	out_init:
   600		device_destroy(hstd_class, MKDEV(hstd_major_num, 0));
   601	out_class:
   602		class_destroy(hstd_class);
   603	out_chrdev:
   604		unregister_chrdev(hstd_major_num, DEVICE_NAME);
   605		return err;
   606	}
   607	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-12-05  0:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112050835.tsRoChSR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.