Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp55709pxh; Thu, 7 Apr 2022 13:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt/ibhstqBJK7cA6LldeDwZeBs5UqM/nK1gVQeLignSA25vzfKcck1VnyfXShE8qkB/3sp X-Received: by 2002:a17:903:1cb:b0:154:4bee:c034 with SMTP id e11-20020a17090301cb00b001544beec034mr15547616plh.155.1649364592456; Thu, 07 Apr 2022 13:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364592; cv=none; d=google.com; s=arc-20160816; b=umaoVmCnJRpwgAKcg6HOG9oM6qEnxCU9L/wufUDa9ngdBkJRbEoqH3UtucXAETKebb 4hBb8YDWR2TOTJdMxGD/bFYX9sgcAz+GOaD7tN8BW50vx3iwyrkpcdKW77LlNoVSJ7Vi Pv2vKLzEnN/muRMJ4YhBkw0muuIRk3d84IkeV+jGrPxBBoi+vrBny6d8BD2Qs1rFffHk Tkh9FCk8rPdtOwQCru2EiwXc9ADOpl5+Ktn/Ancl7SUOGw70HUGhah0cRYEtQEizwQKM e8kCPDDjKhohsKR81a+hgysh5MaJ11wihJSM/JAZPpB3o5U5G9I+ozEcDpHFjS4Fk8PS eowg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RKada/syRdNLHr4WO/ASA7jzsH+BuRSFKa7ozmTSlP8=; b=Jm36QSasUoXfujwux97i898/TzCgrtEZJweKuHYzq44fx09XazktR8lzhA5G3mWw3f p21ZwZ86h2lahviLOyupRh72FtjvqwVMYAY1UJ6M/02Vws9b5TlUTywciexuFQL5SRQ7 AC6p3vTbEDs1NmMzmrF1jFEnaEz5XZ25m1z8X9mOeR8boNaKqc+Oj52CgM7OE4iENB+z gMaEOdGtloVnqDe3qA7l6N9nFHR4vBN1Pwk51rxwgQX0mEB7ozKxm7sqshrWtmRIlbZh iwT/Pr0S2fQJyWf9P2dQctRLJzAGRP1wVQyFN6DiDf2f88N1QHGLOWroGOXzZPlbjAxT RL5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Z4SrfJi1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u11-20020a17090341cb00b00153b2d165b2si715726ple.442.2022.04.07.13.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Z4SrfJi1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 37FB03DE715; Thu, 7 Apr 2022 12:55:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345965AbiDGRMx (ORCPT + 99 others); Thu, 7 Apr 2022 13:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346001AbiDGRMb (ORCPT ); Thu, 7 Apr 2022 13:12:31 -0400 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACCA41E9637 for ; Thu, 7 Apr 2022 10:10:29 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1649351427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RKada/syRdNLHr4WO/ASA7jzsH+BuRSFKa7ozmTSlP8=; b=Z4SrfJi1IGw71HQV0HTQYn56ug6Z0kofWnjvTZo2iPvxqU64LoNhJVplJ5jFu+qEAbkYmk N3DtZ2QlQGuJZ2Suddbcc68RzATXbn5Kvs9psFJWBnnTmlr0P5HMnFK7ffrD0YvmCS7AqZ 6RgTwrxuq3IFOaz3KM8s/pAoHSHFs6M= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov , kernel test robot Subject: [PATCH] kasan: mark KASAN_VMALLOC flags as kasan_vmalloc_flags_t Date: Thu, 7 Apr 2022 19:08:37 +0200 Message-Id: <52d8fccdd3a48d4bdfd0ff522553bac2a13f1579.1649351254.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Konovalov Fix sparse warning: mm/kasan/shadow.c:496:15: warning: restricted kasan_vmalloc_flags_t degrades to integer Reported-by: kernel test robot Signed-off-by: Andrey Konovalov --- include/linux/kasan.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/kasan.h b/include/linux/kasan.h index ceebcb9de7bf..b092277bf48d 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -23,10 +23,10 @@ struct task_struct; typedef unsigned int __bitwise kasan_vmalloc_flags_t; -#define KASAN_VMALLOC_NONE 0x00u -#define KASAN_VMALLOC_INIT 0x01u -#define KASAN_VMALLOC_VM_ALLOC 0x02u -#define KASAN_VMALLOC_PROT_NORMAL 0x04u +#define KASAN_VMALLOC_NONE ((__force kasan_vmalloc_flags_t)0x00u) +#define KASAN_VMALLOC_INIT ((__force kasan_vmalloc_flags_t)0x01u) +#define KASAN_VMALLOC_VM_ALLOC ((__force kasan_vmalloc_flags_t)0x02u) +#define KASAN_VMALLOC_PROT_NORMAL ((__force kasan_vmalloc_flags_t)0x04u) #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) -- 2.25.1