From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E24C5155A52; Mon, 20 Jan 2025 23:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737416186; cv=none; b=VHoOBS4gFR4tb69TsyVrCtpZbX289unXbX752MuHm7RfGI6cfbbUjQ6s9rdVxX2YLEttuhohkicPmQ+k+zixcEXZ57Cvaqj1N9B1zMB92O1w7qbAUfYmoOh0OHXDNumJ5RBq6z6zqW1zIFcF3JDiCUhfU0CfdeyUnbWVRYtfdM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737416186; c=relaxed/simple; bh=ymF9x7S+Akphj0N+B81ZiZVyzQT2APWSc9IDU7jgIwM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=g8Q58PhC3Y7BueWZ9TFBuCUdKmVt1GVh5s/uVKtcTZSSVqOHADq2pHKq4f04QMB8AqhY5BltpTXiH6B0N6MwVn+3Ua4MjAvu3XTV7G40TbK+87Jf9RluQGnTkYg1V2NH/g9eU63U7a3fIhvlBjYlSugBGc8X/XZIa/f0ChyZvtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1ta18z-0006Eq-00; Tue, 21 Jan 2025 00:25:21 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 1A345C014E; Mon, 20 Jan 2025 20:41:28 +0100 (CET) Date: Mon, 20 Jan 2025 20:41:28 +0100 From: Thomas Bogendoerfer To: Thorsten Blum Cc: Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: Loongson64: env: Use str_on_off() helper in prom_lefi_init_env() Message-ID: References: <20250115090134.918023-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250115090134.918023-2-thorsten.blum@linux.dev> On Wed, Jan 15, 2025 at 10:01:35AM +0100, Thorsten Blum wrote: > Remove hard-coded strings by using the str_on_off() helper function. > > Signed-off-by: Thorsten Blum > --- > arch/mips/loongson64/env.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/mips/loongson64/env.c b/arch/mips/loongson64/env.c > index 09ff05269861..be8d2ad10750 100644 > --- a/arch/mips/loongson64/env.c > +++ b/arch/mips/loongson64/env.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -162,7 +163,7 @@ void __init prom_lefi_init_env(void) > dma_default_coherent = !eirq_source->dma_noncoherent; > } > > - pr_info("Firmware: Coherent DMA: %s\n", dma_default_coherent ? "on" : "off"); > + pr_info("Firmware: Coherent DMA: %s\n", str_on_off(dma_default_coherent)); > > loongson_sysconf.restart_addr = boot_p->reset_system.ResetWarm; > loongson_sysconf.poweroff_addr = boot_p->reset_system.Shutdown; > -- > 2.47.1 applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]