public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "larry.lai" <larry.lai@yunjingtech.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC RESEND 1/3] mfd: Add support for UP board CPLD/FPGA
Date: Tue, 2 May 2023 12:56:02 +0800	[thread overview]
Message-ID: <202305021237.3KjZn3Ga-lkp@intel.com> (raw)
In-Reply-To: <20230425152135.30745-2-larry.lai@yunjingtech.com>

Hi larry.lai,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on 4fe89d07dcc2804c8b562f6c7896a45643d34b2f]

url:    https://github.com/intel-lab-lkp/linux/commits/larry-lai/mfd-Add-support-for-UP-board-CPLD-FPGA/20230425-232744
base:   4fe89d07dcc2804c8b562f6c7896a45643d34b2f
patch link:    https://lore.kernel.org/r/20230425152135.30745-2-larry.lai%40yunjingtech.com
patch subject: [RFC RESEND 1/3] mfd: Add support for UP board CPLD/FPGA
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20230502/202305021237.3KjZn3Ga-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/cb16ef420038f2bede2deb3878b529f0e6ea7729
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review larry-lai/mfd-Add-support-for-UP-board-CPLD-FPGA/20230425-232744
        git checkout cb16ef420038f2bede2deb3878b529f0e6ea7729
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/firmware/ drivers/hwmon/ drivers/mfd/ drivers/pinctrl/ drivers/staging/media/atomisp/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305021237.3KjZn3Ga-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/mfd/upboard-fpga.c:448:49: warning: data argument not used by format string [-Wformat-extra-args]
                   dev_err(fpga->dev, "Failed to add GPIO LEDs", ret);
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~  ^
   include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
           dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                  ~~~     ^
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                   _p_func(dev, fmt, ##__VA_ARGS__);                       \
                                ~~~    ^
   drivers/mfd/upboard-fpga.c:486:20: error: assigning to 'struct regmap_config *' from 'const struct regmap_config *const' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
           fpga->cpld_config = fpga_data->cpld_config;
                             ^ ~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +448 drivers/mfd/upboard-fpga.c

   383	
   384	/*
   385	 * MFD upboard-fpga is ACPI driver and can recognize the AANT ID from different
   386	 * kind of upboards. We get the LED GPIO initialized information from this
   387	 * then add led-upboard driver.
   388	 */
   389	int upboard_led_gpio_register(struct upboard_fpga *fpga)
   390	{
   391		struct gpio_led blue_led, yellow_led, green_led, red_led;
   392		struct gpio_desc *desc;
   393		static struct gpio_led upboard_gpio_leds[4];
   394		int leds = 0;
   395		static struct gpio_led_platform_data upboard_gpio_led_platform_data;
   396		static const struct mfd_cell upboard_gpio_led_cells[] = {
   397			MFD_CELL_BASIC("leds-gpio", NULL,
   398				       &upboard_gpio_led_platform_data,
   399				       sizeof(upboard_gpio_led_platform_data), 0)
   400		};
   401		int ret;
   402	
   403		desc = devm_gpiod_get(fpga->dev, "blue", GPIOD_OUT_LOW);
   404		if (!IS_ERR(desc)) {
   405			blue_led.name = "upboard:blue:";
   406			blue_led.gpio = desc_to_gpio(desc);
   407			blue_led.default_state = LEDS_GPIO_DEFSTATE_KEEP;
   408			upboard_gpio_leds[leds++] = blue_led;
   409			devm_gpiod_put(fpga->dev, desc);
   410		}
   411		desc = devm_gpiod_get(fpga->dev, "yellow", GPIOD_OUT_LOW);
   412		if (!IS_ERR(desc)) {
   413			yellow_led.name = "upboard:yellow:";
   414			yellow_led.gpio = desc_to_gpio(desc);
   415			yellow_led.default_state = LEDS_GPIO_DEFSTATE_KEEP;
   416			upboard_gpio_leds[leds++] = yellow_led;
   417			devm_gpiod_put(fpga->dev, desc);
   418		}
   419		desc = devm_gpiod_get(fpga->dev, "green", GPIOD_OUT_LOW);
   420		if (!IS_ERR(desc)) {
   421			green_led.name = "upboard:green:";
   422			green_led.gpio = desc_to_gpio(desc);
   423			green_led.default_state = LEDS_GPIO_DEFSTATE_KEEP;
   424			upboard_gpio_leds[leds++] = green_led;
   425			devm_gpiod_put(fpga->dev, desc);
   426		}
   427		desc = devm_gpiod_get(fpga->dev, "red", GPIOD_OUT_LOW);
   428		if (!IS_ERR(desc)) {
   429			red_led.name = "upboard:red:";
   430			red_led.gpio = desc_to_gpio(desc);
   431			red_led.default_state = LEDS_GPIO_DEFSTATE_KEEP;
   432			upboard_gpio_leds[leds++] = red_led;
   433			devm_gpiod_put(fpga->dev, desc);
   434		}
   435	
   436		/* no LEDs */
   437		if (leds == 0)
   438			return 0;
   439	
   440		upboard_gpio_led_platform_data.num_leds = leds;
   441		upboard_gpio_led_platform_data.leds = upboard_gpio_leds;
   442	
   443		ret = devm_mfd_add_devices(fpga->dev, PLATFORM_DEVID_AUTO,
   444					   upboard_gpio_led_cells,
   445					   ARRAY_SIZE(upboard_gpio_led_cells),
   446					   NULL, 0, NULL);
   447		if (ret) {
 > 448			dev_err(fpga->dev, "Failed to add GPIO LEDs", ret);
   449			return ret;
   450		}
   451	
   452		return 0;
   453	}
   454	

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

       reply	other threads:[~2023-05-02  4:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230425152135.30745-2-larry.lai@yunjingtech.com>
2023-05-02  4:56 ` kernel test robot [this message]
2023-05-02 14:21 ` [RFC RESEND 1/3] mfd: Add support for UP board CPLD/FPGA 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=202305021237.3KjZn3Ga-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=larry.lai@yunjingtech.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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