Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp259898imm; Fri, 7 Sep 2018 21:34:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/to21EDY1JhKev7yS5zDTOvjuLwICUkYOORqo8/lJqtRx75nOrwCNlZ/Gk90G141+Gttr X-Received: by 2002:a17:902:e109:: with SMTP id cc9-v6mr11169499plb.96.1536381281462; Fri, 07 Sep 2018 21:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536381281; cv=none; d=google.com; s=arc-20160816; b=QjocSGzZT+4IKEJedNKk1lTW5JtfnMuYtI7MQ+jpxl4fi/dQ9N1360jANZUCAn+BXR hxSzLiFAKn8+bmg/Mas+KBxL3sObXj0edY8gDwA7SSw7QgM9xwIXtytX4sPQoU0GeT5G ELTSNAvT1acq6sEyEnviM87po1j047hlDCNlaRcFqdAD9m0nu7tZl/SF72pbnKcj/fZH hFLd5lOAqIVksQXRFzZcUAcNs2tlBN58J0EP2aDA33Sqt4lhj19qUhxvyG/0v2mYbnL/ hym1ZXmsH14oPhxdHCyD9v31YWuOaZxactemGVqqt5R4T2veAi3vxrH9B8g8ZKZsKm4g ii/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=AR5RJEH7Bt8sBFBDVo82zkiSv5HmJ+WSppN3IKyPjvA=; b=ojnjT1zbyEjqh7B6YdkXsPrTshaICbut5hYzxHST7sD9rwCW3mhtxD004ydbq7+DJH ScUNxZBvLcu1CqB2mq7PSwG/XShZSrQZsk05Zy1VgWMWFZDYgeE0TRTBVq4AVfG543S2 zQQwM8Rr26Ov2Po1VX0ZCELC6naxdJTVcn9ss1vrmxouJxXpv7UFAxW53RmuZEMg7Apu L5O53EQLlSjQI+NS4znjcjfk5nvCbb3ZxM+Y76wt31GrCHdrJiBeE0kYBr1ltJdBG+in AOHAyg7vBxxG78OAcHNsb5G7zL6AiCJmYWS/SdHBSOQFAmKkMsSlnsOfbkmpwzebpunf Yd3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eXlZt8Wb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b27-v6si10677337pgm.582.2018.09.07.21.34.10; Fri, 07 Sep 2018 21:34:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eXlZt8Wb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbeIHJQh (ORCPT + 99 others); Sat, 8 Sep 2018 05:16:37 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:44829 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbeIHJQh (ORCPT ); Sat, 8 Sep 2018 05:16:37 -0400 Received: by mail-lf1-f68.google.com with SMTP id g6-v6so13544942lfb.11; Fri, 07 Sep 2018 21:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AR5RJEH7Bt8sBFBDVo82zkiSv5HmJ+WSppN3IKyPjvA=; b=eXlZt8WbO+zz8GEXPt11512ZDGDytVFY5mYyj3Kz1XsxAq1JMdx/KQbGG7EHWcgCUV h0MafAsl6yBRzt10dqkiasDYnQfXiEJLYdhuvdbxyL9iXl8QPkZWpj1MgrDn5gQUij2Q 4fS6czSoHzW4iEU4ys1aOrjPj+xxW8Kyx5iAGtr3tckDOa+kIq1haeeJlyPzQl8QRJYl M/838JNINQGS6DvPa8NI9AGa605pri0nArg+a3zin3UqvXvPv0mjPoV6IP/FReLWbfVI MvMRp59cQ2pIAEq4cvG7bq4JSPsSxuM05AbiSJAVpsKVppKgqNGC02NLCNV+sBY14FUS askg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AR5RJEH7Bt8sBFBDVo82zkiSv5HmJ+WSppN3IKyPjvA=; b=fULYRzwPcLkxc0a+2NlazF3dYUT5dsz8J3J0qywWN+VAjRele/5ussjpMi1tb12ZIN yO4SbZ+WVc8weh1Xg61gkC7KMKDS6PuhzcdnOcmCDFK35xU50R/XkcSEheKlKpzVQjxF BnN+8gJe0ofqlJGsRYw9+ECjngds4EzrTTe/eYTQhLO/Uu+/bnvXD3WMJfVCA+EUFQgJ f7UtX8KTeBYKkUIKCeXpSTQmqJ0nyw5hVHCL/u6freZxdR911fcn8pm6AAY8iYBdgE+I 7WuUl2ERFoj6b7fEIhOOmOnX2rjj27dH1ie5Sj7awQCUYarhgUxEA2+6q/I2Xemn+VSB bRwg== X-Gm-Message-State: APzg51D4JdZiQphN3iFq7KpoPTAWlEToj93sfxp06XbrmChN7vZmskXo wRZGqqgigZJqSeOJXdya79WkIJaRc9s= X-Received: by 2002:a19:500f:: with SMTP id e15-v6mr6583863lfb.71.1536381137300; Fri, 07 Sep 2018 21:32:17 -0700 (PDT) Received: from [192.168.10.160] (91-159-62-202.elisa-laajakaista.fi. [91.159.62.202]) by smtp.gmail.com with ESMTPSA id s193-v6sm1589769lfe.50.2018.09.07.21.32.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 21:32:16 -0700 (PDT) Subject: Re: [PATCH] asm-generic: bug: add unlikely() to BUG_ON() To: Arnd Bergmann Cc: igor.stoppa@huawei.com, linux-arch , Linux Kernel Mailing List References: <20180907192119.4931-1-igor.stoppa@huawei.com> From: Igor Stoppa Message-ID: Date: Sat, 8 Sep 2018 07:32:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/09/18 23:41, Arnd Bergmann wrote: > Could you add a comment about -Wmaybe-uninitialized next to the definition? > Otherwise that is easily lost. > > Also, I see that the file has two separate definitions of BUG_ON(), and the > other one does have an unlikely() in it already. Can you change both > to do the same thing with unlikely() or not unlikely()? ack -- igor