Index: kernel/meson.build
===================================================================
--- kernel/meson.build	(revision 590cb6d21c857534d940c4c0a165a9997826a0b0)
+++ kernel/meson.build	(revision abb70fc3a98bf9544075c7562fdc459f4beb5535)
@@ -101,6 +101,19 @@
 kernel_c_args = arch_kernel_c_args + kernel_defs + [
 	'-ffreestanding',
-	# TODO: remove this flag
-	cc.get_supported_arguments([ '-Wno-cast-function-type' ]),
+
+	cc.get_supported_arguments([
+		# TODO: remove this flag
+		'-Wno-cast-function-type',
+
+		# When accessing specific memory addresses that are below
+		# normal page size, the compiler may assume that we actually
+		# dereferenced NULL pointer and warns us about that.
+		# But in kernel we often need to access these addresses
+		# directly hence we need to ignore these warnings.
+		#
+		# TODO: might make more sense to disable this selectively
+		# in specific files (or better yet, for specific lines).
+		'--param=min-pagesize=0',
+	]),
 ]
 
