From patchwork Fri Jan 1 20:27:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 356126 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, 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 87E7CC433E6 for ; Fri, 1 Jan 2021 20:28:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BCC322228 for ; Fri, 1 Jan 2021 20:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbhAAU2q (ORCPT ); Fri, 1 Jan 2021 15:28:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbhAAU2q (ORCPT ); Fri, 1 Jan 2021 15:28:46 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18812C0613CF for ; Fri, 1 Jan 2021 12:28:06 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id i24so20900814edj.8 for ; Fri, 01 Jan 2021 12:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KEUZAZZ4i9ywnVtXKtjk7HT5a3MIB0wrzjbV5kaLo0M=; b=RDFfaRrnPxdXtI5y+zOu0/CtsebXIzGJ6cvdh+kPgfRQBDe4Tx0uCZt2JkDM7RPhIM N8T/EpxwgQJdNV6eNxf9fuo7QaUs6yU5mCFC6j1R99VCUOxEK39aa0XZZQ7JIzYP2NWz LJGnKfstGPz4KZPrHhTBuWepVwckJxub5RIN52FsxLK2+CaSuEyUJA24QiPMwVXmbnMm u9k24fJmYooeluWfd7Yruw9XhwGxJUd8Sys51P7kMZ6LIeryCAiapydk6h3vtaGxypmQ 1iSaoQlIVdmTBlTpFkTOjNJ0H0W8to2RtCL4OR/qC9HUIVvkCkDopSeCt8piJI2aFF7Y YtOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KEUZAZZ4i9ywnVtXKtjk7HT5a3MIB0wrzjbV5kaLo0M=; b=toYMZeKGfU2Ul3KQdFOQ1dVqPeq7k8xg5AyAKlVjIL5rd6iYO0frQKdu0v9kA6z2vy S/evOUtWV/ysd0IleH9Ie6Bu19L+LWw+X8UHns2A5jU9jhX05dD/A5GMEhQ9BfHw38NG iELcePup3hlR0bLxInEqsae/DT/ZATF2dYn/yrV7UaRBJUFLsgJHGlYPot1nBx/rMvA2 zt+/DFwU4H07blc+Dp6AIsKc/0HQY5CW/EtE0co1ePpNN4VTj9v7H56wDPECyvJy99Ty J5UYJiKLmAKn5NFmpOqKpLfEpsdUrzXZnC0QAxaIrvSwTLbvPQsuQPEngXAYD9zO7QYp 6Rcg== X-Gm-Message-State: AOAM532Atr97H835Ns9oCacN8JrZ9VtGQYSq6WOdyyQMtuI2C/o80pzQ 3C8y3ZgNcK4wGZgA/4+2xwg5c4AhZU4isg== X-Google-Smtp-Source: ABdhPJxx+rYpj+HrVdsE3Y8hcnFslCllxcw02NmDTQoffkMnTgIbUAbVCC+n25Io9m6q2EoJDARcYg== X-Received: by 2002:a50:b223:: with SMTP id o32mr61457902edd.79.1609532884811; Fri, 01 Jan 2021 12:28:04 -0800 (PST) Received: from localhost.localdomain ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id ld2sm21135378ejb.73.2021.01.01.12.28.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jan 2021 12:28:04 -0800 (PST) From: Petr Vorel To: stable@vger.kernel.org Cc: Arnaldo Carvalho de Melo , Greg Kroah-Hartman , Sasha Levin , Rich Felker , Peter Korsgaard , Baruch Siach , Florian Weimer , Andrew Morton , Petr Vorel Subject: [PATCH 2/2] tools headers UAPI: Sync linux/const.h with the kernel headers Date: Fri, 1 Jan 2021 21:27:58 +0100 Message-Id: <20210101202758.28291-2-petr.vorel@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210101202758.28291-1-petr.vorel@gmail.com> References: <20210101202758.28291-1-petr.vorel@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnaldo Carvalho de Melo commit 7ddcdea5b54492f54700f427f58690cf1e187e5e upstream. To pick up the changes in: a85cbe6159ffc973 ("uapi: move constants from to ") That causes no changes in tooling, just addresses this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/const.h' differs from latest version at 'include/uapi/linux/const.h' diff -u tools/include/uapi/linux/const.h include/uapi/linux/const.h Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Cc: Namhyung Kim Cc: Petr Vorel Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Petr Vorel --- Fix for previous commit (for stable/linux-5.10.y.). Kind regards, Petr tools/include/uapi/linux/const.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/include/uapi/linux/const.h b/tools/include/uapi/linux/const.h index 5ed721ad5b19..af2a44c08683 100644 --- a/tools/include/uapi/linux/const.h +++ b/tools/include/uapi/linux/const.h @@ -28,4 +28,9 @@ #define _BITUL(x) (_UL(1) << (x)) #define _BITULL(x) (_ULL(1) << (x)) +#define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) +#define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) + +#define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) + #endif /* _UAPI_LINUX_CONST_H */