From patchwork Tue Nov 27 16:55:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 10701033 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 96167109C for ; Tue, 27 Nov 2018 16:58:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FE3D2C455 for ; Tue, 27 Nov 2018 16:58:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 705D62C45A; Tue, 27 Nov 2018 16:58:26 +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 1CF542C3EF for ; Tue, 27 Nov 2018 16:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731542AbeK1Dy3 (ORCPT ); Tue, 27 Nov 2018 22:54:29 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35191 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731521AbeK1Dy1 (ORCPT ); Tue, 27 Nov 2018 22:54:27 -0500 Received: by mail-wm1-f68.google.com with SMTP id c126so22906206wmh.0 for ; Tue, 27 Nov 2018 08:55:56 -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=9dHZ8S+aXQverKkY9zPXDntt+u3jEBNyQXkWLj8HFag=; b=h4b6yJLum0eMnzXMvBzkeSRQ8LHm7k1FjgBW2udsyFDjw+uZtUe6MkbTPWyvgw2RIq B4gc1vfeKlBDo/vrTNe8s7rCUXIB36UrMpV8+SebqCgnHfUgzULzwYjNnZ2+UjGbgj3p +8KAMsOBjeqw3GFRTxskIkWm4zjf3iPC7H6DvYaJEXdPlX1AGzWlbYqr6n6+Pg8GBdKb 8Z7/tmDjexFinDc5Q5DseAbVzZ6G2/DX9qR0qM2XvQEBe1qUiiYK42LoCU5ztSenxHBo WNNToPCtNyYpUb6GVr1vViuXPcoQpSaOQrcdHdJUf66asvaUUzfXyy1Q2A/snH8qQdHp qsGw== 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=9dHZ8S+aXQverKkY9zPXDntt+u3jEBNyQXkWLj8HFag=; b=szw4nix4964PQExs++O7JuuX0JiOJZ+LuG3T/VocvKr6A50nriP2DCfN3sRezyXD3m mF41I3pqHBWxwpwD2WD+Y+7G5B3wce/g32UudfLUyQ8EbYmMCAXUFY5Zqx20eLwe6QEo iR9n1iJeHuraDF71Eu/7eSeXcL5SK2UuL3dnMPlh3Idj93OPuJEtkJ3ZrSYZfR0bUpIe g8XnivMUnh2TcIP0BddnGBzW/R5LB8Iyd5oBVwO/LQH9Yh/ydmM/7UNysoqKX69HO+Xs MJocaszsqNsK3kNyn4puQko9+PPzC9OrlGKOafMZh2x9OfdvVJa3kIJxxeYbfgBeYL7n 8RGA== X-Gm-Message-State: AA+aEWawhAeqe3Zz5qUgb7uAw2UjGGOME/J92rK2FYj/4DL/SqKsTlOv ++Tz19+AjKVIxX91rQXUFqm30w== X-Google-Smtp-Source: AFSGD/W+Kasr/UmYVWnUYOlOX9N6HnDivsR1UWtpolJAvkPPDE1ylEorpdF9y76ljI7/gq7RsZ2ZaQ== X-Received: by 2002:a1c:c2d5:: with SMTP id s204mr18111130wmf.144.1543337755358; Tue, 27 Nov 2018 08:55:55 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:3180:41f8:3010:ff61]) by smtp.gmail.com with ESMTPSA id k73sm6383099wmd.36.2018.11.27.08.55.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 08:55:54 -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 v12 04/25] kasan: rename source files to reflect the new naming scheme Date: Tue, 27 Nov 2018 17:55:22 +0100 Message-Id: X-Mailer: git-send-email 2.20.0.rc0.387.gc7a69e6b6c-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