Received: from multi.imgtec.com ([194.200.65.239]:34173 "EHLO multi.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6823114Ab3F1VbJLqe6R (ORCPT ); Fri, 28 Jun 2013 23:31:09 +0200 Message-ID: <51CE003A.5040902@imgtec.com> Date: Fri, 28 Jun 2013 16:29:30 -0500 From: "Steven J. Hill" MIME-Version: 1.0 Subject: Re: [PATCH] MIPS: Reduce kernel binary size. References: <1372454107-7784-1-git-send-email-Steven.Hill@imgtec.com> In-Reply-To: <1372454107-7784-1-git-send-email-Steven.Hill@imgtec.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: linux-mips@linux-mips.org Cc: Ralf Baechle , "Maciej W . Rozycki" Message-ID: <20130628212930.QyiBSu3GRHjhPG1t1ycFPpJ7lDVejcrMGNNZMK0bdjQ@z> Ralf, Take note of the addition of '#ifdef CONFIG_SYS_HAS_CPU_R10000' around the 'cpu_is_noncoherent_r10000' and empty inline function if we're not one of the SGI platforms. Without the the empty inline function, I get an internal compiler compiler error. It results from the new 'current_cpu_type()' function you added. Essentially two functions are going to get optimized out. The compiler does not seem to complete that successfully. Here is the message: CC arch/mips/mm/dma-default.o arch/mips/mm/dma-default.c: In function 'mips_dma_sync_sg_for_cpu': arch/mips/mm/dma-default.c:320:1: internal compiler error: in add_insn_before, at emit-rtl.c:3852 Maciej, what are we dealing with here? Thanks. -Steve