diff mbox series

[net-next] sh: checksum: add missing linux/uaccess.h include

Message ID 20230128073108.1603095-1-kuba@kernel.org (mailing list archive)
State New, archived
Headers show
Series [net-next] sh: checksum: add missing linux/uaccess.h include | expand

Commit Message

Jakub Kicinski Jan. 28, 2023, 7:31 a.m. UTC
SuperH does not include uaccess.h, even tho it calls access_ok().

Fixes: 68f4eae781dd ("net: checksum: drop the linux/uaccess.h include")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: ysato@users.sourceforge.jp
CC: dalias@libc.org
CC: linux-sh@vger.kernel.org
---
 arch/sh/include/asm/checksum_32.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Horman Jan. 28, 2023, 4:16 p.m. UTC | #1
On Fri, Jan 27, 2023 at 11:31:08PM -0800, Jakub Kicinski wrote:
> SuperH does not include uaccess.h, even tho it calls access_ok().

I see that is true.
But it's less clear to me why that is a problem.

> Fixes: 68f4eae781dd ("net: checksum: drop the linux/uaccess.h include")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: ysato@users.sourceforge.jp
> CC: dalias@libc.org
> CC: linux-sh@vger.kernel.org
> ---
>  arch/sh/include/asm/checksum_32.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/sh/include/asm/checksum_32.h b/arch/sh/include/asm/checksum_32.h
> index a6501b856f3e..2b5fa75b4651 100644
> --- a/arch/sh/include/asm/checksum_32.h
> +++ b/arch/sh/include/asm/checksum_32.h
> @@ -7,6 +7,7 @@
>   */
>  
>  #include <linux/in6.h>
> +#include <linux/uaccess.h>
>  
>  /*
>   * computes the checksum of a memory block at buff, length len,
> -- 
> 2.39.1
>
Simon Horman Jan. 28, 2023, 4:29 p.m. UTC | #2
On Sat, Jan 28, 2023 at 05:16:48PM +0100, Simon Horman wrote:
> On Fri, Jan 27, 2023 at 11:31:08PM -0800, Jakub Kicinski wrote:
> > SuperH does not include uaccess.h, even tho it calls access_ok().
> 
> I see that is true.
> But it's less clear to me why that is a problem.

Ok, now I see the kernel test robot splat.
Let me try and reproduce it for my own edification.
Simon Horman Jan. 28, 2023, 7:56 p.m. UTC | #3
On Sat, Jan 28, 2023 at 05:29:37PM +0100, Simon Horman wrote:
> On Sat, Jan 28, 2023 at 05:16:48PM +0100, Simon Horman wrote:
> > On Fri, Jan 27, 2023 at 11:31:08PM -0800, Jakub Kicinski wrote:
> > > SuperH does not include uaccess.h, even tho it calls access_ok().
> > 
> > I see that is true.
> > But it's less clear to me why that is a problem.
> 
> Ok, now I see the kernel test robot splat.
> Let me try and reproduce it for my own edification.

Done. Unsurprisingly, your patch resolves the problem.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tested-by: Simon Horman <simon.horman@corigine.com>

For the record, the splat is here:
- https://lore.kernel.org/netdev/202301281438.ZNGVwW6S-lkp@intel.com/
patchwork-bot+netdevbpf@kernel.org Jan. 31, 2023, 5:10 a.m. UTC | #4
Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 27 Jan 2023 23:31:08 -0800 you wrote:
> SuperH does not include uaccess.h, even tho it calls access_ok().
> 
> Fixes: 68f4eae781dd ("net: checksum: drop the linux/uaccess.h include")
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: ysato@users.sourceforge.jp
> CC: dalias@libc.org
> CC: linux-sh@vger.kernel.org
> 
> [...]

Here is the summary with links:
  - [net-next] sh: checksum: add missing linux/uaccess.h include
    https://git.kernel.org/netdev/net-next/c/2083656bb30d

You are awesome, thank you!
diff mbox series

Patch

diff --git a/arch/sh/include/asm/checksum_32.h b/arch/sh/include/asm/checksum_32.h
index a6501b856f3e..2b5fa75b4651 100644
--- a/arch/sh/include/asm/checksum_32.h
+++ b/arch/sh/include/asm/checksum_32.h
@@ -7,6 +7,7 @@ 
  */
 
 #include <linux/in6.h>
+#include <linux/uaccess.h>
 
 /*
  * computes the checksum of a memory block at buff, length len,