From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753665AbcEWP3z (ORCPT ); Mon, 23 May 2016 11:29:55 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:32902 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752559AbcEWP3y (ORCPT ); Mon, 23 May 2016 11:29:54 -0400 From: Sudip Mukherjee To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] m32r: fix build failure Date: Mon, 23 May 2016 16:29:42 +0530 Message-Id: <1464001182-8329-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org m32r allmodconfig build was failing with the error: ERROR: "smp_flush_cache_all" [drivers/misc/lkdtm.ko] undefined! lkdtm driver at drivers/misc is using flush_icache_range() which for m32r is defined as smp_flush_cache_all() if CONFIG_SMP is defined. But as smp_flush_cache_all() was not exported so the build was failing with the error of undefined symbol. Signed-off-by: Sudip Mukherjee --- Hi Andrew, as usual sending the patch to you as m32r arch is orphan. build log is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/132180911 arch/m32r/kernel/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/m32r/kernel/smp.c b/arch/m32r/kernel/smp.c index 62d6961..564052e 100644 --- a/arch/m32r/kernel/smp.c +++ b/arch/m32r/kernel/smp.c @@ -164,6 +164,7 @@ void smp_flush_cache_all(void) spin_unlock(&flushcache_lock); preempt_enable(); } +EXPORT_SYMBOL(smp_flush_cache_all); void smp_flush_cache_all_interrupt(void) { -- 1.9.1