From patchwork Mon Mar 6 15:59:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 64903 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1935168wrd; Mon, 6 Mar 2023 08:23:43 -0800 (PST) X-Google-Smtp-Source: AK7set80M7OTiQ0nDsl52VWAyRoxGkjoOw+DBGHlh6fKkIuWsAfc2+O//O4FoHQ4qTzP5xJHJwuX X-Received: by 2002:a05:6a20:2448:b0:cc:c3f7:916b with SMTP id t8-20020a056a20244800b000ccc3f7916bmr11091248pzc.0.1678119823012; Mon, 06 Mar 2023 08:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678119822; cv=none; d=google.com; s=arc-20160816; b=HusW3oxko+QT5muMcc8cucY/CfSke/oUimHw5kUqyFYgNYGSsmY2N2FfYEl71ycOJ8 H6TAIQbeYXxDcgOP/HHhE04CnOQnQXHbdKyRribZtgWasboT3pNxXqZ4sTvu6Nl7u1ol kO2gaMpZuc5Rwa9GeZKUhf5raOBXGlLXj22+GgUqzL1GGyYBxLbYqPVLI2PIqni0Hd9U tk1gMZSi5Nrg0bfb3BnjCcsSDrBoWjEm/e0C46c3syG+QQbNnUozg2sUBxtcfVQwxIId ut0WwKUArA8/oadeOMMnMproEnUBO4jqWaY5mRCGgWf7rDmyCnuLOKJDoSlEhq5xqtPy YBRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=yOhrk3uETM+pHr/QFHdYcLngL83sbtfH5kDoWLgLZZs=; b=pm0n+LEFyhs7LqRHTz7AuyNIMi89SgjHuFcLO3FPKM//RC7h/q4C4pkNz2ePn3xB7D /Dy9m1DTe0gDKwSor9EjJKrFHtMaArwIYjXJ6sWvsZ4geTwA5LYXck7pkfjJjN7KiLnD WZ+/3dV0ScRbnA/qZ+JueX/fXAjnrxWpYZLOzRLZij79MZJEMX0O1VsUEyU6JaHs/TZ6 NsA6H3GIYuup0DVvnrac96Jv4Vm25tSXrfAVKkxzIMPjHKg8lycEKgwV4v5ZnsWxR09t I9mg/g8wZAEDDloxTdxYSiPdkICBRpcAw4Z3ikrRQ3fW7XGj7rr+Mf6rC3R5fSRm3HoU +CDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="cFfY9u/U"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=4R7PA0tH; 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=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020aa798c9000000b0059072f087b7si9640636pfm.135.2023.03.06.08.23.30; Mon, 06 Mar 2023 08:23: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=@suse.de header.s=susede2_rsa header.b="cFfY9u/U"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=4R7PA0tH; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbjCFQFj (ORCPT + 99 others); Mon, 6 Mar 2023 11:05:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231481AbjCFQBC (ORCPT ); Mon, 6 Mar 2023 11:01:02 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54722E0D3; Mon, 6 Mar 2023 08:00:55 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 865161FED6; Mon, 6 Mar 2023 16:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1678118454; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yOhrk3uETM+pHr/QFHdYcLngL83sbtfH5kDoWLgLZZs=; b=cFfY9u/UJ9aeaeawMWvOIzzsUb2kja3lMv3D49+urNNE3uH2w/XNPP31AOfVbPYw+apfuz E+v2B2ef6C6EVKycL6hcLfNrfKzeTelxJmikHnrTiOkshtUSyLXdOE2qebKIwdxDYHitK7 BrkWHLcxy7juDYaVrluJ7tUkT1H5LEc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1678118454; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yOhrk3uETM+pHr/QFHdYcLngL83sbtfH5kDoWLgLZZs=; b=4R7PA0tHfHRSIED4nXwUYPe0ntH8GGEBrmTNrAlv1QSvnXF8YKhVZZcIpQlRdUpfeaa4aE 2EeMjt/WWPzsjDAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 32C2313A6A; Mon, 6 Mar 2023 16:00:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WHCVCzYOBmQ/PwAAMHmgww (envelope-from ); Mon, 06 Mar 2023 16:00:54 +0000 From: Thomas Zimmermann To: deller@gmx.de, paulus@samba.org, benh@kernel.crashing.org, linux@armlinux.org.uk, pjones@redhat.com, timur@kernel.org, adaplas@gmail.com, s.hauer@pengutronix.de, shawnguo@kernel.org, mbroemme@libmpq.org, thomas@winischhofer.net, James.Bottomley@HansenPartnership.com, spock@gentoo.org, sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, geert+renesas@glider.be, corbet@lwn.net Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 79/99] fbdev/sti: Constify option string Date: Mon, 6 Mar 2023 16:59:56 +0100 Message-Id: <20230306160016.4459-80-tzimmermann@suse.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306160016.4459-1-tzimmermann@suse.de> References: <20230306160016.4459-1-tzimmermann@suse.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759636171586323340?= X-GMAIL-MSGID: =?utf-8?q?1759636171586323340?= Constify the intenal option string that is passed around among functions. The caller owns the memory and callees do not modify its content. This change will later allow to constify the caller's option string as well. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/stifb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index a151377f5b45..304ce8fcb9f8 100644 --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -1392,7 +1392,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref) static int stifb_disabled __initdata; int __init -stifb_setup(char *options); +stifb_setup(const char *options); static int __init stifb_init(void) { @@ -1465,7 +1465,7 @@ stifb_cleanup(void) } int __init -stifb_setup(char *options) +stifb_setup(const char *options) { int i;