Content-Type: multipart/mixed; boundary="===============3248547621379745838==" MIME-Version: 1.0 From: Sam Ravnborg To: kbuild-all@lists.01.org Subject: Re: [PATCH v3 05/13] sh: Fix set but not used warnings with !CONFIG_MMU Date: Sun, 06 Dec 2020 22:49:38 +0100 Message-ID: <20201206214938.GA1935298@ravnborg.org> In-Reply-To: <20201206214814.GA1884161@ravnborg.org> List-Id: --===============3248547621379745838== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "kernel test robot" On Sun, Dec 06, 2020 at 10:48:14PM +0100, Sam Ravnborg wrote: > commit aa1f4345b5480502a4e61addf5c59d606fdbce8f > Author: Sam Ravnborg > Date: Mon Nov 30 22:09:29 2020 +0100 > = > sh: Fix set but not used warnings with !CONFIG_MMU > = > Building fbdev drivers for sh with W=3D1 produces the following warni= ng: > = > tmiofb.c: In function =E2=80=98tmiofb_remove=E2=80=99: > tmiofb.c:805:21: warning: variable =E2=80=98par=E2=80=99 set but = not used > = > This is with allmodconfig and ARCH=3Dsh > = > This boiled down to iounmap() defined as empty for !CONFIG_MMU. > Fix this by by adding "(void)addr;" to tell the compiler the > argument to iounmap() should be considered used. > = > v4: > - Fix build error of ethernet driver (kernel test robot) > Added missing () around macro parameter Thanks for thee quick report - it was easy to reproduce. I hope this is enough for the robot to pick up the updated patch. Sam --===============3248547621379745838==--