Received: by 10.223.185.116 with SMTP id b49csp1009387wrg; Sun, 11 Feb 2018 02:24:32 -0800 (PST) X-Google-Smtp-Source: AH8x226w8r6g9kwQ/oykisHvV1aEglJ28TkPNecTTBCsO6ix0brfZLGpoN3dFZsYQZfk2stOwUvV X-Received: by 10.101.75.11 with SMTP id r11mr6734390pgq.36.1518344672849; Sun, 11 Feb 2018 02:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518344672; cv=none; d=google.com; s=arc-20160816; b=zQ8l0tkV1po9pHwDmc9yrx0GAfpNPd6/457nLjIA9GYlcAzPxhlMPsQye1FvTKJvaF d9ep4ob1LCK2YQM+jCWOC+JuASCPycNibeIPeILT3Qd4W5iRJfoWq65gBWPkhYc7y46i 4vuVW8Ts43qD8dnElwprsG+4gKekY7MNoxbNIss+ce5OEZM6fi6Z3KD+C5aYA42ca1nV ddVC4XcFqLUlcvM+SMMeABTWqPPwbIjEXEnIsEzRo+96jI4fdl+cgTa3HhuhmI5by02J JAGcpNF5AJTuH/9Qf2J/PRGdOY7TzbDkgIAdDfz+0xfyJ6/UbnG/GCeTGrVhO8+KbH8d DAvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=1SZV7Fl1yVE9quZc1GBN0VUD/jAIiMZer8TVdwiPOBU=; b=vWlAgP7hx619iw160nmz4bbzwamAMI64X0mmpKq3v8T9IsbxVBue8y+hs2JIQ3Jffh InE0ZdyWUuh6FILdyL6RrM1DXti5ACKMvFMups7tZZ0WXrztdovn4pkOVS8O65GkccKD K7OXfyaWWt+TxilQBMtNKEdPdSkZptSZeVCED7KDct4xDmWbUskig+f+MOyoVFU91Q6L W3vaZoicL0A+TwMx44rXEdXu0UruxIKYV9mspXnLnnKk5ZVV+MWGPG6fYDmRKjIEhb9J PiS8tkwfEEK4moVpknE4gWTp+IHKfY3Ba7Mpr/JcfdcBVzH8yw1HwnywpJf9BQp6Ky45 Q66g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h1MEb3nD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190si3821043pgc.219.2018.02.11.02.24.18; Sun, 11 Feb 2018 02:24:32 -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=@google.com header.s=20161025 header.b=h1MEb3nD; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752897AbeBKKV0 (ORCPT + 99 others); Sun, 11 Feb 2018 05:21:26 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:45405 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbeBKKVZ (ORCPT ); Sun, 11 Feb 2018 05:21:25 -0500 Received: by mail-ot0-f194.google.com with SMTP id 73so11588507oti.12 for ; Sun, 11 Feb 2018 02:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1SZV7Fl1yVE9quZc1GBN0VUD/jAIiMZer8TVdwiPOBU=; b=h1MEb3nDpKL3l71GDEMr5pUdIukxtmGZw77y5WDF7PeWff5Rx33oWgAuifuNYuQNbl 0YpnqZ8MjzTuYJUJ4/cq6q045mL7zsuFDkNuzNFFBjNEY5t+5gIuS2wNifsytqgAj6Hu vflNJ+bq977zKwZ3+jhoJqkRcmhXTioJvGwjXVfYXaL0AkXhjydMmS5j1hb9h+6NBn5W ZG90OWHt2DHHaxi+TVP2xbwvmACkxf3//mg9HUZsW3W+6pKcrlz96olKlzt2oW+F6haP 6dTNXxAu1iJYvkT0cAQzvA7I0XsAg25IUjnoEp9NfTKoLPGdoeeVW9123y/LiZnjKjpa HN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1SZV7Fl1yVE9quZc1GBN0VUD/jAIiMZer8TVdwiPOBU=; b=MNt/YEV7C5RW39tcomzw9jfegpqpVTUJ5bu+FsykkQwdEEIhCfDm0DzaeVPlkRoy84 6cjF6bOYmxgz49w1Hj+KS6MxRqfukTeD0RKaUWCpnChAEc2xI6dWaEggX+mqfvldaGsn /+YKnYgXXMYT5e1a/KPy2s/ht0WRzPkBuKDvjiGYrwZdCVqQMlw5+gSB9QEyaBFMj3bB zDqzA26Tf+D9/4i2SscaoKMvrvXOWJJ6bPbpM5Q48uqCeAEwap6s4fxZUbiO8OnDHmyR 3qkqW3vDI+/EipCNFcQyWR4wfIg2J2/2LTiaJu5ysyVbtXH3uozPScdEzV/ANUzxeEHP Lh5w== X-Gm-Message-State: APf1xPAPZxEpWOi59lrCQmUboQZ1KVld/g4MKMdZyahnq0us3/dUKSwM XSXBmD/nUccco0XrLsDtaHpHmrkZM6BDCs6hZb0YnQ== X-Received: by 10.157.15.219 with SMTP id m27mr6473352otd.399.1518344484775; Sun, 11 Feb 2018 02:21:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.168.117.71 with HTTP; Sun, 11 Feb 2018 02:21:24 -0800 (PST) In-Reply-To: <1518340546-6690-1-git-send-email-jcmvbkbc@gmail.com> References: <1518340546-6690-1-git-send-email-jcmvbkbc@gmail.com> From: Andrey Konovalov Date: Sun, 11 Feb 2018 11:21:24 +0100 Message-ID: Subject: Re: [PATCH] xtensa: fix build with KASAN To: Max Filippov Cc: linux-xtensa@linux-xtensa.org, Chris Zankel , Andrey Ryabinin , Dmitry Vyukov , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 11, 2018 at 10:15 AM, Max Filippov wrote: > 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 > Thanks! Acked-by: Andrey Konovalov