linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 1103/6512] drivers/platform/surface/surface_aggregator_registry.c:398:25: warning: implicit conversion from 'int' to '__u8' (aka 'unsigned char') changes value from 65535 to 255
@ 2021-03-23  8:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-23  8:10 UTC (permalink / raw)
  To: Maximilian Luz
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Hans de Goede

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

Hi Maximilian,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d949689e7383cd5271470f2b99dbe2fd3199bffd
commit: 797e78564634275ed4fe6b3f586c4b96eb1d86bc [1103/6512] platform/surface: aggregator_registry: Add base device hub
config: x86_64-randconfig-r026-20210323 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=797e78564634275ed4fe6b3f586c4b96eb1d86bc
        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 797e78564634275ed4fe6b3f586c4b96eb1d86bc
        # 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@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/platform/surface/surface_aggregator_registry.c:398:25: warning: implicit conversion from 'int' to '__u8' (aka 'unsigned char') changes value from 65535 to 255 [-Wconstant-conversion]
           { SSAM_VDEV(HUB, 0x02, SSAM_ANY_IID, 0x00) },
           ~                      ^~~~~~~~~~~~
   include/linux/surface_aggregator/device.h:71:23: note: expanded from macro 'SSAM_ANY_IID'
   #define SSAM_ANY_IID            0xffff
                                   ^~~~~~
   include/linux/surface_aggregator/device.h:126:63: note: expanded from macro 'SSAM_VDEV'
           SSAM_DEVICE(SSAM_DOMAIN_VIRTUAL, SSAM_VIRTUAL_TC_##cat, tid, iid, fun)
                                                                        ^~~
   include/linux/surface_aggregator/device.h:102:41: note: expanded from macro 'SSAM_DEVICE'
           .instance = ((iid) != SSAM_ANY_IID) ? (iid) : 0,                        \
                                                  ^~~
   1 warning generated.


vim +398 drivers/platform/surface/surface_aggregator_registry.c

   396	
   397	static const struct ssam_device_id ssam_base_hub_match[] = {
 > 398		{ SSAM_VDEV(HUB, 0x02, SSAM_ANY_IID, 0x00) },
   399		{ },
   400	};
   401	

---
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: 40000 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-23  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23  8:10 [linux-next:master 1103/6512] drivers/platform/surface/surface_aggregator_registry.c:398:25: warning: implicit conversion from 'int' to '__u8' (aka 'unsigned char') changes value from 65535 to 255 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).