kasan: add memzero init for unaligned size at DEBUG
[linux-2.6-microblaze.git] / mm / page_alloc.c
index d6e94cc..3b97e17 100644 (file)
@@ -124,17 +124,6 @@ static DEFINE_MUTEX(pcp_batch_high_lock);
 
 struct pagesets {
        local_lock_t lock;
-#if defined(CONFIG_DEBUG_INFO_BTF) &&                          \
-       !defined(CONFIG_DEBUG_LOCK_ALLOC) &&                    \
-       !defined(CONFIG_PAHOLE_HAS_ZEROSIZE_PERCPU_SUPPORT)
-       /*
-        * pahole 1.21 and earlier gets confused by zero-sized per-CPU
-        * variables and produces invalid BTF. Ensure that
-        * sizeof(struct pagesets) != 0 for older versions of pahole.
-        */
-       char __pahole_hack;
-       #warning "pahole too old to support zero-sized struct pagesets"
-#endif
 };
 static DEFINE_PER_CPU(struct pagesets, pagesets) = {
        .lock = INIT_LOCAL_LOCK(lock),