From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755491AbYITArz (ORCPT ); Fri, 19 Sep 2008 20:47:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752719AbYITArr (ORCPT ); Fri, 19 Sep 2008 20:47:47 -0400 Received: from rv-out-0506.google.com ([209.85.198.234]:21169 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752455AbYITArq (ORCPT ); Fri, 19 Sep 2008 20:47:46 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=U0JBPeXYTt/Ez60ZKTK/QGapnX6zuHZM0RQ7EwXdG4Uhs3CNU0HUQ82ytiByvTakQk +Ay5XcF386AsZmB7sg8PnYgafKO2BblgaeuhBwQ4rzzOAO9wld7BXbThWN0UIxtlwkSu GeRy4p2bmyO6d67WMbPqeWgTOsnU7COCZ+zO8= Message-ID: <86802c440809191747g1fb05eeeh7c8195da5941c604@mail.gmail.com> Date: Fri, 19 Sep 2008 17:47:45 -0700 From: "Yinghai Lu" To: "Arjan van de Ven" Subject: Re: sparse_irq: userspace ABI breakage in -tip tree Cc: linux-kernel@vger.kernel.org, mingo@elte.hu In-Reply-To: <20080919174447.2dd3015a@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080919155321.1181638a@infradead.org> <86802c440809191710o155fa870j9f1d9443896046fe@mail.gmail.com> <20080919174447.2dd3015a@infradead.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 19, 2008 at 5:44 PM, Arjan van de Ven wrote: > On Fri, 19 Sep 2008 17:10:42 -0700 > "Yinghai Lu" wrote: > >> On Fri, Sep 19, 2008 at 3:53 PM, Arjan van de Ven >> wrote: >> > >> > commit 70426a06a58561c401e64c5767d71a011d4b978b >> > Author: Yinghai Lu >> > Date: Tue Aug 19 20:50:27 2008 -0700 >> > >> > x86: make 32 bit to use sparse_irq >> > >> > @@ -285,7 +303,7 @@ int show_interrupts(struct seq_file *p, void *v) >> > action = desc->action; >> > if (!action && !any_count) >> > goto skip; >> > - seq_printf(p, "%3d: ",i); >> > + seq_printf(p, "%#x: ",i); >> > #ifndef CONFIG_SMP >> > seq_printf(p, "%10u ", kstat_irqs(i)); >> > #else >> > >> > >> > this is a userspace ABI breakage; you're changing /proc/interrupts >> > from decimal to hex! This file is used by both humans and computer >> > programs, and the humans will get confused, but the computer >> > programs will break. Not a good idea to put into mainline. >> >> change back to decimal could help? > > that's a minimum; someone (you?) needs to check if there are other > things changed in the format of this file.... does the ABI require the irq number in ascend sequence in /proc/interrupts? also how about /proc/stat? YH