Skip to contentSkip to conversation

>>>>>>>>>>>>>>>>>>>>>>>>> BLURB <<<<<<<<<<<<<<<<<<<

PATCH In review Randy Dunlap 1 participant 2 messages Feb 2, 2023 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 >>>>>>>>>>>>>>>>>>>>>>>>> BLURB <<<<<<<<<<<<<<<<<<<

../arch/sh/include/asm/checksum_32.h: In function 'csum_and_copy_from_user':
../arch/sh/include/asm/checksum_32.h:53:14: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration]
53 | if (!access_ok(src, len))

      |              ^~~~~~~~~
Fixes 7fe8970a78a1 ("sh32: convert to csum_and_copy_from_user()")
Cc Al Viro <[email protected]>
Cc Yoshinori Sato <[email protected]>
Cc Rich Felker <[email protected]>
Cc John Paul Adrian Glaubitz <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Andrew Morton <[email protected]>
---
 arch/sh/include/asm/checksum_32.h |    1 +
 1 file changed, 1 insertion(+)
arch/sh/include/asm/checksum_32.h +1 -0
diff -- 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 <asm-generic/access_ok.h>
 
 /*
  * computes the checksum of a memory block at buff, length len,
#1 lore raw

Oops. not completed. I'll resend it. Sorry for the noise.

Quoted 30 lines · Randy Dunlap

../arch/sh/include/asm/checksum_32.h: In function 'csum_and_copy_from_user':
../arch/sh/include/asm/checksum_32.h:53:14: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration]
53 | if (!access_ok(src, len))

      |              ^~~~~~~~~
Fixes 7fe8970a78a1 ("sh32: convert to csum_and_copy_from_user()")
Cc Al Viro <[email protected]>
Cc Yoshinori Sato <[email protected]>
Cc Rich Felker <[email protected]>
Cc John Paul Adrian Glaubitz <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Andrew Morton <[email protected]>
---
 arch/sh/include/asm/checksum_32.h |    1 +
 1 file changed, 1 insertion(+)

diff -- a/arch/sh/include/asm/checksum_32.h b/arch/sh/include/asm/checksum_32.h

arch/sh/include/asm/checksum_32.h +1 -0
@@ -7,6 +7,7 @@
  */
 
 #include <linux/in6.h>
+#include <asm-generic/access_ok.h>
 
 /*
  * computes the checksum of a memory block at buff, length len,
Signature · 1 line
~Randy