Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp441556pxb; Thu, 25 Feb 2021 06:38:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNWuWIoKaVRf1Mf8qKphISe9Uffgo2odKc+5zOyMcIRiYhcZvphtEUiEkp8LGPiRg/SplW X-Received: by 2002:a17:906:cb11:: with SMTP id lk17mr2802835ejb.405.1614263912883; Thu, 25 Feb 2021 06:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614263912; cv=none; d=google.com; s=arc-20160816; b=mHjt7G0Ue8YJgWB915vslmMt7tBhpHuUIkzNsdAAuDthM+kpPTiQ/Q9fO8RZdRG6uZ 2+E4FEoF5avXAeHXtHfJz6rhW4eR55zQqY56gbp2Nizv4WwYeHf1TdNPoPJhPy1Fh0jO k47fgI+TuReYLCdNyJBtFPJqruH7P40YCpPHrQTT5ECTflFN7X+j1rKZWdQ5IdIcPFls GJKAUyjgCQrVLKoiRFmX5N5lEaSZb8lIT6D3ElPtj6uV23SLPvWqXKbZCBMgCsW9Vqk6 xDYjwovkOU02FIb630rWRYXgHMny0+JfZbH+0ZV38YtZzvCDmc2L4lzh/xvf8lRsi2o+ 10DA== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=OSBS5M3rLcAQomuyTW3hPwsLMY1RifxFyd7sO0rsMKI=; b=K79x7EQ73763mk691/yCRJEx5u6snpeMTBl57L2dKw5HJsJEesrT09bTyBvPcueHUm a1EoIVQNYj2Wh6E1caknwpyU5TExPu+vqYBEe4tsz3iQgtEiKbx5SIf+UuNNjU2aE59U mJ1N63aYNtjeNDXIK6dxIqjKiMdoX1AfQX8U67VzwYUuoX6tXrkPPfWHQHh2LJgkLHHG Qewr6UIHRanMKjnY+A1wWmnaP2hshGM3eNiv/YTYqMza7m+eR+B1Lwdb+gsfzskbBmBB kWx5UaYz2vYIBerZLjFb3jsqE+bGJg9GLvHEcCgRU7Mr9XibH5LvyAogXfqqOWY23mCJ B6qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si3491338ejk.270.2021.02.25.06.38.10; Thu, 25 Feb 2021 06:38:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232557AbhBYOfE (ORCPT + 99 others); Thu, 25 Feb 2021 09:35:04 -0500 Received: from mga07.intel.com ([134.134.136.100]:51634 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbhBYOeh (ORCPT ); Thu, 25 Feb 2021 09:34:37 -0500 IronPort-SDR: VncrEkIW1CzjfwoGpcJt7Ew4mytvO7fQB+0LJO/+uZtfyY1G4nP3bKr/C/LyvLnhnvLoaN4E71 bxpRq64k2J8A== X-IronPort-AV: E=McAfee;i="6000,8403,9905"; a="249599584" X-IronPort-AV: E=Sophos;i="5.81,205,1610438400"; d="scan'208";a="249599584" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2021 06:33:55 -0800 IronPort-SDR: 5hOqb448r80JPOcGcWTmbLuw32zVDPinUN8H55F5pcA9v166xEDX3WjDAYC7QQB4FWijIC9k+I XIDErPx4+5aw== X-IronPort-AV: E=Sophos;i="5.81,205,1610438400"; d="scan'208";a="404298979" Received: from twinkler-lnx.jer.intel.com ([10.12.91.138]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2021 06:33:53 -0800 From: Tomas Winkler To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tomas Winkler Subject: [PATCH] mtd: mtdcore: constify name param in mtd_bdi_init Date: Thu, 25 Feb 2021 16:33:29 +0200 Message-Id: <20210225143329.430012-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The bdi name is not modified by the function, it should be const. Signed-off-by: Tomas Winkler --- drivers/mtd/mtdcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index db5167eacaa4..80fb69453ebe 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -2177,7 +2177,7 @@ static int mtd_proc_show(struct seq_file *m, void *v) /*====================================================================*/ /* Init code */ -static struct backing_dev_info * __init mtd_bdi_init(char *name) +static struct backing_dev_info * __init mtd_bdi_init(const char *name) { struct backing_dev_info *bdi; int ret; -- 2.26.2