All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)
@ 2021-01-12 12:44 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-01-12 12:44 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: kbuild-all, linux-kernel, Mauro Carvalho Chehab, linux-media,
	Sakari Ailus

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a0d54b4f5b219fb31f0776e9f53aa137e78ae431
commit: 7b285f41f7376dc37e7fad1e803995fd39f42848 media: ipu3-cio2: Introduce CIO2_LOP_ENTRIES constant
date:   4 months ago
config: ia64-randconfig-s031-20210112 (attached as .config)
compiler: ia64-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-208-g46a52ca4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b285f41f7376dc37e7fad1e803995fd39f42848
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7b285f41f7376dc37e7fad1e803995fd39f42848
        # 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__' ARCH=ia64 

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


"sparse warnings: (new ones prefixed by >>)"
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)

vim +163 drivers/media/pci/intel/ipu3/ipu3-cio2.c

   154	
   155	/* Initialize fpbt entries to point to dummy frame */
   156	static void cio2_fbpt_entry_init_dummy(struct cio2_device *cio2,
   157					       struct cio2_fbpt_entry
   158					       entry[CIO2_MAX_LOPS])
   159	{
   160		unsigned int i;
   161	
   162		entry[0].first_entry.first_page_offset = 0;
 > 163		entry[1].second_entry.num_of_pages = CIO2_LOP_ENTRIES * CIO2_MAX_LOPS;
   164		entry[1].second_entry.last_page_available_bytes = CIO2_PAGE_SIZE - 1;
   165	
   166		for (i = 0; i < CIO2_MAX_LOPS; i++)
   167			entry[i].lop_page_addr = cio2->dummy_lop_bus_addr >> PAGE_SHIFT;
   168	
   169		cio2_fbpt_entry_enable(cio2, entry);
   170	}
   171	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38805 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)
@ 2021-01-12 12:44 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-01-12 12:44 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a0d54b4f5b219fb31f0776e9f53aa137e78ae431
commit: 7b285f41f7376dc37e7fad1e803995fd39f42848 media: ipu3-cio2: Introduce CIO2_LOP_ENTRIES constant
date:   4 months ago
config: ia64-randconfig-s031-20210112 (attached as .config)
compiler: ia64-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-208-g46a52ca4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b285f41f7376dc37e7fad1e803995fd39f42848
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7b285f41f7376dc37e7fad1e803995fd39f42848
        # 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__' ARCH=ia64 

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


"sparse warnings: (new ones prefixed by >>)"
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)

vim +163 drivers/media/pci/intel/ipu3/ipu3-cio2.c

   154	
   155	/* Initialize fpbt entries to point to dummy frame */
   156	static void cio2_fbpt_entry_init_dummy(struct cio2_device *cio2,
   157					       struct cio2_fbpt_entry
   158					       entry[CIO2_MAX_LOPS])
   159	{
   160		unsigned int i;
   161	
   162		entry[0].first_entry.first_page_offset = 0;
 > 163		entry[1].second_entry.num_of_pages = CIO2_LOP_ENTRIES * CIO2_MAX_LOPS;
   164		entry[1].second_entry.last_page_available_bytes = CIO2_PAGE_SIZE - 1;
   165	
   166		for (i = 0; i < CIO2_MAX_LOPS; i++)
   167			entry[i].lop_page_addr = cio2->dummy_lop_bus_addr >> PAGE_SHIFT;
   168	
   169		cio2_fbpt_entry_enable(cio2, entry);
   170	}
   171	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38805 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)
  2021-01-12 12:44 ` kernel test robot
@ 2021-01-12 14:03   ` Andy Shevchenko
  -1 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2021-01-12 14:03 UTC (permalink / raw)
  To: kernel test robot
  Cc: Andy Shevchenko, kbuild-all, Linux Kernel Mailing List,
	Mauro Carvalho Chehab, Linux Media Mailing List, Sakari Ailus

On Tue, Jan 12, 2021 at 3:07 PM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   a0d54b4f5b219fb31f0776e9f53aa137e78ae431
> commit: 7b285f41f7376dc37e7fad1e803995fd39f42848 media: ipu3-cio2: Introduce CIO2_LOP_ENTRIES constant
> date:   4 months ago
> config: ia64-randconfig-s031-20210112 (attached as .config)
> compiler: ia64-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-208-g46a52ca4-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b285f41f7376dc37e7fad1e803995fd39f42848
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 7b285f41f7376dc37e7fad1e803995fd39f42848
>         # 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__' ARCH=ia64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
>
> "sparse warnings: (new ones prefixed by >>)"
> >> drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)

Patch should be somewhere on its way to upstream.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)
@ 2021-01-12 14:03   ` Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2021-01-12 14:03 UTC (permalink / raw)
  To: kbuild-all

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

On Tue, Jan 12, 2021 at 3:07 PM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   a0d54b4f5b219fb31f0776e9f53aa137e78ae431
> commit: 7b285f41f7376dc37e7fad1e803995fd39f42848 media: ipu3-cio2: Introduce CIO2_LOP_ENTRIES constant
> date:   4 months ago
> config: ia64-randconfig-s031-20210112 (attached as .config)
> compiler: ia64-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-208-g46a52ca4-dirty
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b285f41f7376dc37e7fad1e803995fd39f42848
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 7b285f41f7376dc37e7fad1e803995fd39f42848
>         # 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__' ARCH=ia64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
>
> "sparse warnings: (new ones prefixed by >>)"
> >> drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0)

Patch should be somewhere on its way to upstream.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-12 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 12:44 drivers/media/pci/intel/ipu3/ipu3-cio2.c:163:63: sparse: sparse: cast truncates bits from constant value (20000 becomes 0) kernel test robot
2021-01-12 12:44 ` kernel test robot
2021-01-12 14:03 ` Andy Shevchenko
2021-01-12 14:03   ` Andy Shevchenko

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.