From patchwork Fri Nov 5 23:08:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Collingbourne X-Patchwork-Id: 12606105 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9395C433F5 for ; Fri, 5 Nov 2021 23:10:20 +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 791D4610D0 for ; Fri, 5 Nov 2021 23:10:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 791D4610D0 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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:From:Subject:Mime-Version: Message-Id:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=1fj/kDZXQOjPx1sf3yymZ6xZPalFk/5CL0HmQdI3xhc=; b=eqP gQe4TNL/xB2ENSys/tcXs6FrMA0ZCVSZyY4Ammnxh96B4/uMNfJOG2VFWmhEtXHY3jTSU53MplXKd GtqR0jQp1vcqO0/MnLfMEYpJDbkn9MWADdBHc4WidjT0npdL1Z3Mfi1n4AgYBOn++yPp2bjXKdeAh CPtev32OiO0KLvEMZSPkRgpJlOM0PA1e9AJq9cEsR5CVxo7IRAhLEnCbVTkqh1k7q38qvJTOZhXhP ufdonw/GzzpfTze7fZ8CFSN4eNYuPILP8ILjPhJNQHzboaUAGoqNQTVryq5xRkA6Ysyw1JKR5exi2 Q+GH4hLkr5e9KE075RJwtQMKy5zGFgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mj8K9-00CR8E-Nl; Fri, 05 Nov 2021 23:08:41 +0000 Received: from mail-pj1-x1049.google.com ([2607:f8b0:4864:20::1049]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mj8K6-00CR7v-87 for linux-arm-kernel@lists.infradead.org; Fri, 05 Nov 2021 23:08:39 +0000 Received: by mail-pj1-x1049.google.com with SMTP id a12-20020a17090aa50cb0290178fef5c227so2423053pjq.1 for ; Fri, 05 Nov 2021 16:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=Qkt9Y+RFsSDzpEdp6cfIIHTJ1IygI3+4vF1wEKiOTf0=; b=IYcEvacJEvWvZWUzn1T/NZYYGu4rH+vyqjhxuSA8cVy71NIq08IFuD19SG1pHaAX1B hvv2/5Mh/Eo9fZjbOGbjRGy1Du5NbQ6aj4PMQ+ttBvOKKxK9+jKG4A9lwN4CbtT28T+C /Cq0ZeB2BzRjdXi7LCnGFGRhIasn1MJfzDcS//onMSLBaUpq1wNdDtuhTlDrlqYXIAL8 7Q24j1DyLswQztKOuHPEdmAwg79VJsLTu73ngrvP9nIxBuz0rLZPm1hcBykEv55vCJLV x+JEXnI5J8B0p8GeVMasw9x1a+PZ7XvY0nRRu59N+9UNAZjrXkOJhg0WkFomm/qMUvow lg/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=Qkt9Y+RFsSDzpEdp6cfIIHTJ1IygI3+4vF1wEKiOTf0=; b=d8yD0b0E5WX/sOR7F654WUyzVAtDA854Be1exlDGeN/u3G9Je7ulb0zrA1J7Et3cfr alAlt14Og3/LdKtNM5FxvmcBu/0ddhdaAxTG2VEoF+Rq2QuNkrXpBIhh5JvtQKID+hle GMeDyJQTkdhzbaTZoNlometecDK0nLFmZmnLfcsvhbM9e5VMzDQAA8joP1m8T/p7iMCW BBKAWsS0fjyxajj/FYJSmr9UgO10vYkUqppJceGqLIyWUx19m+DtZFfp/wRleZ1inhf2 njOFp7j7fKW8Geq144wW3f4NrxQy1P5jnv1eFAqHmSXc48mV+Q3abG6RToZ+EycvAkxh TMUw== X-Gm-Message-State: AOAM532P4Q7li2SmoNXFg1TIbNhDfNckSAvWuqmFxZsfmx2FiPVSphxY nwq6Z1uLry7oVLsFw/hw2RAdtrg= X-Google-Smtp-Source: ABdhPJxV1H/HUrTNptXhKx9UYVdP36qNS6LBo4SAfgnmCciZaMsYcEPDz2oht7GlJb3Mg+0oOq0MTHk= X-Received: from pcc-desktop.svl.corp.google.com ([2620:15c:2ce:200:4c36:8ac6:4984:f205]) (user=pcc job=sendgmr) by 2002:a17:90a:8049:: with SMTP id e9mr33055896pjw.229.1636153716312; Fri, 05 Nov 2021 16:08:36 -0700 (PDT) Date: Fri, 5 Nov 2021 16:08:29 -0700 Message-Id: <20211105230829.2254790-1-pcc@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog Subject: [PATCH] arm64: mte: change PR_MTE_TCF_NONE back into an unsigned long From: Peter Collingbourne To: Catalin Marinas , Vincenzo Frascino , Will Deacon Cc: Peter Collingbourne , Christopher Ferris , linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211105_160838_309345_E2ADF57C X-CRM114-Status: GOOD ( 12.27 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This constant was previously an unsigned long, but was changed into an int in commit 433c38f40f6a ("arm64: mte: change ASYNC and SYNC TCF settings into bitfields"). This ended up causing spurious unsigned-signed comparison warnings in expressions such as: (x & PR_MTE_TCF_MASK) != PR_MTE_TCF_NONE Therefore, change it back into an unsigned long to silence these warnings. Link: https://linux-review.googlesource.com/id/I07a72310db30227a5b7d789d0b817d78b657c639 Signed-off-by: Peter Collingbourne --- include/uapi/linux/prctl.h | 2 +- tools/include/uapi/linux/prctl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/prctl.h b/include/uapi/linux/prctl.h index 43bd7f713c39..de45fcd2dcbe 100644 --- a/include/uapi/linux/prctl.h +++ b/include/uapi/linux/prctl.h @@ -235,7 +235,7 @@ struct prctl_mm_map { #define PR_GET_TAGGED_ADDR_CTRL 56 # define PR_TAGGED_ADDR_ENABLE (1UL << 0) /* MTE tag check fault modes */ -# define PR_MTE_TCF_NONE 0 +# define PR_MTE_TCF_NONE 0UL # define PR_MTE_TCF_SYNC (1UL << 1) # define PR_MTE_TCF_ASYNC (1UL << 2) # define PR_MTE_TCF_MASK (PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC) diff --git a/tools/include/uapi/linux/prctl.h b/tools/include/uapi/linux/prctl.h index 43bd7f713c39..de45fcd2dcbe 100644 --- a/tools/include/uapi/linux/prctl.h +++ b/tools/include/uapi/linux/prctl.h @@ -235,7 +235,7 @@ struct prctl_mm_map { #define PR_GET_TAGGED_ADDR_CTRL 56 # define PR_TAGGED_ADDR_ENABLE (1UL << 0) /* MTE tag check fault modes */ -# define PR_MTE_TCF_NONE 0 +# define PR_MTE_TCF_NONE 0UL # define PR_MTE_TCF_SYNC (1UL << 1) # define PR_MTE_TCF_ASYNC (1UL << 2) # define PR_MTE_TCF_MASK (PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC)