From: kbuild test robot <lkp@intel.com>
To: Akshu Agrawal <akshu.agrawal@amd.com>
Cc: kbuild-all@01.org, djkurtz@chromium.org, akshu.agrawal@amd.com,
Alexander.Deucher@amd.com,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Christian König" <christian.koenig@amd.com>,
"Shaoyun Liu" <Shaoyun.Liu@amd.com>,
"Dave Airlie" <airlied@redhat.com>,
"open list" <linux-kernel@vger.kernel.org>,
"open list:COMMON CLK FRAMEWORK" <linux-clk@vger.kernel.org>
Subject: Re: [PATCH v2] clk: x86: Add ST oscout platform clock
Date: Fri, 4 May 2018 06:09:45 +0800 [thread overview]
Message-ID: <201805040610.d3xMxCsO%fengguang.wu@intel.com> (raw)
In-Reply-To: <1525336264-29243-1-git-send-email-akshu.agrawal@amd.com>
Hi Akshu,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on v4.17-rc3 next-20180503]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Akshu-Agrawal/clk-x86-Add-ST-oscout-platform-clock/20180503-214044
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
smatch warnings:
drivers/clk/x86/clk-st.c:60 st_clk_probe() error: potential null dereference 'hws'. (kzalloc returns null)
vim +/hws +60 drivers/clk/x86/clk-st.c
48
49 static int st_clk_probe(struct platform_device *pdev)
50 {
51 struct st_clk_data *st_data;
52 struct clk_hw **hws;
53
54 st_data = dev_get_platdata(&pdev->dev);
55 if (!st_data || !st_data->base)
56 return -EINVAL;
57
58 hws = kzalloc(sizeof(*hws) * ST_MAX_CLKS, GFP_KERNEL);
59
> 60 hws[ST_CLK_48M] = clk_hw_register_fixed_rate(NULL, "clk48MHz", NULL, 0,
61 48000000);
62 hws[ST_CLK_25M] = clk_hw_register_fixed_rate(NULL, "clk25MHz", NULL, 0,
63 25000000);
64
65 hws[ST_CLK_MUX] = clk_hw_register_mux(NULL, "oscout1_mux",
66 clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents),
67 0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL);
68
69 clk_set_parent(hws[ST_CLK_MUX]->clk, hws[ST_CLK_25M]->clk);
70
71 hws[ST_CLK_GATE] = clk_hw_register_gate(NULL, "oscout1", "oscout1_mux",
72 0, st_data->base + MISCCLKCNTL1, OSCCLKENB,
73 CLK_GATE_SET_TO_DISABLE, NULL);
74
75 clk_hw_register_clkdev(hws[ST_CLK_GATE], "oscout1", NULL);
76
77 return 0;
78 }
79
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
next prev parent reply other threads:[~2018-05-03 22:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-03 8:30 Akshu Agrawal
2018-05-03 22:09 ` kbuild test robot [this message]
2018-05-05 2:26 ` Stephen Boyd
2018-05-07 10:06 ` Agrawal, Akshu
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=201805040610.d3xMxCsO%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Alexander.Deucher@amd.com \
--cc=Shaoyun.Liu@amd.com \
--cc=airlied@redhat.com \
--cc=akshu.agrawal@amd.com \
--cc=christian.koenig@amd.com \
--cc=djkurtz@chromium.org \
--cc=kbuild-all@01.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
/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®