Received: by 10.223.185.116 with SMTP id b49csp967887wrg; Sun, 11 Feb 2018 01:17:31 -0800 (PST) X-Google-Smtp-Source: AH8x225O6MwpYHR3oSVK8kEObu+EmVKlI83lTWrCFmM8vPoQXKKhY3n7CnAJvZGR1z62kH3Ih9ts X-Received: by 2002:a17:902:8ec4:: with SMTP id x4-v6mr7365534plo.271.1518340651656; Sun, 11 Feb 2018 01:17:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518340651; cv=none; d=google.com; s=arc-20160816; b=lOfHZEI2bIog/Ov+4A76IKNNZnUSJrXQCjozsjUFaVNx+ReyUJjuoyekBuzHtH8O3Z kWilrlFtdHzL+hmEOBNjokBi6vichW9X1yBgkwuVeoBHPeheWLRemrgjwoe55EkDk7s5 TV/KUKaYE7TV1pnbOPSnjuU9x0lwA7wJgcxdW38WJmoCBcIoUxvyBwqSUXLvVH24OtyL tio2xDm7Gw25IoLZyoF24StZEqzC6ai3wGcAjlmy7unc49ZweVFznNhjJZbLgAsmEEnS vL3656w6i0C+XEnMawY+9WdR4LvRBtXzX1v55lFBZ+oiYGJsy83fUS62yYUKQ6knJDKd PPuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=7bYVmuWEwdvbG10I51CS7iItjBgIEaqhqVYW534EWXU=; b=AtFp2nJ8y/aPmMtmasOY1wlv0XY1tAbBuWpVk7I5AXMPj0BuC7pYP8ZFQ1YJa3tA9A V5y9RR9rUCTAAnNzXcNOlCYosmXLXLz6CXBGqjItM00hq/7K0aE8g+nEM/DoLqTiuGqn R7Pb2OCQsvR142jpqXZrUrqhgQPdQ5GTYM0dwbjPt2XoQWka4U13FUxXJbbwqx6E6ffr Kk2QL2ZHiEPWwP9jKJFI51DdFrQSp48otFKbZuSV6oeveu5re8h5C+klVP6XfyjPR85R /JM4bjpFaUNUh0dCr6xOPI7crESzwqXguMMvjXQwI1hgbV3/HD4/kfokUHLZua9fEhVO gELA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IgD/bKeB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc11-v6si4220407plb.531.2018.02.11.01.17.04; Sun, 11 Feb 2018 01:17:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IgD/bKeB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752682AbeBKJQE (ORCPT + 99 others); Sun, 11 Feb 2018 04:16:04 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:37162 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbeBKJQD (ORCPT ); Sun, 11 Feb 2018 04:16:03 -0500 Received: by mail-lf0-f67.google.com with SMTP id f137so16684708lfe.4 for ; Sun, 11 Feb 2018 01:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7bYVmuWEwdvbG10I51CS7iItjBgIEaqhqVYW534EWXU=; b=IgD/bKeBKGso7nRkg0SGuPDHacJkZG8dVgVx56HzoIdvjhrR4dpwCsKATg1YN0lnOj DRulj/gEscjUd+7CGncCQtyOJ56J6e9IB1Ye5foQYzN34u8noEV2LFxOjcn7+9xtfg2Y ADdQ0MBMMXbPJUA7aMmos96JajByPcWKPOuOmDF//xVfD59OXfArdvxAWiLP3fUfb012 2/yAhw/MOZWirtc55P/5VAhfkU1qRqM9MZ/cfikguR4grvv84QgGhmeYS3yNxb4vTGIb hONtUZEHSYgucXev8o0PsMfcApcYjWy4rFC7fTpUKMpuXf2iOvgwEMouJPJymPfeDAA+ 0KuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7bYVmuWEwdvbG10I51CS7iItjBgIEaqhqVYW534EWXU=; b=U/YzNToY3PyWTcnaYWnTUHy7XtQ6UH09rmioSaSHxXEkluXkfijVsgn7/fw7v3wnWi E2ZToR+uCqn9Tv+dcsa29ckvwgMROc15bAEoEcVrF7d/AQr+L1umIFdC2x0RegzX8EtX 1uwR1LYPxKSDbuwiqF/NXTza3ZO3Vjz/15JY4GHuGLswraXbIBJvN1shFdPaUlDsg/YV LpOBrJ+BB61WqUltR9RTZesIRQMgvakIUxKQjKuyOe+cbhBiuwyUkofIB8R1AUYXmYhF A7WcBqSuC7B5u9NH0uSYfvDTPfKr4IA252QaFUIseXvd8RPFB4Zzcst32F1vovt2s7yq G4fg== X-Gm-Message-State: APf1xPCLzSzLB5LoZZJhu1nShnfsZiYhabtjlaO5GAltUj+L0AYKevxA pk3XHMUdR9F9IazGA4O70ZI= X-Received: by 10.25.169.5 with SMTP id s5mr5655047lfe.116.1518340561815; Sun, 11 Feb 2018 01:16:01 -0800 (PST) Received: from octofox.net (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id r84sm1115467ljb.89.2018.02.11.01.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Feb 2018 01:16:01 -0800 (PST) From: Max Filippov To: linux-xtensa@linux-xtensa.org Cc: Chris Zankel , Andrey Konovalov , Andrey Ryabinin , Dmitry Vyukov , linux-kernel@vger.kernel.org, Max Filippov Subject: [PATCH] xtensa: fix build with KASAN Date: Sun, 11 Feb 2018 01:15:46 -0800 Message-Id: <1518340546-6690-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 917538e212a2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage") removed KASAN_SHADOW_SCALE_SHIFT definition from include/linux/kasan.h and added it to architecture-specific headers, except for xtensa. This broke the xtensa build with KASAN enabled. Define KASAN_SHADOW_SCALE_SHIFT in arch/xtensa/include/asm/kasan.h Reported by: kbuild test robot Fixes: 917538e212a2 ("kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage") Signed-off-by: Max Filippov --- arch/xtensa/include/asm/kasan.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/xtensa/include/asm/kasan.h b/arch/xtensa/include/asm/kasan.h index 54be80876e57..216b6f32c375 100644 --- a/arch/xtensa/include/asm/kasan.h +++ b/arch/xtensa/include/asm/kasan.h @@ -10,6 +10,8 @@ #include #include +#define KASAN_SHADOW_SCALE_SHIFT 3 + /* Start of area covered by KASAN */ #define KASAN_START_VADDR __XTENSA_UL_CONST(0x90000000) /* Start of the shadow map */ -- 2.1.4