lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202411280441.XgddHSn0-lkp@intel.com>
Date: Thu, 28 Nov 2024 04:20:23 +0800
From: kernel test robot <lkp@...el.com>
To: Yan-Hsuan Chuang <yhchuang@...ltek.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Kalle Valo <kvalo@...eaurora.org>,
	Stanislaw Gruszka <sgruszka@...hat.com>,
	Brian Norris <briannorris@...omium.org>
Subject: drivers/net/wireless/realtek/rtw88/rtw8822c.c:329:1: warning: the
 frame size of 1072 bytes is larger than 1024 bytes

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7d4050728c83aa63828494ad0f4d0eb4faf5f97a
commit: e3037485c68ec1a299ff41160d8fedbd4abc29b9 rtw88: new Realtek 802.11ac driver
date:   6 years ago
config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20241128/202411280441.XgddHSn0-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241128/202411280441.XgddHSn0-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411280441.XgddHSn0-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:5,
                    from ./arch/xtensa/include/generated/asm/bug.h:1,
                    from include/linux/bug.h:5,
                    from include/net/mac80211.h:19,
                    from drivers/net/wireless/realtek/rtw88/main.h:8,
                    from drivers/net/wireless/realtek/rtw88/rtw8822c.c:5:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/xtensa/include/asm/page.h:182:16: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
     182 |         ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                ^~
   include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
      77 | # define unlikely(x)    __builtin_expect(!!(x), 0)
         |                                             ^
   include/linux/scatterlist.h:143:9: note: in expansion of macro 'BUG_ON'
     143 |         BUG_ON(!virt_addr_valid(buf));
         |         ^~~~~~
   arch/xtensa/include/asm/page.h:190:33: note: in expansion of macro 'pfn_valid'
     190 | #define virt_addr_valid(kaddr)  pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
         |                                 ^~~~~~~~~
   include/linux/scatterlist.h:143:17: note: in expansion of macro 'virt_addr_valid'
     143 |         BUG_ON(!virt_addr_valid(buf));
         |                 ^~~~~~~~~~~~~~~
   include/linux/dma-mapping.h: In function 'dma_map_resource':
   arch/xtensa/include/asm/page.h:182:16: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
     182 |         ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
         |                ^~
   include/asm-generic/bug.h:148:34: note: in definition of macro 'WARN_ON_ONCE'
     148 |         int __ret_warn_once = !!(condition);                    \
         |                                  ^~~~~~~~~
   include/linux/dma-mapping.h:359:26: note: in expansion of macro 'pfn_valid'
     359 |         if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
         |                          ^~~~~~~~~
   drivers/net/wireless/realtek/rtw88/rtw8822c.c: In function 'rtw8822c_dac_cal_rf_mode':
>> drivers/net/wireless/realtek/rtw88/rtw8822c.c:329:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     329 | }
         | ^


vim +329 drivers/net/wireless/realtek/rtw88/rtw8822c.c

   312	
   313	static void rtw8822c_dac_cal_rf_mode(struct rtw_dev *rtwdev,
   314					     u32 *i_value, u32 *q_value)
   315	{
   316		u32 iv[DACK_SN_8822C], qv[DACK_SN_8822C];
   317		u32 rf_a, rf_b;
   318	
   319		mdelay(10);
   320	
   321		rf_a = rtw_read_rf(rtwdev, RF_PATH_A, 0x0, RFREG_MASK);
   322		rf_b = rtw_read_rf(rtwdev, RF_PATH_B, 0x0, RFREG_MASK);
   323	
   324		rtw_dbg(rtwdev, RTW_DBG_RFK, "[DACK] RF path-A=0x%05x\n", rf_a);
   325		rtw_dbg(rtwdev, RTW_DBG_RFK, "[DACK] RF path-B=0x%05x\n", rf_b);
   326	
   327		rtw8822c_dac_cal_iq_sample(rtwdev, iv, qv);
   328		rtw8822c_dac_cal_iq_search(rtwdev, iv, qv, i_value, q_value);
 > 329	}
   330	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ