Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp815276pxb; Wed, 11 Nov 2020 17:38:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFqYJve3ubdS67ZXlWIKr9UurZX2omfIGSIl1lTrZDedu27/fn3Ki75CchIVXr1tKOwEH4 X-Received: by 2002:aa7:d690:: with SMTP id d16mr2557825edr.329.1605145087276; Wed, 11 Nov 2020 17:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605145087; cv=none; d=google.com; s=arc-20160816; b=L6cg7qSc83AuhvASLD/e3fQv825MhVh/ipOpSilAwgucayQPdVhZUq5nIrwZs3sw0a r9jk4e1ubVW5E9aq6s/WfsaZlm2+UZsFvQi6soFRHfzMhYZTo4BRwMASpYZkZBfUOR5P oigrl0spTEFtBcoBdiWds63rnaScGVwvQM8OWEPlhXTvGM1j9poIGhFDtfY5xVp1D1lq A/M89kvpUkHGFKuB66k/vvbZPdR5YgEkJ82Z/zFFALNWJPBd+Ec3czugxnGGt6FNPLgb rhjWNDPEGSE5gKgV5WnNU93Ul8FyG9sdGjfC7OwS0bqDTmTZwXH321JWA0+spmXlAXxb u/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=q16ybC5AWA2iolq35txnZB5lIoE+CzF+kIqOH/i8QjI=; b=p6hO+cyXHdp5Z0kce7p+nBFeqH+tk4xmoNsy69CBPAcCpY3kOVLIq5PfW+KBUYMzj8 rKc/GEgtTNbJVoFO4QWAh1N+a6TYi3szbGVdJPhSQU0VnDquZcs6lgaluLzYiui4RUIh l+7lZmp6z3ufU2dlCtLH5FOTCj2wln3Ne5NBgoCp1R2jWFQ5KMsrenv0w47V9sisAwYv 0Gmyg547ydUozIMxa2R5deuMG+xHTjHaS6syvqXp82Z4EJ+EEYTVtT/kmQYNuBPgmbFD dDSNNOq7MFHcw/lODvWuILNdW2nWqC2OhQNLKdjpmy/bsYzG62QS1PuK6y/N+5qc02Dq K0Jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si2654804ejn.180.2020.11.11.17.37.44; Wed, 11 Nov 2020 17:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728796AbgKLBey (ORCPT + 99 others); Wed, 11 Nov 2020 20:34:54 -0500 Received: from elvis.franken.de ([193.175.24.41]:54620 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727767AbgKKXGO (ORCPT ); Wed, 11 Nov 2020 18:06:14 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kczBl-0005fC-03; Thu, 12 Nov 2020 00:06:05 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 32668C4DDF; Thu, 12 Nov 2020 00:05:41 +0100 (CET) Date: Thu, 12 Nov 2020 00:05:41 +0100 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH v3 6/6] MIPS: Loongson64: Move decode_cpucfg() to loongson_regs.h Message-ID: <20201111230541.GD19275@alpha.franken.de> References: <1604387525-23400-1-git-send-email-yangtiezhu@loongson.cn> <1604387525-23400-7-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1604387525-23400-7-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 03:12:05PM +0800, Tiezhu Yang wrote: > Since decode_cpucfg() is only used for Loongson64, just move > it to loongson_regs.h to avoid the pollution of common code > with #ifdef CONFIG_CPU_LOONGSON64. right now I prefer the way it is. Something like this would be needed, if we are able to build a generic kernel, which works also on Loongson64. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]