From: Dan Carpenter <dan.carpenter@linaro.org>
To: oe-kbuild@lists.linux.dev,
Pratap Nirujogi <pratap.nirujogi@amd.com>,
mchehab@kernel.org, sakari.ailus@linux.intel.com,
hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com,
dave.stevenson@raspberrypi.com
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
benjamin.chan@amd.com, Pratap Nirujogi <pratap.nirujogi@amd.com>
Subject: Re: [PATCH] media: i2c: Add OV05C camera sensor driver
Date: Fri, 14 Mar 2025 10:42:01 +0300 [thread overview]
Message-ID: <237cb63f-6cfa-4a66-8bc7-21cf48c8e760@stanley.mountain> (raw)
In-Reply-To: <20250228165317.3468075-1-pratap.nirujogi@amd.com>
Hi Pratap,
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/Pratap-Nirujogi/media-i2c-Add-OV05C-camera-sensor-driver/20250301-005638
base: https://git.linuxtv.org/media-ci/media-pending.git master
patch link: https://lore.kernel.org/r/20250228165317.3468075-1-pratap.nirujogi%40amd.com
patch subject: [PATCH] media: i2c: Add OV05C camera sensor driver
config: arm64-randconfig-r071-20250312 (https://download.01.org/0day-ci/archive/20250314/202503140559.3mp2n2oI-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
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>
| Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
| Closes: https://lore.kernel.org/r/202503140559.3mp2n2oI-lkp@intel.com/
smatch warnings:
drivers/media/i2c/ov05c.c:936 ov05c_probe() warn: passing zero to 'PTR_ERR'
vim +/PTR_ERR +936 drivers/media/i2c/ov05c.c
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 922 static int ov05c_probe(struct i2c_client *client)
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 923 {
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 924 struct ov05c *ov05c;
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 925 int i, ret;
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 926
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 927 ov05c = devm_kzalloc(&client->dev, sizeof(*ov05c), GFP_KERNEL);
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 928 if (!ov05c)
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 929 return -ENOMEM;
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 930
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 931 client->dev.init_name = DRV_NAME;
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 932
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 933 /* create sensor enable gpio control */
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 934 ov05c->enable_gpio = devm_gpiod_get(&client->dev, "sensor0_enable", GPIOD_OUT_LOW);
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 935 if (IS_ERR_OR_NULL(ov05c->enable_gpio))
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 @936 return PTR_ERR(ov05c->enable_gpio);
If devm_gpiod_get() returns NULL then we'd return success, but actually
devm_gpiod_get() can't return NULL. Only error pointers.
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 937
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 938 /* Initialize subdev */
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 939 v4l2_i2c_subdev_init(&ov05c->sd, client, &ov05c_subdev_ops);
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 940
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 941 /* Initialize CCI */
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 942 ov05c->regmap = devm_cci_regmap_init_i2c(client, 8);
6da03431f4f1e18 Pratap Nirujogi 2025-02-28 943 if (IS_ERR(ov05c->regmap)) {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-03-14 7:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-28 16:53 Pratap Nirujogi
2025-02-28 17:35 ` Laurent Pinchart
2025-03-28 22:10 ` Nirujogi, Pratap
2025-04-02 0:18 ` Laurent Pinchart
2025-04-02 22:02 ` Nirujogi, Pratap
2025-03-01 13:30 ` Krzysztof Kozlowski
2025-03-28 22:19 ` Nirujogi, Pratap
2025-03-29 4:25 ` Krzysztof Kozlowski
2025-03-31 19:18 ` Nirujogi, Pratap
2025-03-03 7:52 ` Sakari Ailus
2025-03-28 22:33 ` Nirujogi, Pratap
2025-03-14 7:42 ` Dan Carpenter [this message]
2025-03-14 17:01 ` Nirujogi, Pratap
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=237cb63f-6cfa-4a66-8bc7-21cf48c8e760@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=benjamin.chan@amd.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=hverkuil@xs4all.nl \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mchehab@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
--cc=pratap.nirujogi@amd.com \
--cc=sakari.ailus@linux.intel.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
all inboxes | Powered by JetHome®