* drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
@ 2022-02-14 14:47 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2022-02-14 14:47 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 754e0b0e35608ed5206d6a67a791563c631cec07
commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
date: 8 weeks ago
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp(a)intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d5c70627a79455154f5f636096abe6fe57510605
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps':
>> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable]
1195 | struct ams *ams = data;
| ^~~
drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl':
drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable]
1202 | struct ams *ams = data;
| ^~~
cc1: all warnings being treated as errors
vim +/ams +1195 drivers/iio/adc/xilinx-ams.c
1192
1193 static void ams_iounmap_ps(void *data)
1194 {
> 1195 struct ams *ams = data;
1196
1197 iounmap(ams->ps_base);
1198 }
1199
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
@ 2022-02-14 14:47 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2022-02-14 14:47 UTC (permalink / raw)
To: Anand Ashok Dumbre
Cc: kbuild-all, linux-kernel, Jonathan Cameron, Manish Narani
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 754e0b0e35608ed5206d6a67a791563c631cec07
commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
date: 8 weeks ago
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d5c70627a79455154f5f636096abe6fe57510605
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps':
>> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable]
1195 | struct ams *ams = data;
| ^~~
drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl':
drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable]
1202 | struct ams *ams = data;
| ^~~
cc1: all warnings being treated as errors
vim +/ams +1195 drivers/iio/adc/xilinx-ams.c
1192
1193 static void ams_iounmap_ps(void *data)
1194 {
> 1195 struct ams *ams = data;
1196
1197 iounmap(ams->ps_base);
1198 }
1199
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
2022-02-14 14:47 ` kernel test robot
@ 2022-02-14 15:19 ` Jonathan Cameron
-1 siblings, 0 replies; 8+ messages in thread
From: Jonathan Cameron @ 2022-02-14 15:19 UTC (permalink / raw)
To: kernel test robot
Cc: Anand Ashok Dumbre, kbuild-all, linux-kernel, Manish Narani,
linux-sh
On Mon, 14 Feb 2022 22:47:14 +0800
kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 754e0b0e35608ed5206d6a67a791563c631cec07
> commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
> date: 8 weeks ago
> config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp@intel.com/config)
> compiler: sh4-linux-gcc (GCC) 11.2.0
> 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout d5c70627a79455154f5f636096abe6fe57510605
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
I'm very tempted to say won't fix on this at least not in the IIO code.
The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's
defined as a while loop rather than as an empty static inline function which is what we'd
get it it wasn't defined at all (AFAICT).
If anyone wants to take this on, my guess is drop
https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274
and see if everything still works and the warning goes away.
+CC linux-sh for inputs.
Thanks,
Jonathan
>
> All errors (new ones prefixed by >>):
>
> drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps':
> >> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable]
> 1195 | struct ams *ams = data;
> | ^~~
> drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl':
> drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable]
> 1202 | struct ams *ams = data;
> | ^~~
> cc1: all warnings being treated as errors
>
>
> vim +/ams +1195 drivers/iio/adc/xilinx-ams.c
>
> 1192
> 1193 static void ams_iounmap_ps(void *data)
> 1194 {
> > 1195 struct ams *ams = data;
> 1196
> 1197 iounmap(ams->ps_base);
> 1198 }
> 1199
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
@ 2022-02-14 15:19 ` Jonathan Cameron
0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Cameron @ 2022-02-14 15:19 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2887 bytes --]
On Mon, 14 Feb 2022 22:47:14 +0800
kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 754e0b0e35608ed5206d6a67a791563c631cec07
> commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
> date: 8 weeks ago
> config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp(a)intel.com/config)
> compiler: sh4-linux-gcc (GCC) 11.2.0
> 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout d5c70627a79455154f5f636096abe6fe57510605
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
I'm very tempted to say won't fix on this at least not in the IIO code.
The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's
defined as a while loop rather than as an empty static inline function which is what we'd
get it it wasn't defined at all (AFAICT).
If anyone wants to take this on, my guess is drop
https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274
and see if everything still works and the warning goes away.
+CC linux-sh for inputs.
Thanks,
Jonathan
>
> All errors (new ones prefixed by >>):
>
> drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps':
> >> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable]
> 1195 | struct ams *ams = data;
> | ^~~
> drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl':
> drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable]
> 1202 | struct ams *ams = data;
> | ^~~
> cc1: all warnings being treated as errors
>
>
> vim +/ams +1195 drivers/iio/adc/xilinx-ams.c
>
> 1192
> 1193 static void ams_iounmap_ps(void *data)
> 1194 {
> > 1195 struct ams *ams = data;
> 1196
> 1197 iounmap(ams->ps_base);
> 1198 }
> 1199
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
2022-02-14 15:19 ` Jonathan Cameron
@ 2022-02-15 8:33 ` Geert Uytterhoeven
-1 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2022-02-15 8:33 UTC (permalink / raw)
To: Jonathan Cameron
Cc: kernel test robot, Anand Ashok Dumbre, kbuild-all, linux-kernel,
Manish Narani, linux-sh
Hi Jonathan.
On Mon, Feb 14, 2022 at 8:17 PM Jonathan Cameron
<Jonathan.Cameron@huawei.com> wrote:
> On Mon, 14 Feb 2022 22:47:14 +0800
> kernel test robot <lkp@intel.com> wrote:
>
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 754e0b0e35608ed5206d6a67a791563c631cec07
> > commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
> > date: 8 weeks ago
> > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp@intel.com/config)
> > compiler: sh4-linux-gcc (GCC) 11.2.0
> > 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
> > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > git fetch --no-tags linus master
> > git checkout d5c70627a79455154f5f636096abe6fe57510605
> > # save the config file to linux build tree
> > mkdir build_dir
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
>
> I'm very tempted to say won't fix on this at least not in the IIO code.
>
> The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's
Indeed.
> defined as a while loop rather than as an empty static inline function which is what we'd
> get it it wasn't defined at all (AFAICT).
We would get that only if <asm-generic/io.h> would be included...
> If anyone wants to take this on, my guess is drop
> https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274
> and see if everything still works and the warning goes away.
Nope:
error: implicit declaration of function ‘iounmap’
> +CC linux-sh for inputs.
Thanks, I'll post a fix.
> > All errors (new ones prefixed by >>):
> >
> > drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps':
> > >> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable]
> > 1195 | struct ams *ams = data;
> > | ^~~
> > drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl':
> > drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable]
> > 1202 | struct ams *ams = data;
> > | ^~~
> > cc1: all warnings being treated as errors
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
@ 2022-02-15 8:33 ` Geert Uytterhoeven
0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2022-02-15 8:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3210 bytes --]
Hi Jonathan.
On Mon, Feb 14, 2022 at 8:17 PM Jonathan Cameron
<Jonathan.Cameron@huawei.com> wrote:
> On Mon, 14 Feb 2022 22:47:14 +0800
> kernel test robot <lkp@intel.com> wrote:
>
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 754e0b0e35608ed5206d6a67a791563c631cec07
> > commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
> > date: 8 weeks ago
> > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp(a)intel.com/config)
> > compiler: sh4-linux-gcc (GCC) 11.2.0
> > 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
> > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > git fetch --no-tags linus master
> > git checkout d5c70627a79455154f5f636096abe6fe57510605
> > # save the config file to linux build tree
> > mkdir build_dir
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kernel test robot <lkp@intel.com>
>
> I'm very tempted to say won't fix on this at least not in the IIO code.
>
> The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's
Indeed.
> defined as a while loop rather than as an empty static inline function which is what we'd
> get it it wasn't defined at all (AFAICT).
We would get that only if <asm-generic/io.h> would be included...
> If anyone wants to take this on, my guess is drop
> https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274
> and see if everything still works and the warning goes away.
Nope:
error: implicit declaration of function ‘iounmap’
> +CC linux-sh for inputs.
Thanks, I'll post a fix.
> > All errors (new ones prefixed by >>):
> >
> > drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_ps':
> > >> drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' [-Werror=unused-variable]
> > 1195 | struct ams *ams = data;
> > | ^~~
> > drivers/iio/adc/xilinx-ams.c: In function 'ams_iounmap_pl':
> > drivers/iio/adc/xilinx-ams.c:1202:21: error: unused variable 'ams' [-Werror=unused-variable]
> > 1202 | struct ams *ams = data;
> > | ^~~
> > cc1: all warnings being treated as errors
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert(a)linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
2022-02-15 8:33 ` Geert Uytterhoeven
@ 2022-02-15 8:53 ` Geert Uytterhoeven
-1 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2022-02-15 8:53 UTC (permalink / raw)
To: Jonathan Cameron
Cc: kernel test robot, Anand Ashok Dumbre, kbuild-all, linux-kernel,
Manish Narani, linux-sh
On Tue, Feb 15, 2022 at 9:33 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Mon, Feb 14, 2022 at 8:17 PM Jonathan Cameron
> <Jonathan.Cameron@huawei.com> wrote:
> > On Mon, 14 Feb 2022 22:47:14 +0800
> > kernel test robot <lkp@intel.com> wrote:
> >
> > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > > head: 754e0b0e35608ed5206d6a67a791563c631cec07
> > > commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
> > > date: 8 weeks ago
> > > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp@intel.com/config)
> > > compiler: sh4-linux-gcc (GCC) 11.2.0
> > > 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
> > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > > git fetch --no-tags linus master
> > > git checkout d5c70627a79455154f5f636096abe6fe57510605
> > > # save the config file to linux build tree
> > > mkdir build_dir
> > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
> > >
> > > If you fix the issue, kindly add following tag as appropriate
> > > Reported-by: kernel test robot <lkp@intel.com>
> >
> > I'm very tempted to say won't fix on this at least not in the IIO code.
> >
> > The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's
>
> Indeed.
>
> > defined as a while loop rather than as an empty static inline function which is what we'd
> > get it it wasn't defined at all (AFAICT).
>
> We would get that only if <asm-generic/io.h> would be included...
>
> > If anyone wants to take this on, my guess is drop
> > https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274
> > and see if everything still works and the warning goes away.
>
> Nope:
>
> error: implicit declaration of function ‘iounmap’
>
> > +CC linux-sh for inputs.
>
> Thanks, I'll post a fix.
https://lore.kernel.org/r/4ed0a7a0d3fa912a5b44c451884818f2c138ef42.1644914600.git.geert+renesas@glider.be/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams'
@ 2022-02-15 8:53 ` Geert Uytterhoeven
0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2022-02-15 8:53 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2860 bytes --]
On Tue, Feb 15, 2022 at 9:33 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> On Mon, Feb 14, 2022 at 8:17 PM Jonathan Cameron
> <Jonathan.Cameron@huawei.com> wrote:
> > On Mon, 14 Feb 2022 22:47:14 +0800
> > kernel test robot <lkp@intel.com> wrote:
> >
> > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > > head: 754e0b0e35608ed5206d6a67a791563c631cec07
> > > commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
> > > date: 8 weeks ago
> > > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220214/202202142203.4ofqbic9-lkp(a)intel.com/config)
> > > compiler: sh4-linux-gcc (GCC) 11.2.0
> > > 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5c70627a79455154f5f636096abe6fe57510605
> > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > > git fetch --no-tags linus master
> > > git checkout d5c70627a79455154f5f636096abe6fe57510605
> > > # save the config file to linux build tree
> > > mkdir build_dir
> > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/iio/adc/ drivers/net/ethernet/freescale/
> > >
> > > If you fix the issue, kindly add following tag as appropriate
> > > Reported-by: kernel test robot <lkp@intel.com>
> >
> > I'm very tempted to say won't fix on this at least not in the IIO code.
> >
> > The issue I think is the stub for iounmap on sh with no MMU not using the argument because it's
>
> Indeed.
>
> > defined as a while loop rather than as an empty static inline function which is what we'd
> > get it it wasn't defined at all (AFAICT).
>
> We would get that only if <asm-generic/io.h> would be included...
>
> > If anyone wants to take this on, my guess is drop
> > https://elixir.bootlin.com/linux/latest/source/arch/sh/include/asm/io.h#L274
> > and see if everything still works and the warning goes away.
>
> Nope:
>
> error: implicit declaration of function ‘iounmap’
>
> > +CC linux-sh for inputs.
>
> Thanks, I'll post a fix.
https://lore.kernel.org/r/4ed0a7a0d3fa912a5b44c451884818f2c138ef42.1644914600.git.geert+renesas(a)glider.be/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert(a)linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-02-15 8:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 14:47 drivers/iio/adc/xilinx-ams.c:1195:21: error: unused variable 'ams' kernel test robot
2022-02-14 14:47 ` kernel test robot
2022-02-14 15:19 ` Jonathan Cameron
2022-02-14 15:19 ` Jonathan Cameron
2022-02-15 8:33 ` Geert Uytterhoeven
2022-02-15 8:33 ` Geert Uytterhoeven
2022-02-15 8:53 ` Geert Uytterhoeven
2022-02-15 8:53 ` Geert Uytterhoeven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.