Hi Kamel, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Kamel-Bouhara/dt-bindings-vendor-prefixes-Add-TouchNetix-AS/20231204-222017 base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next patch link: https://lore.kernel.org/r/20231204140505.2838916-4-kamel.bouhara%40bootlin.com patch subject: [PATCH v4 3/3] Input: Add TouchNetix axiom i2c touchscreen driver config: i386-randconfig-r071-20231206 (https://download.01.org/0day-ci/archive/20231207/202312070608.vxtNAYhk-lkp@xxxxxxxxx/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231207/202312070608.vxtNAYhk-lkp@xxxxxxxxx/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@xxxxxxxxx> | Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> | Closes: https://lore.kernel.org/r/202312070608.vxtNAYhk-lkp@xxxxxxxxx/ smatch warnings: drivers/input/touchscreen/touchnetix_axiom.c:565 axiom_i2c_probe() warn: passing zero to 'PTR_ERR' vim +/PTR_ERR +565 drivers/input/touchscreen/touchnetix_axiom.c a9f3450f06a026 Kamel Bouhara 2023-12-04 536 static int axiom_i2c_probe(struct i2c_client *client) a9f3450f06a026 Kamel Bouhara 2023-12-04 537 { a9f3450f06a026 Kamel Bouhara 2023-12-04 538 struct device *dev = &client->dev; a9f3450f06a026 Kamel Bouhara 2023-12-04 539 struct input_dev *input_dev; a9f3450f06a026 Kamel Bouhara 2023-12-04 540 struct axiom_data *ts; a9f3450f06a026 Kamel Bouhara 2023-12-04 541 u32 startup_delay_ms; a9f3450f06a026 Kamel Bouhara 2023-12-04 542 u32 poll_interval; a9f3450f06a026 Kamel Bouhara 2023-12-04 543 int target; a9f3450f06a026 Kamel Bouhara 2023-12-04 544 int error; a9f3450f06a026 Kamel Bouhara 2023-12-04 545 a9f3450f06a026 Kamel Bouhara 2023-12-04 546 ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL); a9f3450f06a026 Kamel Bouhara 2023-12-04 547 if (!ts) a9f3450f06a026 Kamel Bouhara 2023-12-04 548 return -ENOMEM; a9f3450f06a026 Kamel Bouhara 2023-12-04 549 a9f3450f06a026 Kamel Bouhara 2023-12-04 550 ts->client = client; a9f3450f06a026 Kamel Bouhara 2023-12-04 551 i2c_set_clientdata(client, ts); a9f3450f06a026 Kamel Bouhara 2023-12-04 552 ts->dev = dev; a9f3450f06a026 Kamel Bouhara 2023-12-04 553 a9f3450f06a026 Kamel Bouhara 2023-12-04 554 ts->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); a9f3450f06a026 Kamel Bouhara 2023-12-04 555 if (IS_ERR(ts->reset_gpio)) a9f3450f06a026 Kamel Bouhara 2023-12-04 556 return dev_err_probe(dev, PTR_ERR(ts->reset_gpio), "failed to get reset GPIO\n"); a9f3450f06a026 Kamel Bouhara 2023-12-04 557 a9f3450f06a026 Kamel Bouhara 2023-12-04 558 if (ts->reset_gpio) a9f3450f06a026 Kamel Bouhara 2023-12-04 559 axiom_reset(ts->reset_gpio); a9f3450f06a026 Kamel Bouhara 2023-12-04 560 a9f3450f06a026 Kamel Bouhara 2023-12-04 561 ts->vddi = devm_regulator_get_optional(dev, "VDDI"); a9f3450f06a026 Kamel Bouhara 2023-12-04 562 if (!IS_ERR(ts->vddi)) { a9f3450f06a026 Kamel Bouhara 2023-12-04 563 error = regulator_enable(ts->vddi); a9f3450f06a026 Kamel Bouhara 2023-12-04 564 if (error) a9f3450f06a026 Kamel Bouhara 2023-12-04 @565 return dev_err_probe(&client->dev, PTR_ERR(ts->vddi), ^^^^^^^^^^^^^^^^^^ s/PTR_ERR(ts->vddi)/error/ a9f3450f06a026 Kamel Bouhara 2023-12-04 566 "Failed to enable VDDI regulator\n"); a9f3450f06a026 Kamel Bouhara 2023-12-04 567 } a9f3450f06a026 Kamel Bouhara 2023-12-04 568 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki