From patchwork Mon Nov 19 17:26:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 10689145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 96C5414E2 for ; Mon, 19 Nov 2018 17:29:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D6FC29FDB for ; Mon, 19 Nov 2018 17:29:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70AD12A0B6; Mon, 19 Nov 2018 17:29:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B66329FDB for ; Mon, 19 Nov 2018 17:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403863AbeKTDyS (ORCPT ); Mon, 19 Nov 2018 22:54:18 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37458 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404452AbeKTDvV (ORCPT ); Mon, 19 Nov 2018 22:51:21 -0500 Received: by mail-wr1-f68.google.com with SMTP id j10so18732323wru.4 for ; Mon, 19 Nov 2018 09:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MOxiGtbnzhqpDBspVzWEzY99H8AFgGg0mLPeJFn5o/U=; b=URLmOXZKwOvDj+SSbXLXhbvfDTH5VmJxVPJ5zUuwGtDuhF/01XSIZ7lprwchOG+Z5y 98y5fkI5hwCXwPSPOA+uJ707d7eQjlwq/jf3dez9mnFfDgJoYKmND/whcJC2DGnKV+RE raTHNIG9TznaSyAkHxebdbUg7KNiKJoCMrC58JqtVQsQ9lKhbRoKM4miUZQA8DIQA3/4 75le7lOrBXtx4KGu6GBSHjzSpm0XMpaCk8qP0cwQnuhgj1SPCCkQLirUSYrEFKCwSZuG ZduFHeRdT7g25y9PVclAGkstBd9FD9Oh2hhgP2ca/Wwjg8sizSdCqQv6wA8kq0gnm50v hxLA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=MOxiGtbnzhqpDBspVzWEzY99H8AFgGg0mLPeJFn5o/U=; b=RzVaBFUsEPd0RcRf6ePpVvtLS2RYXuDEwZ9XOmYdI7C3qF7EnIo1P0OKtENW5yWoxx HelXOfVYVvQGt6T+obKv11UWEjBmbqh8Xo/nCty0NRLDBz8vOcXUc0Wknqj4pIBZT/Vm 2IQ5InAHPDwbLDZsd+My82m+CZox2AaOr/AGg+aOvb6RGtPeyQpgxylRV1/LdbB3JCxq mK3LhvmUARw/JaX5t9ZCaPkEqjnWF1Jax+XzNL6g8Azk/+gNoYyN3RjbPP+lYmU63E1g OwSGF8YW/SGECEAs+qcBm6a+o+kYooUoNSxtFZXgCjIMfiQegkJfUkUzd3el2Si1mMJS c9yA== X-Gm-Message-State: AA+aEWYK5XcTsAH4zyTgPAkAoeFQOJEUVVWqOs5tIkRhko2ll6fySY/V pR8bv2d+LZlclISymxaRZVLLyw== X-Google-Smtp-Source: AFSGD/U8sgq6gI0uk28IKx47rH6VRYWmJDqB5I8lWxiIoUIosbabdvsEgnEhuL/jWxx1BbIZHGP1pw== X-Received: by 2002:a5d:63c3:: with SMTP id c3mr2726578wrw.215.1542648416246; Mon, 19 Nov 2018 09:26:56 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:3180:41f8:3010:ff61]) by smtp.gmail.com with ESMTPSA id l143-v6sm23685190wmb.23.2018.11.19.09.26.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:26:55 -0800 (PST) From: Andrey Konovalov To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Christoph Lameter , Andrew Morton , Mark Rutland , Nick Desaulniers , Marc Zyngier , Dave Martin , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A . Shutemov" , Greg Kroah-Hartman , Kate Stewart , Mike Rapoport , kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sparse@vger.kernel.org, linux-mm@kvack.org, linux-kbuild@vger.kernel.org Cc: Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Jann Horn , Mark Brand , Chintan Pandya , Vishwath Mohan , Andrey Konovalov Subject: [PATCH v11 04/24] kasan: rename source files to reflect the new naming scheme Date: Mon, 19 Nov 2018 18:26:20 +0100 Message-Id: <9cd2f3cc890932e8d3ae5eb2ac24458d39d87960.1542648335.git.andreyknvl@google.com> X-Mailer: git-send-email 2.19.1.1215.g8438c0b245-goog In-Reply-To: References: MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We now have two KASAN modes: generic KASAN and tag-based KASAN. Rename kasan.c to generic.c to reflect that. Also rename kasan_init.c to init.c as it contains initialization code for both KASAN modes. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- mm/kasan/Makefile | 8 ++++---- mm/kasan/{kasan.c => generic.c} | 0 mm/kasan/{kasan_init.c => init.c} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename mm/kasan/{kasan.c => generic.c} (100%) rename mm/kasan/{kasan_init.c => init.c} (100%) diff --git a/mm/kasan/Makefile b/mm/kasan/Makefile index a6df14bffb6b..d643530b24aa 100644 --- a/mm/kasan/Makefile +++ b/mm/kasan/Makefile @@ -1,14 +1,14 @@ # SPDX-License-Identifier: GPL-2.0 KASAN_SANITIZE := n UBSAN_SANITIZE_common.o := n -UBSAN_SANITIZE_kasan.o := n +UBSAN_SANITIZE_generic.o := n KCOV_INSTRUMENT := n -CFLAGS_REMOVE_kasan.o = -pg +CFLAGS_REMOVE_generic.o = -pg # Function splitter causes unnecessary splits in __asan_load1/__asan_store1 # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533 CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -CFLAGS_kasan.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) +CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -obj-y := common.o kasan.o report.o kasan_init.o quarantine.o +obj-y := common.o generic.o report.o init.o quarantine.o diff --git a/mm/kasan/kasan.c b/mm/kasan/generic.c similarity index 100% rename from mm/kasan/kasan.c rename to mm/kasan/generic.c diff --git a/mm/kasan/kasan_init.c b/mm/kasan/init.c similarity index 100% rename from mm/kasan/kasan_init.c rename to mm/kasan/init.c