All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:linux-5.7.y 9302/9999] drivers/staging/wfx/debug.c:157:36: sparse: sparse: cast to restricted __le16
@ 2020-07-05  9:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-05  9:59 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git linux-5.7.y
head:   fb6c7905238010236cf0750b209ce9162222eb97
commit: be66f10a60e3ec0b589898f78a428bcb34095730 [9302/9999] staging: wfx: fix output of rx_stats on big endian hosts
config: x86_64-randconfig-s021-20200705 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-3-gfa153962-dirty
        git checkout be66f10a60e3ec0b589898f78a428bcb34095730
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/staging/wfx/./traces.h:155:1: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le16 const [usertype] *p @@     got unsigned short [usertype] * @@
   drivers/staging/wfx/./traces.h:155:1: sparse:     expected restricted __le16 const [usertype] *p
   drivers/staging/wfx/./traces.h:155:1: sparse:     got unsigned short [usertype] *
   drivers/staging/wfx/./traces.h:155:1: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le16 const [usertype] *p @@     got unsigned short [usertype] * @@
   drivers/staging/wfx/./traces.h:155:1: sparse:     expected restricted __le16 const [usertype] *p
   drivers/staging/wfx/./traces.h:155:1: sparse:     got unsigned short [usertype] *
   drivers/staging/wfx/debug.c:78:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:79:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:80:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:81:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:82:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:83:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:85:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:86:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:87:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:89:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:90:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:91:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:92:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:93:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:94:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:95:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:96:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:97:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:98:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:99:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:100:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:101:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:103:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:104:9: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:145:20: sparse: sparse: cast to restricted __le32
   drivers/staging/wfx/debug.c:156:36: sparse: sparse: cast to restricted __le32
>> drivers/staging/wfx/debug.c:157:36: sparse: sparse: cast to restricted __le16
   drivers/staging/wfx/debug.c:158:41: sparse: sparse: cast to restricted __le16
   drivers/staging/wfx/debug.c:159:41: sparse: sparse: cast to restricted __le16
   drivers/staging/wfx/debug.c:160:41: sparse: sparse: cast to restricted __le16

vim +157 drivers/staging/wfx/debug.c

   135	
   136	static int wfx_rx_stats_show(struct seq_file *seq, void *v)
   137	{
   138		struct wfx_dev *wdev = seq->private;
   139		struct hif_rx_stats *st = &wdev->rx_stats;
   140		int i;
   141	
   142		mutex_lock(&wdev->rx_stats_lock);
   143		seq_printf(seq, "Timestamp: %dus\n", st->date);
   144		seq_printf(seq, "Low power clock: frequency %uHz, external %s\n",
   145			   le32_to_cpu(st->pwr_clk_freq),
   146			   st->is_ext_pwr_clk ? "yes" : "no");
   147		seq_printf(seq,
   148			   "Num. of frames: %d, PER (x10e4): %d, Throughput: %dKbps/s\n",
   149			   st->nb_rx_frame, st->per_total, st->throughput);
   150		seq_puts(seq, "       Num. of      PER     RSSI      SNR      CFO\n");
   151		seq_puts(seq, "        frames  (x10e4)    (dBm)     (dB)    (kHz)\n");
   152		for (i = 0; i < ARRAY_SIZE(channel_names); i++) {
   153			if (channel_names[i])
   154				seq_printf(seq, "%5s %8d %8d %8d %8d %8d\n",
   155					   channel_names[i],
   156					   le32_to_cpu(st->nb_rx_by_rate[i]),
 > 157					   le16_to_cpu(st->per[i]),
   158					   (s16)le16_to_cpu(st->rssi[i]) / 100,
   159					   (s16)le16_to_cpu(st->snr[i]) / 100,
   160					   (s16)le16_to_cpu(st->cfo[i]));
   161		}
   162		mutex_unlock(&wdev->rx_stats_lock);
   163	
   164		return 0;
   165	}
   166	DEFINE_SHOW_ATTRIBUTE(wfx_rx_stats);
   167	

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

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

only message in thread, other threads:[~2020-07-05  9:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05  9:59 [sashal-linux-stable:linux-5.7.y 9302/9999] drivers/staging/wfx/debug.c:157:36: sparse: sparse: cast to restricted __le16 kernel test robot

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.