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: <202201191010.ccJSermy-lkp@intel.com>
Date:   Wed, 19 Jan 2022 11:00:44 +0800
From:   kernel test robot <lkp@...el.com>
To:     Martin PoviĊĦer <povik@...tonmail.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Hector Martin <marcan@...can.st>
Subject: [asahilinux:bits/070-audio 6/10] sound/soc/apple/mca.c:210:23:
 error: implicit declaration of function 'FIELD_PREP'

tree:   https://github.com/AsahiLinux/linux bits/070-audio
head:   63a99f1a44208593f5a423b5378824abc2246988
commit: 3bd1b7277353e3c32b737543b6e95de54f11600e [6/10] ASoC: apple-mca: Add platform driver for Apple SoCs
config: csky-allyesconfig (https://download.01.org/0day-ci/archive/20220119/202201191010.ccJSermy-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.0
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
        # https://github.com/AsahiLinux/linux/commit/3bd1b7277353e3c32b737543b6e95de54f11600e
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/070-audio
        git checkout 3bd1b7277353e3c32b737543b6e95de54f11600e
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   sound/soc/apple/mca.c: In function 'mca_configure_serdes':
>> sound/soc/apple/mca.c:210:23: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     210 |         serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
         |                       ^~~~~~~~~~
   sound/soc/apple/mca.c: In function 'mca_set_runtime_hwparams':
   sound/soc/apple/mca.c:528:37: warning: unused variable 'rtd' [-Wunused-variable]
     528 |         struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
         |                                     ^~~
   sound/soc/apple/mca.c: At top level:
   sound/soc/apple/mca.c:649:6: warning: no previous prototype for 'apple_mca_release_dma_chans' [-Wmissing-prototypes]
     649 | void apple_mca_release_dma_chans(struct mca_data *mca)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/apple/mca.c:664:6: warning: no previous prototype for 'apple_mca_put_clks' [-Wmissing-prototypes]
     664 | void apple_mca_put_clks(struct mca_data *mca)
         |      ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +210 sound/soc/apple/mca.c

   204	
   205	static int mca_configure_serdes(struct mca_data *mca, int cluster, int serdes_unit,
   206					unsigned int mask, int slots, int slot_width)
   207	{
   208		u32 serdes_conf;
   209	
 > 210		serdes_conf = FIELD_PREP(SERDES_CONF_NCHANS, max(slots, 1) - 1);
   211	
   212		switch (slot_width) {
   213		case 16:
   214			serdes_conf |= SERDES_CONF_WIDTH_16BIT;
   215			break;
   216		case 20:
   217			serdes_conf |= SERDES_CONF_WIDTH_20BIT;
   218			break;
   219		case 24:
   220			serdes_conf |= SERDES_CONF_WIDTH_24BIT;
   221			break;
   222		case 32:
   223			serdes_conf |= SERDES_CONF_WIDTH_32BIT;
   224			break;
   225		default:
   226			goto err;
   227		}
   228	
   229		mca_modify(mca, cluster,
   230			serdes_unit + REG_SERDES_CONF,
   231			SERDES_CONF_WIDTH_MASK | SERDES_CONF_NCHANS, serdes_conf);
   232		mca_poke(mca, cluster,
   233			serdes_unit + REG_SERDES_CHANMASK,
   234			~((u32) mask));
   235	
   236		return 0;
   237	
   238	err:
   239		dev_err(mca->dev, "unsupported SERDES configuration requested (mask=0x%x slots=%d slot_width=%d)\n",
   240				mask, slots, slot_width);
   241		return -EINVAL;
   242	}
   243	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ