Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1699502pxp; Sun, 6 Mar 2022 23:52:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYHmqnSxVFzhsBZUhdFt6x+GJNeApjW3sr3ZFRCCfAi+ZjMHGlDUNlYNGpehHQHUM8Ea/l X-Received: by 2002:a17:906:1e4d:b0:6ce:6f7b:aef2 with SMTP id i13-20020a1709061e4d00b006ce6f7baef2mr8074837ejj.130.1646639562866; Sun, 06 Mar 2022 23:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646639562; cv=none; d=google.com; s=arc-20160816; b=lwmEh6V9bhdTbmsbnHVFCgBuzjLf6CKfQ47U7pKyi84HZjtAXZ/Ky4M0JN3ZwCKy9/ +eyuwv4QGhic7ruPLqmryFpCarNnOxy3E3avEFe3R6D73ERBlvgwx+bRWmrGMUIqzI8A uw/UGJwA/wwkophHBHH6jmpP75SO6KDK/GibS0ECuOgc61Z3Fzf3BV9ItEN7VopT2dS2 oSbwERsDrNQsp2WmOq4FYjat/cYMY8QAbpvl9mF1cvKk+3OE78BgIQshszjqqHtvwaCD FzYnVdPOlX6f7rY97ixt85fOb8Mu6+OGX2D22MqBsTwpmRkcaG1/Qg63Y0oZEkvOxO7s sHdQ== 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:dkim-signature; bh=NL82W9UcwLeLIZxdqDUqeSVzfk3euX+LYU1WgY6zZBY=; b=LBBmhgcPKzdwYWHcdjTe19BSRn7Zue0zLNRgV1HJsriEJDgWflpHeLEE78VZ9MwUX5 Ph0vGUDV5cyihsgBoysmunNJwbnBHy9VSUTsi/DvvI4jwi7nFxjoIrpnsZFr+tos4YF9 8q5f3Kjz4HV5I3J6aD+OJBZCvxOF5U1aOzMS/eegwgfwZl7OLseIBHri6WTgHpA0ctSp +a3INabvvddXgs1JDS6rziVXz2CeLk/3My5yOx0irRYHCdIQ1mRIA9Y8VkMbEyUsoFrT 4j3Id27oRr+kJmIOrvrBmShpb0WsNjio/8TvyLjbtLKtj7zYWBs0t737TTvayTXZZDAY pydQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=NtshgHo3; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r23-20020a170906705700b006d6e5456b4bsi7147417ejj.833.2022.03.06.23.52.20; Sun, 06 Mar 2022 23:52:42 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=NtshgHo3; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235958AbiCGHtp (ORCPT + 99 others); Mon, 7 Mar 2022 02:49:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235953AbiCGHto (ORCPT ); Mon, 7 Mar 2022 02:49:44 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F60532049 for ; Sun, 6 Mar 2022 23:48:49 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 661703F5F5 for ; Mon, 7 Mar 2022 07:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646639328; bh=NL82W9UcwLeLIZxdqDUqeSVzfk3euX+LYU1WgY6zZBY=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=NtshgHo3yu4DqpCEs7QR0mz7WIJ9Olnr0AWYcQCUh9/yZJT6EC39SGCW6nhY/l9Zd ZUTNlg1TlIEzcSp7Id3s9Tc7Z2yVV8pEtJJSVczwIM4Drw6BK2vWF1EPmYVplqdwLz e7TO7aSAdpLfKpRWhym+nXH4ZB0loDt3ofptsSD/trg5Gp0s/Qlu9BmmFHsKWDrjQk iSCnCmNPXT8keGRWvClvvbSlnhHj72rvYoLn3QzSi110iz6K+wrTPWBeYGrT7Ibo6b lzhbXCbbrCF7ijzARt37HoyIuogOk+DyWdf1tYm8oMN7bBmB5SGAs3o1gyLozjTJdr 2FuZKZFQykYeg== Received: by mail-ed1-f71.google.com with SMTP id i17-20020aa7c711000000b00415ecaefd07so5758298edq.21 for ; Sun, 06 Mar 2022 23:48:48 -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=NL82W9UcwLeLIZxdqDUqeSVzfk3euX+LYU1WgY6zZBY=; b=tu+hGkTZpF5yrG7eglpWxOZQGMLx37xZmMnTWmU5tdPAJd9X2rqp+0XBP0kmjBchYg 20hPN/Lag4tjWpkDZqvgmKJCclRh8IBQl4efqjR4zLNdlxLB9DY9Qo9zgPbtLpEqIn4a OBcZaZyFYLqSW4OnsinNECTbeqAiqGOzRte8HqcUXutnlpTwW6Pnwv2bj3Cb2jtTWfG3 JiZunUBMgxCWtXujxcCY3CL+9Lf5peWAOEwxndYHrE9WcwSn5pWMnqjJxxHur1QpO4mV FieJnxdlPexH6osXU90PL1l+DHL3v4fsA+DBJaSbnlfL0AV8i2528UJLsoWKq1K2RmON lYDg== X-Gm-Message-State: AOAM530LTtDOpgxEPhqESdngRm5coSjuCbCFTJjSLmGmxtXhccc5ARZs fcEB2QvnaON2UCO3AfhhGn7YTfAKvuWFflHzpwLlM8NyA+16wnTjbWmWKebh/lQHNGKknbGxFWh ZlZAKKFmGwVMkhqL+AbF/VMENftC07tJ7X+BZ35MMkw== X-Received: by 2002:a17:906:3748:b0:6db:3859:dca7 with SMTP id e8-20020a170906374800b006db3859dca7mr926531ejc.309.1646639328049; Sun, 06 Mar 2022 23:48:48 -0800 (PST) X-Received: by 2002:a17:906:3748:b0:6db:3859:dca7 with SMTP id e8-20020a170906374800b006db3859dca7mr926519ejc.309.1646639327844; Sun, 06 Mar 2022 23:48:47 -0800 (PST) Received: from [192.168.0.140] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id b6-20020a50e386000000b00410d64cb3e4sm5978356edm.75.2022.03.06.23.48.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Mar 2022 23:48:47 -0800 (PST) Message-ID: Date: Mon, 7 Mar 2022 08:48:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 3/7] tty: serial: samsung: constify s3c24xx_serial_drv_data Content-Language: en-US To: Jiri Slaby , 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: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 07/03/2022 07:36, Jiri Slaby wrote: > 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. I wanted to make it consistent with the other, but indeed I can skip it. > >> @@ -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. D'oh, this was not intended. Thanks for spotting it. Best regards, Krzysztof