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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 DED96C2BA2B for ; Sat, 11 Apr 2020 12:11:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A73252166E for ; Sat, 11 Apr 2020 12:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586607114; bh=X2BENBbLy6MCfSpp22+T3ekykdiJL3kEpY4A+B45mYk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BJ5vPqPdjlUgmy1MitizNvGQ+1GHa7RmK5p2+sGNmyn+99pQt+YWzKiWOZOk8UeyQ IdANSI+0QnjQ5HCHlxdhjyqLFWK94YxJUD0PPqDBOhZICQm1XKX+vX6LYzKdN2FPyx NUX6KkSspB4/Rcy+9n/3bt/GFHx3D8s8rmrxjseg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726702AbgDKMLx (ORCPT ); Sat, 11 Apr 2020 08:11:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:44088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgDKMLt (ORCPT ); Sat, 11 Apr 2020 08:11:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 379B9216FD; Sat, 11 Apr 2020 12:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586607109; bh=X2BENBbLy6MCfSpp22+T3ekykdiJL3kEpY4A+B45mYk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NRaP1VJ/1YTW7lzKcp5kN7ig45WW1z6IeYjq1RJK4LARDNqg3avLvcc0wWBkMQYs4 h8ETxQ95hpxqHtS+2rQS3A8h8kUyv3EStF4XJA0/3DbMcrlfj6M0GLAGTHOpwmEjzU dFvd+V7e4UWcwQWuRfqfrskfgNvkMxaXO8ZZu9/w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eugene Syromiatnikov , Mathieu Poirier Subject: [PATCH 4.9 11/32] coresight: do not use the BIT() macro in the UAPI header Date: Sat, 11 Apr 2020 14:08:50 +0200 Message-Id: <20200411115419.838338654@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411115418.455500023@linuxfoundation.org> References: <20200411115418.455500023@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eugene Syromiatnikov commit 9b6eaaf3db5e5888df7bca7fed7752a90f7fd871 upstream. The BIT() macro definition is not available for the UAPI headers (moreover, it can be defined differently in the user space); replace its usage with the _BITUL() macro that is defined in . Fixes: 237483aa5cf4 ("coresight: stm: adding driver for CoreSight STM component") Signed-off-by: Eugene Syromiatnikov Cc: stable Reviewed-by: Mathieu Poirier Link: https://lore.kernel.org/r/20200324042213.GA10452@asgard.redhat.com Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/coresight-stm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/include/uapi/linux/coresight-stm.h +++ b/include/uapi/linux/coresight-stm.h @@ -1,8 +1,10 @@ #ifndef __UAPI_CORESIGHT_STM_H_ #define __UAPI_CORESIGHT_STM_H_ -#define STM_FLAG_TIMESTAMPED BIT(3) -#define STM_FLAG_GUARANTEED BIT(7) +#include + +#define STM_FLAG_TIMESTAMPED _BITUL(3) +#define STM_FLAG_GUARANTEED _BITUL(7) /* * The CoreSight STM supports guaranteed and invariant timing