Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1730214 > unrolled thread
| Started by | srinivas.kandagatla@linaro.org |
|---|---|
| First post | 2017-09-11 11:10 +0200 |
| Last post | 2017-09-18 17:10 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional srinivas.kandagatla@linaro.org - 2017-09-11 11:10 +0200
Re: [PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-09-18 16:10 +0200
Re: [PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2017-09-18 17:10 +0200
| From | srinivas.kandagatla@linaro.org |
|---|---|
| Date | 2017-09-11 11:10 +0200 |
| Subject | [PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional |
| Message-ID | <uosT8-Sm-13@gated-at.bofh.it> |
From: Masahiro Yamada <yamada.masahiro@socionext.com> As you see in drivers/nvmem/Makefile, this C file is compiled only when CONFIG_NVMEM is y or m. So, IS_ENABLED(CONFIG_NVMEM) is always evaluated to 1 in this file. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index fdb8b7a..8649045 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -615,7 +615,7 @@ static struct nvmem_device *nvmem_find(const char *name) return to_nvmem_device(d); } -#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OF) +#if IS_ENABLED(CONFIG_OF) /** * of_nvmem_device_get() - Get nvmem device from a given id * @@ -753,7 +753,7 @@ static struct nvmem_cell *nvmem_cell_get_from_list(const char *cell_id) return cell; } -#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OF) +#if IS_ENABLED(CONFIG_OF) /** * of_nvmem_cell_get() - Get a nvmem cell from given device node and cell id * -- 2.9.3
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-09-18 16:10 +0200 |
| Subject | Re: [PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional |
| Message-ID | <ur4Uh-7j9-19@gated-at.bofh.it> |
| In reply to | #1730214 |
On Mon, Sep 11, 2017 at 11:00:14AM +0200, srinivas.kandagatla@linaro.org wrote: > From: Masahiro Yamada <yamada.masahiro@socionext.com> > > As you see in drivers/nvmem/Makefile, this C file is compiled only > when CONFIG_NVMEM is y or m. > > So, IS_ENABLED(CONFIG_NVMEM) is always evaluated to 1 in this file. > > Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> > Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > --- > drivers/nvmem/core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Again, not a bugfix, should go into 4.15-rc1.
[toc] | [prev] | [next] | [standalone]
| From | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> |
|---|---|
| Date | 2017-09-18 17:10 +0200 |
| Subject | Re: [PATCH 4/4] nvmem: remove unneeded IS_ENABLED(CONFIG_NVMEM) conditional |
| Message-ID | <ur5Ql-7VK-9@gated-at.bofh.it> |
| In reply to | #1734168 |
On 18/09/17 15:09, Greg Kroah-Hartman wrote: > On Mon, Sep 11, 2017 at 11:00:14AM +0200,srinivas.kandagatla@linaro.org wrote: >> From: Masahiro Yamada<yamada.masahiro@socionext.com> >> >> As you see in drivers/nvmem/Makefile, this C file is compiled only >> when CONFIG_NVMEM is y or m. >> >> So, IS_ENABLED(CONFIG_NVMEM) is always evaluated to 1 in this file. >> >> Signed-off-by: Masahiro Yamada<yamada.masahiro@socionext.com> >> Signed-off-by: Srinivas Kandagatla<srinivas.kandagatla@linaro.org> >> --- >> drivers/nvmem/core.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > Again, not a bugfix, should go into 4.15-rc1. Okay, No Problem! thanks, srini
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web