Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1697520pxp; Sun, 6 Mar 2022 23:48:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpZsKXyFg189nT7oYRhbb/tmfcuCGhtcFxDqBVT4Pz4nxUFPcSq3M9J53h/59Lmo2rMBfI X-Received: by 2002:a63:2dc6:0:b0:380:2287:82ac with SMTP id t189-20020a632dc6000000b00380228782acmr5434273pgt.443.1646639299223; Sun, 06 Mar 2022 23:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646639299; cv=none; d=google.com; s=arc-20160816; b=nreD6g8bO9eM69G3fsw8UJ7xsivf9kNCk3JNuDV/wvdOEl1qpGiXOo82zsLbpw/X8H H9yUyJoUkbsektVxkuEM8n0LR5TvHWJGWfgmW4KIJhnl0D129JJ4agy3R250+Y5tPfro /qqmeGsAv2oY3A4wKQ8yhFjqZXGBZ6mRLiH9aaGaLzE/Q0bVnzBtpf06+cV1nEHsGb4n GuqiYt3Mi1yQ4nNAKCFEWywVp8RzPl6iuZ+z2b1isnQTOHxsv2ypqenU31+7InJEApkD sLTQfy31ClRcPaWXUyfIXXCbm0hB1rD/sVv9nUP4UQubXm+P+71N0uxCRhseepBi2J6b H0JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=CLWBvEKY0bZFqdu8keT0kKq+r86IcfvnbkU0z1432mo=; b=GeggnOClHNaMR1SJW98X3BF1lU3Kzs9ZblSSYnJumtXMesz8YqFgvuw28OsRk5+xC1 zoN2/Km5hVeSmPzZyH+Led1XphZxZDKD+U/LmaRYpx0ydo/CM3ylWlWyJ602oVNMhPCz fB27lL54skTHPrtjL8ianiCSPQ1uzZvibSeJs+Y4vYlkX4Y6EVdkyQX94nUOThhKQJ3E S7FCDn1dyKrIs+IqJY0cmZZvXjdeORLoRrUdAqlYJfXvdzxtcCp5BZLVOXFI6MKx7cXz 6vlm/P6mUKxXfMbT7IYGafwNEfAHMR7VMq4pbfYYiolmzeBKEzMrhcaaj/JPtUzts7Az 3Z4w== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a170903120e00b0015171e5225bsi12285029plh.286.2022.03.06.23.48.04; Sun, 06 Mar 2022 23:48:19 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235592AbiCGGhC (ORCPT + 99 others); Mon, 7 Mar 2022 01:37:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232389AbiCGGhB (ORCPT ); Mon, 7 Mar 2022 01:37:01 -0500 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F765523D; Sun, 6 Mar 2022 22:36:07 -0800 (PST) Received: by mail-ej1-f49.google.com with SMTP id bi12so16499446ejb.3; Sun, 06 Mar 2022 22:36:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=CLWBvEKY0bZFqdu8keT0kKq+r86IcfvnbkU0z1432mo=; b=1Oj/Q2dD8xBFE2ITh/pgIK4sZZ1C4HqN1y0Zi+H68qV/Fj4Gd8QDXTAFczdZKzZMCa umScqz7CdrmOHKaavYe84+L5P/x1ubBJAOqJEgoAbLenhYvHiH9fE8ojZjm7420at/lE 9I9L9yc8hZ8oJ/Y836xLQz6IETK+MiqjC0nS2xtpf42YClc7+JWxDP/bL4Jk8Zw6r5/n XMD6/2a56HJuWyTtR4iBn3uXT1oATWb06rmHtd9k5EUJyUSNWEOiFe33rF3UYu2vslln KAgFT0157GXk35/qW7S9GP4gYjhma8HglS6l3y8DXVNO5Yb9QmdHeNJz/bhlgdx6q4Sf d56w== X-Gm-Message-State: AOAM533fEnucljcsK2hjAcK3EZPX7yKgS4lyxsJnlg5EKM0Bsay9LXJu ypJYnRpcBC81ADloF7xZh5Wn0ppbg/U= X-Received: by 2002:a17:907:1c0e:b0:6da:a5cc:95a9 with SMTP id nc14-20020a1709071c0e00b006daa5cc95a9mr8026023ejc.631.1646634966342; Sun, 06 Mar 2022 22:36:06 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id p14-20020a05640210ce00b00413211746d4sm5696583edu.51.2022.03.06.22.36.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Mar 2022 22:36:05 -0800 (PST) Message-ID: Date: Mon, 7 Mar 2022 07:36:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 3/7] tty: serial: samsung: constify s3c24xx_serial_drv_data Content-Language: en-US To: Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220304080348.218581-1-krzysztof.kozlowski@canonical.com> <20220304080348.218581-3-krzysztof.kozlowski@canonical.com> From: Jiri Slaby In-Reply-To: <20220304080348.218581-3-krzysztof.kozlowski@canonical.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 On 04. 03. 22, 9:03, Krzysztof Kozlowski wrote: > The driver data (struct s3c24xx_serial_drv_data) is only used to > initialize the driver properly and is not modified. Make it const. > > Signed-off-by: Krzysztof Kozlowski ... > @@ -2726,13 +2726,13 @@ static struct s3c24xx_serial_drv_data s3c6400_serial_drv_data = { > .ufcon = S3C2410_UFCON_DEFAULT, > }, > }; > -#define S3C6400_SERIAL_DRV_DATA ((kernel_ulong_t)&s3c6400_serial_drv_data) > +#define S3C6400_SERIAL_DRV_DATA (&s3c6400_serial_drv_data) > #else > -#define S3C6400_SERIAL_DRV_DATA (kernel_ulong_t)NULL > +#define S3C6400_SERIAL_DRV_DATA (NULL) > #endif > > #ifdef CONFIG_CPU_S5PV210 > -static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { > +static const struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { > .info = { > .name = "Samsung S5PV210 UART", > .type = TYPE_S3C6400, > @@ -2755,9 +2755,9 @@ static struct s3c24xx_serial_drv_data s5pv210_serial_drv_data = { > }, > .fifosize = { 256, 64, 16, 16 }, > }; > -#define S5PV210_SERIAL_DRV_DATA ((kernel_ulong_t)&s5pv210_serial_drv_data) > +#define S5PV210_SERIAL_DRV_DATA (&s5pv210_serial_drv_data) > #else > -#define S5PV210_SERIAL_DRV_DATA (kernel_ulong_t)NULL > +#define S5PV210_SERIAL_DRV_DATA (NULL) All these changes are somehow irrelevant to the subject/to this patch. Care to put them into a separate patch? There is no need to put NULL into parentheses. > @@ -3062,7 +3062,6 @@ static int __init apple_s5l_early_console_setup(struct earlycon_device *device, > OF_EARLYCON_DECLARE(s5l, "apple,s5l-uart", apple_s5l_early_console_setup); > #endif > > -MODULE_ALIAS("platform:samsung-uart"); This is as well a different change to what is claimed. thanks, -- js suse labs