From patchwork Tue Nov 6 17:30:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 10670897 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 1702B1803 for ; Tue, 6 Nov 2018 17:30:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 021562ABBD for ; Tue, 6 Nov 2018 17:30:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F30212ABB5; Tue, 6 Nov 2018 17:30:52 +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 94E142ABBE for ; Tue, 6 Nov 2018 17:30:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389670AbeKGC5F (ORCPT ); Tue, 6 Nov 2018 21:57:05 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39561 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389676AbeKGC5E (ORCPT ); Tue, 6 Nov 2018 21:57:04 -0500 Received: by mail-wr1-f67.google.com with SMTP id r10-v6so14465053wrv.6 for ; Tue, 06 Nov 2018 09:30:48 -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=uFXbDXBBL0TkI32ZOkP12VFoaipD/tLiCoQgwqz5odA=; b=Ml3obd1uR8RA+9+kPyhYpuUlNKibYa2CRfEbIgyyBjJQQsxI6O4jyB2v5aISRpt4Fb rj4kSRubmtB2gfIcZerb9slf7GTBlw5Tbp5c6iugUfnuzQC3XsITzLENuD6X3Z/YVueS bl9A1RcdoBcA5tpBEPGGsPvphoq47rYDLEthUDE1Hiqg/OBDYoq+iQomOZZipqa6qEqA gh6W9WBQf63nRue+Lp+Lr0m7GGRxT+OuaVzn4d2W9CtavCwPeOK+zHxnbC181eLpQfwB irf9RttaDlwEot1Pj/F6sKVqzuewyv/+3sbuY8ZQkS5ntsRoTJp/p4MtvWOF16tdHpIJ 9hKg== 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=uFXbDXBBL0TkI32ZOkP12VFoaipD/tLiCoQgwqz5odA=; b=MxxbqDfh+cqC4X9XszEejR1QHg0MKo9QiUGToM7QT4Q0Ejwhn0VL2Yh7nLAvUFVP4H boVMoyaHW9xWJF98Eu/nFDy23iiY89MdiVK3iUPMeMT77Q0tLopWgyr5s/gOgtQfQaz2 C9ozvVRkYmC+EjXLwUIUfajGA6zMXKByz85cA3tO6ZaWjNw6r0I3hzFZlXn1CRmmaGEG AAv3w0ki8K3ffD4Dx1AReXZBDPyiauQ/PUiPLosVesS2Ys57uv4f5+aBGQ199SvMkr27 L+rvaweMSp1sY3I1rf4zxotcrXtmW3wOj+bTsYa0GresTujPRxdqrBd09ob70jRa3ycl B36A== X-Gm-Message-State: AGRZ1gLk7RXXIMCTsf3FmzLdjITSY6hVjrx1AmiDFaov5Ab0+S7/qk0k DFsUrryBz6yYuuhYC00BdtDDeA== X-Google-Smtp-Source: AJdET5c+bHFl6qHCJUo73l2cQqmAl8DcYcsx+G0rN/ISh1Rrs2TxDP7+TGu2bV1DVX4z9B3j3X+3mQ== X-Received: by 2002:adf:a31c:: with SMTP id c28-v6mr24695147wrb.195.1541525447608; Tue, 06 Nov 2018 09:30:47 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:84be:a42a:826d:c530]) by smtp.gmail.com with ESMTPSA id z17-v6sm16328416wrm.65.2018.11.06.09.30.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:30:46 -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 v10 04/22] kasan: rename source files to reflect the new naming scheme Date: Tue, 6 Nov 2018 18:30:19 +0100 Message-Id: <05fbfe73d79159af71bfded4d3b46f8055329e1a.1541525354.git.andreyknvl@google.com> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-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