Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4537025pxj; Tue, 22 Jun 2021 02:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR85P8w4DAetJEbR7ZmcZNMYbRU272EsrZLSW5H/ZcSt/zTiMqrGw9b4X5Ui2SOcpD3vAl X-Received: by 2002:a05:6e02:20c3:: with SMTP id 3mr1957412ilq.131.1624354178953; Tue, 22 Jun 2021 02:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624354178; cv=none; d=google.com; s=arc-20160816; b=RzaIFi2oHmJetlx+avzxiIIPjNhu3LUyRoWMtv7EiysXxfifVx25uYxunhxcA8YiPa GLWqoVi3NTFxj+F0rbWcQemJdxr8jFiz2+Q/GITdjcFzP9VnbHrtFuHJJG5q26dExpvu k/7HOricJwIXDBBHl8KWGeuvXW5dzX3APmQhnGpN2K3xHSTW/h2QZzmUNbNAVYkA6M8L dV5W7ie5ytqmvO5auQzehCK6GhYfEMNhAgmiIETuLwpTkdijWCkREPJCcavKlCw8/hqf GniK8zcSHN7VzWBb7o+NQ7eQ4QbLWJGc8XgfcyRjUN3k3yPgpWmyryHuUqMu0dS0Gsc3 yHww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=E4DQbfXpC/jltQHrmKqBHkqXNz4Cwyp0eCIHowO6dsE=; b=sCyAvK2U5nJ88rN3o0uHPj6CamtjBnkdUkxVqEzyP4E3d5z3rCMzLybn8LeMuYTyqM 3csgFQ4+ZEO7zQ1COfnQfL+wg/kFqy7ENlBr3kyOGkuUkH4TvGaxEdZ0AxA9HPe4UOl4 v/bCkxeqKftQw2RclX952O5xAaUtSntMUusZe4qeVEhiy8UYqcBAsUmV+htgYyX5eZOJ XMBwQUxrZtHtI+yJraTNVRr4MuoJVuyhFdb5iH5wnHHEIS5EK3BktfWdIuavkIBcvAOC EuHPgH/rTh+u1Bs825hcg+dr05aKrk4zBtPSCzyieHYTsfOXAuPjPTmVBmTGiIG7K5TU H0hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UuHF70wn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q3si23138181jac.31.2021.06.22.02.29.24; Tue, 22 Jun 2021 02:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UuHF70wn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229682AbhFVJap (ORCPT + 99 others); Tue, 22 Jun 2021 05:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbhFVJao (ORCPT ); Tue, 22 Jun 2021 05:30:44 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E134EC061574 for ; Tue, 22 Jun 2021 02:28:28 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id bm25so22829799qkb.0 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=TnkR1SMmCajzB+CVZ2uRv3gRpu/50HYp6fQjWSVVs/R8USh71cnBeAl9PfBcEWKNUz ve8D8Y1ogGOuaYK9V3KsehUd42mmVIEYHkQufjV7o+x25YKk1K+Ddxxz9iK19x42niOO 9miMyGGY0RlZjcH+b8FJrYy+JH4uaDcnMXQJVhI55aMDYi1zqvsKRvU/qP2zJ3GVwMTR I2SlZDuRkzefix68yml7Eo/GdHgYtQf/4fRmQrZhuLYDlkGrlv+Cs/z67lxW/iFiV+Zd eIgIgJZNagDr62uz/XIUPQR9B8uQkRJNslL3yGydXS0SUcayiwqCTZv0APtWAloMGjN6 BAWQ== X-Gm-Message-State: AOAM532cKoEEMRdCmG2eWYtdMArPNr0FxXtdS0tCsXDcSlDwkMc1M+jX 6KVi2NLCDX6WFx6HZ3Q+dBRsc6VXe4z4s4r8ah9yBQ== 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.