Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1039456pxu; Mon, 23 Nov 2020 10:04:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtMB1YSqTYs0vz97CCMraDHZ5232Ql3vuJ5Nt+E807ZPTTme59Vlp8SzLFneaaFC/YlUe5 X-Received: by 2002:a17:906:6dd6:: with SMTP id j22mr697590ejt.255.1606154645247; Mon, 23 Nov 2020 10:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606154645; cv=none; d=google.com; s=arc-20160816; b=BV9w8OFsNck4lW+gYRfv1uoxQr1xlhHJw8AGUj69gbYIP6+kZ6XY+cW9h7bhmO+e1g Llah2hN0y4v02li2b7EB31WvmMLCOd1sWeeoBtlSqxzcpWgnT3bA1Q6vji2Hidn4jO0l lbHWnpGCuYNEjTSRD8t+3eXa0I04wP9/LbUKFEQsHJvE0R7dm/5mmUlYGgPH7jmUSIu/ gaFWS62WOGw/80bRf1BhYPB52Gu73Qz/6kYrcRrLLyWUTaeWo1a/INnjGFoaNiEPuuTH w102HqfbtpVjNGwALAbL1ANBThDVFsTC/tm5YJes0fTfSbzjXJB3X7q4ZuBGYk83j072 QMYw== 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 :ironport-sdr:ironport-sdr; bh=/Zn3a55pdeXOXnNTrS9FayfIjJdGzQ1cFmJUQsjOwLI=; b=PQMIx1IY6Vk/Ajh5mY/OvfG9py7BJ3eKEUElwmXEX4zYsNQUtUHyaCWCJhQbFeWBjI hjzm8gGutOPa5tH/Illv7sIAx14t9iSY7xxELiV+Ysn1EJ0j37kVE/DnM3ggyQBlEODI ACC+DN1IBxxIEJPvowN2S7ed5E6FyAay6y9L1kmLHaJs5y7bTmMIVrZJeThC84a+RDFz gYsM4MbKXjZ2liPxEaKgRNAKPBftLt3SGFc1Z6g3hYXRxfLwugZcOKsD3hBFgAJ5iiJs gWQHcKDyS5VgV5Gej3ETprvHImgV0qxmMFWxVVY1e20n4SQuuJABK3YxIXxi/Qk2C9b8 lumQ== 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 k8si1346308ejr.717.2020.11.23.10.03.39; Mon, 23 Nov 2020 10:04:05 -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 S2390648AbgKWSAp (ORCPT + 99 others); Mon, 23 Nov 2020 13:00:45 -0500 Received: from mga12.intel.com ([192.55.52.136]:8569 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729686AbgKWSAp (ORCPT ); Mon, 23 Nov 2020 13:00:45 -0500 IronPort-SDR: kYOZs1+kqnRoF41PQPB4B1GaclnsVigiYDs7gd1CWzXTcv5GfqhEVCJ1PfMi+A5fzcC0os8Xzk Lh9W+aV2AUrg== X-IronPort-AV: E=McAfee;i="6000,8403,9814"; a="151072817" X-IronPort-AV: E=Sophos;i="5.78,364,1599548400"; d="scan'208";a="151072817" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2020 10:00:37 -0800 IronPort-SDR: uIJ4xAF3qw/Rcf2+KRTJQ9eAiso9qCyOcgRGhS6DXYqHRVSdfyYteyYsRbbBLbRpVGCXhW3EjL 3CoEmmfbw+EA== X-IronPort-AV: E=Sophos;i="5.78,364,1599548400"; d="scan'208";a="332267090" Received: from suygunge-mobl.ger.corp.intel.com (HELO localhost) ([10.249.40.108]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2020 10:00:34 -0800 From: Jani Nikula To: linux-kernel@vger.kernel.org Cc: Christoph Hellwig , Andrew Morton , intel-gfx@lists.freedesktop.org, jani.nikula@intel.com, Jens Axboe , linux-block@vger.kernel.org Subject: [PATCH 9/9] blktrace: make relay callbacks const Date: Mon, 23 Nov 2020 19:59:29 +0200 Message-Id: <7ff5ce0b735901eb4f10e13da2704f1d8c4a2507.1606153547.git.jani.nikula@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that relay_open() accepts const callbacks, make relay callbacks const. Cc: Jens Axboe Cc: linux-block@vger.kernel.org Signed-off-by: Jani Nikula --- kernel/trace/blktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index f1022945e346..b5c4b9ade960 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -449,7 +449,7 @@ static struct dentry *blk_create_buf_file_callback(const char *filename, &relay_file_operations); } -static struct rchan_callbacks blk_relay_callbacks = { +static const struct rchan_callbacks blk_relay_callbacks = { .subbuf_start = blk_subbuf_start_callback, .create_buf_file = blk_create_buf_file_callback, .remove_buf_file = blk_remove_buf_file_callback, -- 2.20.1