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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202006250846.o4cQISE9%lkp@intel.com>
Date:   Thu, 25 Jun 2020 08:35:25 +0800
From:   kernel test robot <lkp@...el.com>
To:     Florinel Iordache <florinel.iordache@....com>, davem@...emloft.net,
        netdev@...r.kernel.org, andrew@...n.ch, f.fainelli@...il.com,
        hkallweit1@...il.com, linux@...linux.org.uk
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        devicetree@...r.kernel.org, linux-doc@...r.kernel.org,
        robh+dt@...nel.org, mark.rutland@....com
Subject: Re: [PATCH net-next v3 5/7] net: phy: enable qoriq backplane support

Hi Florinel,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Florinel-Iordache/doc-net-add-backplane-documentation/20200622-223623
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 29a720c1042f469c8fea317cb5e7f496b116e07d
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1d4c87335d5236ea1f35937e1014980ba961ae34)
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
        # 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@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/net/phy/backplane/qoriq_backplane.c:150:18: warning: no previous prototype for function 'get_serdes_type' [-Wmissing-prototypes]
   enum serdes_type get_serdes_type(struct device_node *serdes_node)
                    ^
   drivers/net/phy/backplane/qoriq_backplane.c:150:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   enum serdes_type get_serdes_type(struct device_node *serdes_node)
   ^
   static 
   1 warning generated.
--
>> drivers/net/phy/backplane/qoriq_serdes_10g.c:120:13: warning: bitwise or with non-zero value always evaluates to true [-Wtautological-bitwise-compare]
           if (ln_req | LANE_RX) {
               ~~~~~~~^~~~~~~~~
   drivers/net/phy/backplane/qoriq_serdes_10g.c:115:13: warning: bitwise or with non-zero value always evaluates to true [-Wtautological-bitwise-compare]
           if (ln_req | LANE_TX) {
               ~~~~~~~^~~~~~~~~
   2 warnings generated.

vim +/get_serdes_type +150 drivers/net/phy/backplane/qoriq_backplane.c

   149	
 > 150	enum serdes_type get_serdes_type(struct device_node *serdes_node)
   151	{
   152		enum serdes_type serdes = SERDES_INVAL;
   153		const char *serdes_comp;
   154		int comp_no, i, ret;
   155	
   156		comp_no = of_property_count_strings(serdes_node, "compatible");
   157		for (i = 0; i < comp_no; i++) {
   158			ret = of_property_read_string_index(serdes_node, "compatible",
   159							    i, &serdes_comp);
   160			if (ret == 0) {
   161				if (!strcasecmp(serdes_comp, "serdes-10g")) {
   162					serdes = SERDES_10G;
   163					break;
   164				}
   165			}
   166		}
   167	
   168		return serdes;
   169	}
   170	

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

Download attachment ".config.gz" of type "application/gzip" (75316 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ