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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 DFFD5C3A59B for ; Fri, 30 Aug 2019 20:09:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C18C123430 for ; Fri, 30 Aug 2019 20:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728111AbfH3UJI (ORCPT ); Fri, 30 Aug 2019 16:09:08 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:43103 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbfH3UJG (ORCPT ); Fri, 30 Aug 2019 16:09:06 -0400 Received: by mail-qt1-f195.google.com with SMTP id b11so8945212qtp.10; Fri, 30 Aug 2019 13:09:05 -0700 (PDT) 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=JSz43+HaqBFF1Ng0B+1T6nx7xlLwk6j4lqf7D5VIcws=; b=Te7I4oItEgvT+NWb9rFaghIkBtJvGp8XCCUvpDl4IwCW8LYDWxbA3FeYJykXq3yrQr RgClfkVFNOdsTeIzN0yicaH/IotS4Z5L7j/IGTUliNQiEfloHD8GwHPUhYpmay9o3ddT XCQD6rxvDHnRN32LFb03WXeWPiqwfIzUhr8TLXOkWEujG0QOBa1aWjqgBunqVWXFT3sD kxkd22YEXS9XOQFvnYP4pJVcSpu7f8LZOZbd6pk7MO71uuqrgos4ME3DWYa3xdLBKoMy krep2Cnv0DLF6Vf2ZnOM3kISLWjeXLjQfxjCjH1TjXe/0Knf8SWL5Bh+VsHGeetyHu3l shBw== X-Gm-Message-State: APjAAAXpKUE5ka3OraJ/JA5Qf1Cie2+/9bopAdIo1ISdHoFCqfKbcJM3 qIj56TYcnDVWqFx6+ZWUo04cOGpijY58bBSbGpE= X-Google-Smtp-Source: APXvYqxuaGEEyWbbVoV2B3tqVUOjxwizqZzgkNMis/E8MNgJ0bdU2Nj37/z0UlOREhwaxP3xoIfFO3LThACiGdB/jtg= X-Received: by 2002:aed:2842:: with SMTP id r60mr7786550qtd.142.1567195745253; Fri, 30 Aug 2019 13:09:05 -0700 (PDT) MIME-Version: 1.0 References: <20190828210934.17711-1-efremov@linux.com> In-Reply-To: <20190828210934.17711-1-efremov@linux.com> From: Arnd Bergmann Date: Fri, 30 Aug 2019 22:08:49 +0200 Message-ID: Subject: Re: [PATCH] asm-generic: add unlikely to default BUG_ON(x) To: Denis Efremov Cc: Linux Kernel Mailing List , linux-arch , Kees Cook , Andrew Morton , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 11:09 PM Denis Efremov wrote: > > Add unlikely to default BUG_ON(x) in !CONFIG_BUG. It makes > the define consistent with BUG_ON(x) in CONFIG_BUG. > > Signed-off-by: Denis Efremov > Cc: Arnd Bergmann > Cc: This makes sense, I've applied it to the asm-generic tree for now. Two concerns though: - adding unlikely() can cause new (usually false-postive) compile time warnings to show up in random configurations, so we'll have to see what the build bots think - Kees Cook has recently sent a series for asm/bug.h that was merged by Andrew Morton. If there are is a conflict with your patch, it may be better to merge both through the same tree, either linux-mm or asm-generic. Arnd