Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1179843ybl; Fri, 30 Aug 2019 13:10:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCns5FMYwz5xQv4QmpPwHJRxEBjYfT6nrjUre7O1xj22zU+VVHWBXbekWGE6U7YCe3VJcY X-Received: by 2002:a17:90a:8b98:: with SMTP id z24mr314554pjn.77.1567195814469; Fri, 30 Aug 2019 13:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567195814; cv=none; d=google.com; s=arc-20160816; b=09IPfMq3V9MXw/DztycZnzGGyDJoEtNOYD1oAGiHreBtJxdj9kyLtv409N1rndSmRI NQv+SlkqoY65yc2ry0NeU3/APyiIWCEWbTUxrhZewbE7gd/Yv63R77Zewl8v+d5E6BOS Ub6p1gLygd9KAdgCLeiQzo1ZS5Ew0nNoumv+Msx1VdOAoIo01Cp5LDx+6EXr+O4Gz+c1 6s4U/ikpyBAefyMtyGtbB7zh8tvH2h5luSRAD0sl/W5Dwkm+veDKJKXhoiN7bUeFLdVY brVo9lVoEv7vO5Dbv9P8Wj+wMFauvaEkXWbA/AUTgPpd0NE9+vwEDUZ0+gSzan0Wt+rE /oFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=JSz43+HaqBFF1Ng0B+1T6nx7xlLwk6j4lqf7D5VIcws=; b=KuviPZErpy8kcJQ+9SmamvR4Pkw+awyo19JDM+Z2TiHodW1H0sDY0rGuJpjHgixa4q 2Xf20qCCzP9j1tulZXzf7PHrBe1Nmtd6B9ehs3QIX+N0gMiSmVGXRQISk7+noRGBLpLy /7+DpDiIVPP7MNVWT9Zf7DAgfHRzAmacVBLdKgbq6sA673ZdJUCwWI6vX5GxL3z0jqP0 ktpBwr7/7Y7uNl6uWG0kzCs8i/CGF8ynosUjwZO3OWIj68Ws1ujiSIb9udiem7WkBED/ tV1NeQKVWNyyNZPq8/oE6wQo4lSBcYWMXc0UG9y38DNV+XhoRVGqAjfd0oWwYeTigS04 MUgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si5347767plr.17.2019.08.30.13.09.59; Fri, 30 Aug 2019 13:10:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728161AbfH3UJI (ORCPT + 99 others); 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-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