Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5175698ioo; Tue, 31 May 2022 23:01:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKTIugtNCiTL97XNd+W1LsqJR35ZkYyiXyAwVtvlW3g6WM3uSfBQPdpkwbt75m5HkpOrMb X-Received: by 2002:a17:907:3e99:b0:6fe:f823:ab96 with SMTP id hs25-20020a1709073e9900b006fef823ab96mr39682621ejc.428.1654063316473; Tue, 31 May 2022 23:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654063316; cv=none; d=google.com; s=arc-20160816; b=uyXH8/PYSXjZ8kv91D8guthJak7XFfdh15B3kY4vBQunkewf4qXMFnmhHc7/iP0eKE XePXb5scr5EPQTbhJnCQ2TpKSjIuUBFw7id4lCDm1fuEjgDumBBIrNA7GIVKCo/z9rS5 Vx/AX9LKDNkGcjoTN7Qt87dZRvEDKNRdx5oArp7XGoLPaiR2VOeO7RQ7qs8juyOtAHbK vseVZT+g5GZ5QLRzDaTU0wmS1C4PIBMfCev4YowsGAbYpwtOEhAc4FfEVclPLP64OV4+ BUWYj8mA5yoITwD5Mq7iJl5BGtNGUoYcZWxb62+w0RHldwFsccN1rosozLfNl86Af7vQ nr3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=BdhRdmYpzSaLyDZukxciTRFSwXlW7RAhZsMxh7fK1iA=; b=GuSiX9kfZw07OYjanb6mhNarRiuRCRr/e1rBqgMXgVIZAy9Yz8GVub7bSaA1f3NIhW qCrTdmtva2lRbFtjmTBcQNhYmx67y83T9NMS0FrSPLGzCsadfmtLFcntiQlSLIwVSSIX cjhyqVZEQ+ldRdnR2suMbcb4RaJDhkK3/DgXVSIvAT9OFZWoPwD6Qg3/efK6AJ11ZG5j kRXfi5aKMcRJ7T4MTu8irooOxR+twcv0qg6uF1+5+retqWbGnq9xm0qq4rsnbj3urQZA ZGxbC7A21QuiuMHLzoAmjG3e+9nBclOPVv0pic0YcoToXxTTHml3SExWDaDKmEM2iCOQ sXHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020aa7d046000000b0042b4ee1bb64si708865edo.542.2022.05.31.23.01.30; Tue, 31 May 2022 23:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233316AbiE3HMO (ORCPT + 99 others); Mon, 30 May 2022 03:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233369AbiE3HML (ORCPT ); Mon, 30 May 2022 03:12:11 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B88B1D9 for ; Mon, 30 May 2022 00:12:09 -0700 (PDT) Received: by mail-qk1-f171.google.com with SMTP id b5so1639142qkd.9 for ; Mon, 30 May 2022 00:12:09 -0700 (PDT) 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; bh=BdhRdmYpzSaLyDZukxciTRFSwXlW7RAhZsMxh7fK1iA=; b=BO4U0ug1GyTPNCqC/TI1bwa9VlB1J+mjlUpaC0ONYMEvdGv9QwG1vhEAJEiWVnerSx zCIK94CXWNmLJYHYVeqpSG4yobVI1iR3LQoa5934mw5BSLU1kDVlVFbHG3+yCbivdIOh sMsJTBeqQzVA00+a208YPuFNt7FaOM+EGqtVRNC/4mhPgN6SjVN8/jsJ9V5Y9Scm64HU qsKo4g4XafCtMre1Ie1iYuxsFIUJwdFZbi62VbseYy0WyjK4ua16iLAywdpWyidzcGkE b12tpEJJ7EgIRz7B2Nf2HH/XgN9HohnfTwH7PH51d20mSByylswH7clEQLsCgZrBUxgR LxkA== X-Gm-Message-State: AOAM530wf0TRM3KMah7v6vhRXWSwxy4Ce0oMaZCqb84Lw9ozxM85lZxF Bx1ubG7eswCqumyrrHtMK4YlNCHcfDY= X-Received: by 2002:a37:9e0f:0:b0:6a3:4918:d394 with SMTP id h15-20020a379e0f000000b006a34918d394mr32315276qke.764.1653894728619; Mon, 30 May 2022 00:12:08 -0700 (PDT) Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com. [209.85.128.170]) by smtp.gmail.com with ESMTPSA id c24-20020a05620a165800b006a63cd08f3csm741949qko.16.2022.05.30.00.12.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 May 2022 00:12:07 -0700 (PDT) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-300628e76f3so99811577b3.12 for ; Mon, 30 May 2022 00:12:07 -0700 (PDT) X-Received: by 2002:a0d:f745:0:b0:2fe:e903:b0f8 with SMTP id h66-20020a0df745000000b002fee903b0f8mr58276985ywf.383.1653894726993; Mon, 30 May 2022 00:12:06 -0700 (PDT) MIME-Version: 1.0 References: <20220530025312.55057-1-wangxiang@cdjrlc.com> In-Reply-To: <20220530025312.55057-1-wangxiang@cdjrlc.com> From: Geert Uytterhoeven Date: Mon, 30 May 2022 09:11:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] m68k: coldfire:Add const to clk_ops To: Xiang wangx Cc: Greg Ungerer , linux-m68k , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 Hi Xiang, On Mon, May 30, 2022 at 4:53 AM Xiang wangx wrote: > Struct clk_ops should normally be const. > > Signed-off-by: Xiang wangx Thanks for your patch! > --- a/arch/m68k/coldfire/clk.c > +++ b/arch/m68k/coldfire/clk.c > @@ -50,7 +50,7 @@ static void __clk_disable0(struct clk *clk) > __raw_writeb(clk->slot, MCFPM_PPMSR0); > } > > -struct clk_ops clk_ops0 = { > +struct const clk_ops clk_ops0 = { The "const" should be first on the line. Please test-compile your patches before submitting them. > .enable = __clk_enable0, > .disable = __clk_disable0, > }; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds