Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755227AbbHKGdi (ORCPT ); Tue, 11 Aug 2015 02:33:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60419 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755129AbbHKGdh (ORCPT ); Tue, 11 Aug 2015 02:33:37 -0400 Date: Tue, 11 Aug 2015 14:33:33 +0800 From: Baoquan He To: Andrew Morton Cc: ebiederm@xmission.com, vgoyal@redhat.com, dyoung@redhat.com, mhuang@redhat.com, lisa.mitchell@hp.com, tatsu@ab.jp.nec.com, seiji.aguchi.tr@hitachi.com, linux-kernel@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [Patch v2] align crash_notes allocation to make it be inside one physical page Message-ID: <20150811063333.GB9748@dhcp-17-102.nay.redhat.com> References: <1438606243-13064-1-git-send-email-bhe@redhat.com> <20150803150417.b3536887b1ad86ae04c405b7@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150803150417.b3536887b1ad86ae04c405b7@linux-foundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 25 Hi Andrew, On 08/03/15 at 03:04pm, Andrew Morton wrote: > On Mon, 3 Aug 2015 20:50:43 +0800 Baoquan He wrote: > And I think the WARN_ON can be replaced with a > BUILD_BUG_ON(sizeof>PAGE_SIZE)? That would avoid adding runtime > overhead. Rethink about this, you are right. Using BUILD_BUG_ON is better. Anyone who found this compiling break should check if his/her code changes increase the crash_notes size. If possible that increase need be avoidable. Otherwise he should report this to upstream why it's unavoidable to increase crash_notes size, then let's consider the redesign the crash_notes data structure. So I will use BUILD_BUG_ON and repost. Thanks Baoquan > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/