From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 715CAC2B9F4 for ; Tue, 22 Jun 2021 09:30:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E81361289 for ; Tue, 22 Jun 2021 09:30:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E81361289 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8eplmwSpaQAeyer8pgrK4AoDIuFezrXvNdL75rxkVDo=; b=B7k/ANSNNYOrlu noChdOl26ncTVJXJdWXcyBOAG36z97mQccXH9Tr02Y2R+LBW3lEyODx/OUmm8WHEBzKY9H+5s6cCA AFlX91rj7la+Wy4gZF1cIcQ7+vAPoBsKGRP2Ba5nho99gTTGQcpv/0O3pKha/kX6SFmmruK9Pf/Fz qXsSsybhGHBlvGPKLkhNlXpWQ6RYXthvxN5z4WbVo1hZwb0vy6M6rJPqJ1Q5dtgAatUhCtiwoccI2 DCPD2ceUPbl/zFIPFjFVqhYQsavwY3h47e9rwmju1ZdNH+e7c6yVFbOGzcVI3zDz9PlUASp6Oj1HD c7frI9GRMhZqFEFy/UTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvchw-006P2d-Vk; Tue, 22 Jun 2021 09:28:37 +0000 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvchr-006P0X-TG for linux-arm-kernel@lists.infradead.org; Tue, 22 Jun 2021 09:28:33 +0000 Received: by mail-qk1-x72f.google.com with SMTP id o6so2364348qkh.4 for ; Tue, 22 Jun 2021 02:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E4DQbfXpC/jltQHrmKqBHkqXNz4Cwyp0eCIHowO6dsE=; b=UuHF70wnNI3ul+ZHhqnG6aOsBavnT4oLVZB+yfHB/nEC0ISs1e1rg+GAlcDJncL/Np tR9CBRszzXT9NkQpQ7rnJZaFEwYtKPcLqx5uH+0gcWQ5dgg6eF9burvSkSFUTArQNxo9 bmQhvemRjqXGhPOW80wdSpGuA+BGQdiSOza8AI77rD/GjqmozYM2kQpJOrcxvSy6q95h GDEDzMT2Mex2wl6yqQvb1A1r7msSftqBdCkUTW1ONCuoZP14B/FB8qRhQibg9ExwdxjU KjymMi9bWIdb7RjBEkVaaWZOHlSYlwwVwYhkImS8j6ebeIIOH0mjrQD/yNbuPDmObCdh 1sNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E4DQbfXpC/jltQHrmKqBHkqXNz4Cwyp0eCIHowO6dsE=; b=Ul7q9yM62ndSQaXe/s3Y+knFb9gLyC+cyUd4GWPUJLK//8wQGH6tacpBNdJuKUa1Im K7SRKWdy/3GvzPDgzfoZG+ouCc/k8rZ9WUdi1YmD4nHN7Qw0w+JVrgehDEVBWxfluFCA LDUmarNyuz11pqgPowOwyVCIXzzOzMjji4W8Sr3LJv2XfSOL2+ZCFvc0hDYLdCF3bQc5 E+lCPvhvMguZMq+7AcdZYB5N8tOX3Ts1TFHITcmGMo4hJxU12Tkxc0mpbI1HXUVa8oLY xLDQxFePOLJHuAbzDYVzhMGiBlemEJXh7nbOR7jKYma0orDtE2mPO8EXKqkV0afQIKwI Czww== X-Gm-Message-State: AOAM5329fDcbYOyq1WZZqXkbzwxfZx7ekHiuH96b95C25jiykyVvZ2Bw F8pmeIyqzcacPI03WY211CXLRcjtT26Z8YX8GXWfag== X-Google-Smtp-Source: ABdhPJzpBHPyht+lAjdu5BHc9KbrkBS1r7WeeCuc7EkB1p9/MtfIKFKON+Lj/E/4fUHj/Tk6lQGR93DsQjYoUZHYv/U= X-Received: by 2002:a37:670a:: with SMTP id b10mr3184065qkc.352.1624354107698; Tue, 22 Jun 2021 02:28:27 -0700 (PDT) MIME-Version: 1.0 References: <20210620114756.31304-1-Kuan-Ying.Lee@mediatek.com> <20210620114756.31304-3-Kuan-Ying.Lee@mediatek.com> In-Reply-To: <20210620114756.31304-3-Kuan-Ying.Lee@mediatek.com> From: Alexander Potapenko Date: Tue, 22 Jun 2021 11:27:51 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] kasan: integrate the common part of two KASAN tag-based modes To: Kuan-Ying Lee Cc: Andrey Ryabinin , Andrey Konovalov , Marco Elver , Dmitry Vyukov , Andrew Morton , Matthias Brugger , kasan-dev , LKML , Linux Memory Management List , Linux ARM , linux-mediatek@lists.infradead.org, wsd_upstream , chinwen.chang@mediatek.com, nicholas.tang@mediatek.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210622_022831_985303_E1C30A67 X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > diff --git a/mm/kasan/report_tags.h b/mm/kasan/report_tags.h > new file mode 100644 > index 000000000000..1cb872177904 > --- /dev/null > +++ b/mm/kasan/report_tags.h Why don't you make it a C file instead? > +const char *kasan_get_bug_type(struct kasan_access_info *info) If this function has to be in the header, it should be declared as static inline. But I don't think it has to be there in the first place. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel