From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 5D1483EA03 for ; Sat, 9 Nov 2002 00:51:29 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gA95pTU10402 for axp-list@listman.redhat.com; Sat, 9 Nov 2002 00:51:29 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gA95pPD10390; Sat, 9 Nov 2002 00:51:25 -0500 Received: from are.twiddle.net (are.twiddle.net [64.81.246.98]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gA95SYw12043; Sat, 9 Nov 2002 00:28:34 -0500 Received: (from rth@localhost) by are.twiddle.net (8.11.6/8.11.6) id gA95pMT03507; Fri, 8 Nov 2002 21:51:22 -0800 Date: Fri, 8 Nov 2002 21:51:22 -0800 From: Richard Henderson To: Richard Henderson , axp-list mailing list Subject: Re: [PATCH] [RESENT] compilation warnings 4/6 Message-ID: <20021108215122.D3169@twiddle.net> Mail-Followup-To: Richard Henderson , axp-list mailing list References: <20021109010039.D18411@Marvin.DL8BCU.ampr.org> <20021109010312.E18411@Marvin.DL8BCU.ampr.org> <20021109010502.F18411@Marvin.DL8BCU.ampr.org> <20021109010716.G18411@Marvin.DL8BCU.ampr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021109010716.G18411@Marvin.DL8BCU.ampr.org>; from dl8bcu@dl8bcu.de on Sat, Nov 09, 2002 at 01:07:17AM +0000 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Sat, Nov 09, 2002 at 01:07:17AM +0000, Thorsten Kranzkowski wrote: > ### type is a long parameter. it is explicitely normaized to positive > ### values. the only caller supplies an unsigned long from hwrpb_struct. > ### But there is this comment suggesting there are 'negative' values: > ### /* Restore real CABRIO and EB66+ family names, ie EB64+ and EB66 */ > ### if (type < 0) > ### type = -type; I think maybe this is historical. I can't find where such negation might be happening. What I did find is #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_CABRIOLET) /* * CABRIO SRM may not set variation correctly, so here we test * the high word of the interrupt summary register for the RAZ * bits, and hope that a true EB64+ would read all ones... */ if (inw(0x806) != 0xffff) { extern struct alpha_machine_vector cabriolet_mv; printk("Detected Cabriolet: correcting HWRPB.\n"); hwrpb->sys_variation |= 2L << 10; hwrpb_update_checksum(hwrpb); alpha_mv = cabriolet_mv; alpha_mv.init_irq(); return; } #endif /* GENERIC */ which looks like it might be serving the same function. Indeed, looking at linux 2.0.0 sources we find in apecs_init, /* * JAE: HACK!!! for now, hardwire if configured... * davidm: Older miniloader versions don't set the clockfrequency * right, so hardcode it for now. */ if (hwrpb->sys_type == ST_DEC_EB64P) { hwrpb->sys_type = ST_DEC_EBPC64; } and in asm/hwrpb.h, #define ST_DEC_EB64P 20 /* EB64+ systype */ #define ST_DEC_EB66P -19 /* EB66 systype */ #define ST_DEC_EBPC64 -20 /* Cabriolet (AlphaPC64) systype */ So I think that all this can go away and we can just make type unsigned long. > ### assignment from pointer to integer without a cast. > ### ok, cast it. [...] > - info.si_addr = regs.pc; > + info.si_addr = (void *)regs.pc; Already in my tree. r~