Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp180076iob; Mon, 2 May 2022 16:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCthkTSn7ixW5vL7GR6tC0nKE0LPbKF1bVh8+0bUinFyFFvM7fM4VaPQ7cjNpONKtiTyT/ X-Received: by 2002:aa7:8215:0:b0:4f7:125a:c88c with SMTP id k21-20020aa78215000000b004f7125ac88cmr13622968pfi.70.1651533975791; Mon, 02 May 2022 16:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533975; cv=none; d=google.com; s=arc-20160816; b=uzsoAvbx4yBAn/DqL7IaEw+6Dvh2WGgVKTPWFzjVQ00q78rPE8h0UGBG0p7cI+bkGz K6X4qZfZxoBqoe3PZzET4tVjwBQTT4zoCYNh6V4bsoGjOQdjgeBlK8NRfbGyWJfM23do 9q2cmLk7LpSyJE3HW8fIkcDT7R/M4xOTDp5CagtSlYMcyqhYN3PpGR4dYdeQm6S5tfVd tPkrzHhGUmuRkLwka9WiX6htS2cxz2gUY0FgLB+M+dPktUFMw0nPSbK49O6iZ6UAY0c3 JxVwLkAIbjmCkyTdlLFPhmwWP1pQFsdYvU7xIJ0IwLui4exK72QsdCHsMkTLMifM4zzQ ag8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vtEgEgvSSjpz3nKvUKDHSWfXwEKAllpdOTPmgbe3VTU=; b=BWsLZ8qEA1P0Yxc+uM87J9/CdTRcCOigz8rhHk8yQTb56plBZTmB+yTGUaugwdBfpz rucoRWPY+rk3C9WhC7cOyouhgRP58Ykv4gEO1tzlmcNGkbhwPHC6iygTUP7JiLSXKv2w c88HLGHKVkoFiSfU5PUqr8kJMaz7iNeJaKR9LyAAqE3sy8rr2y5H2cG0ILWl+TaTwv8A FNOO6XaaLlDwmsyhJKfbbZYzKSJiSXhJ6ENWqOmsZGsD+UjXne4/1qP98s8WbfYpHgNf xCvWhSemeduEu7J/Rfz/Y3Gzknx98DFTQjCYsjFbf7UkICcAjc70lLPrNVKUAVcZ2224 oQdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WZlOgahs; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m7-20020a638c07000000b003aa52189f04si14847261pgd.625.2022.05.02.16.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:26:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WZlOgahs; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93337644F; Mon, 2 May 2022 16:25:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237834AbiEAC6W (ORCPT + 99 others); Sat, 30 Apr 2022 22:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiEAC6U (ORCPT ); Sat, 30 Apr 2022 22:58:20 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3886457165; Sat, 30 Apr 2022 19:54:56 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id l18so22117344ejc.7; Sat, 30 Apr 2022 19:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vtEgEgvSSjpz3nKvUKDHSWfXwEKAllpdOTPmgbe3VTU=; b=WZlOgahsRkrmuzO/r4wOaLfAz/ZuvgTNA1Zk40/AfCYLiYF6tUiUNsZJ9OlbR+4d9B jsbxe7QuhkWbS4yF2IiMCNXMEmW/Ba1z9IGD39xpfmrP79oXApPV/TUy8L4dfgKwCjJO uUWSus0iSWfXtiy30aH6xP3TrD0rAvGg78aTW45Bkfua3G85OxJZMz/dN7HzMc9uX6M+ 52V+7ds89VCI0+JYX1TKdM1BszkULmgwS2eSK0VCdfGfmJXog3ST7UAnaPJz4TE5e0wv D1pHyJpI/3zVJKPuHym6aJpU0ti65cpTjRL3Gn/KReVPQXDtVAOp3XzotGfQzIBWoLRU sImg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vtEgEgvSSjpz3nKvUKDHSWfXwEKAllpdOTPmgbe3VTU=; b=Hprr0GnkdXu920xN1EhjBlccR+85DGf7hMcfgvSHFQKSa4xDl2OOno26hFGW+KxNxa C2ajgE1B2daSL/QK/qwGp5A/sJt+wrgtGcrjdC6XsYeMoNJNN9pBhgCkRuooxx8KZtKr PZNVkFzSW3hBapwMMo8jUqLZneq8yBORWZtL87v/MSq0/tN6YJLy5nQXd9qSuFqTpS+i C2FmusbucV4JFx2OmjT+uAnnAjQH2rys8OKqCnfr7uvCtOvO0/x6hUNiMuDihhz4IBJn PeUdeaaVajzuhVovXwU+2jmJSc+slqjyh/AR7wTnpxOPs9RfXQjjIBcEhpOk0DjoTcOw w18w== X-Gm-Message-State: AOAM533wgEQJZoBK3NtKEVIfNKMTtUHpKzYHESJcpjjqpE/xvCu115Tz 5NiFbFXWfkLMHnqLzKJiBX9yjq6basgo5NWy0+4= X-Received: by 2002:a17:907:7b9d:b0:6df:fb8f:fe82 with SMTP id ne29-20020a1709077b9d00b006dffb8ffe82mr5908361ejc.652.1651373694643; Sat, 30 Apr 2022 19:54:54 -0700 (PDT) MIME-Version: 1.0 References: <20220429032621.674865-1-starzhangzsd@gmail.com> <20220429095104.GA11365@alpha.franken.de> In-Reply-To: From: Stephen Zhang Date: Sun, 1 May 2022 10:54:17 +0800 Message-ID: Subject: Re: [PATCH v2] MIPS: undefine and redefine cpu_has_fpu when it is overrided To: "Maciej W. Rozycki" Cc: Thomas Bogendoerfer , liam.howlett@oracle.com, ebiederm@xmission.com, alobakin@pm.me, f.fainelli@gmail.com, paul@crapouillou.net, linux@roeck-us.net, anemo@mba.ocn.ne.jp, zhangshida , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maciej W. Rozycki =E4=BA=8E2022=E5=B9=B44=E6=9C=8830=E6= =97=A5=E5=91=A8=E5=85=AD 23:38=E5=86=99=E9=81=93=EF=BC=9A > > Adding a safety check would be a separate improvement. Please feel free > to submit one. > > We need to keep fixes and improvements as separate changes. For one > fixes can be candidates for backporting while improvements are never > backported; cf. Documentation/process/stable-kernel-rules.rst. > > I hope this clears your concerns. Let me know if you have further > questions. > > Maciej Thanks for your elaboration.It helps a lot. I want to submit a v3 patch like: #if cpu_has_fpu # error "Forcing `cpu_has_fpu' to non-zero is not supported" #endif but this will cause the link error if not combined with the fix: MIPS: IP30: Remove incorrect `cpu_has_fpu' override Maybe I should submit one first, and see how it goes then.