The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gary Rookard <garyrookard@fastmail.org>, gregkh@linuxfoundation.org
Cc: oe-kbuild-all@lists.linux.dev, philipp.g.hortmann@gmail.com,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Gary Rookard <garyrookard@fastmail.org>
Subject: Re: [PATCH v3] staging: rtl8192e: renamed variable TxCountToDataRate
Date: Thu, 26 Oct 2023 13:08:17 +0800	[thread overview]
Message-ID: <202310261254.JYIf89K5-lkp@intel.com> (raw)
In-Reply-To: <20231021215440.6584-1-garyrookard@fastmail.org>

Hi Gary,

kernel test robot noticed the following build warnings:

[auto build test WARNING on staging/staging-testing]

url:    https://github.com/intel-lab-lkp/linux/commits/Gary-Rookard/staging-rtl8192e-renamed-variable-TxCountToDataRate/20231022-061649
base:   staging/staging-testing
patch link:    https://lore.kernel.org/r/20231021215440.6584-1-garyrookard%40fastmail.org
patch subject: [PATCH v3] staging: rtl8192e: renamed variable TxCountToDataRate
config: i386-buildonly-randconfig-002-20231026 (https://download.01.org/0day-ci/archive/20231026/202310261254.JYIf89K5-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310261254.JYIf89K5-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310261254.JYIf89K5-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/staging/rtl8192e/rtl819x_HTProc.c:117:6: warning: no previous declaration for 'tx_count_to_data_rate' [-Wmissing-declarations]
    u16  tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate)
         ^~~~~~~~~~~~~~~~~~~~~


vim +/tx_count_to_data_rate +117 drivers/staging/rtl8192e/rtl819x_HTProc.c

   116	
 > 117	u16  tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate)
   118	{
   119		u16	CCKOFDMRate[12] = {0x02, 0x04, 0x0b, 0x16, 0x0c, 0x12, 0x18,
   120					   0x24, 0x30, 0x48, 0x60, 0x6c};
   121		u8	is40MHz = 0;
   122		u8	isShortGI = 0;
   123	
   124		if (nDataRate < 12)
   125			return CCKOFDMRate[nDataRate];
   126		if (nDataRate >= 0x10 && nDataRate <= 0x1f) {
   127			is40MHz = 0;
   128			isShortGI = 0;
   129		} else if (nDataRate >= 0x20  && nDataRate <= 0x2f) {
   130			is40MHz = 1;
   131			isShortGI = 0;
   132		} else if (nDataRate >= 0x30  && nDataRate <= 0x3f) {
   133			is40MHz = 0;
   134			isShortGI = 1;
   135		} else if (nDataRate >= 0x40  && nDataRate <= 0x4f) {
   136			is40MHz = 1;
   137			isShortGI = 1;
   138		}
   139		return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate & 0xf];
   140	}
   141	

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

  parent reply	other threads:[~2023-10-26  5:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-21 21:54 [PATCH v3] staging: rtl8192e: renamed variable TxCountToDataRate Gary Rookard
2023-10-22  6:38 ` Philipp Hortmann
2023-10-26  5:08 ` kernel test robot [this message]
2023-10-30 23:20 ` kernel test robot

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=202310261254.JYIf89K5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=garyrookard@fastmail.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=philipp.g.hortmann@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox