Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp843953ybk; Wed, 13 May 2020 14:49:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7wCv4xookNoGV4YJe3nMeTbB8xabjYT6Pn1wlokrfCqiSqTkhceqtMoSZO4P7UygSwkMg X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr1038881ejb.204.1589406563187; Wed, 13 May 2020 14:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589406563; cv=none; d=google.com; s=arc-20160816; b=l6UBRSQl4z8v423+oSm2GZRgvD1gvpSgcVUOVW3TEX3ypExeYvEQbcbn+HDmfDbAWa GOMKP60UnGfnW2/jYlC6cNfTgtx5yXDRcTr/vY7vd0W2oM2HG6th54R52ra7d1EHc227 F3PaY9lggWfeh7nPt/dMR7H/fvWQYx5Nkw6UR0PvVnmfDizM9zi4Bn6LjoCKyJFDlS/O F8Z4denZTXO/XA4+dA692ISCd5t97WFpIk1iykmh0clUUWI23dbIDCZVVz5f4K7B0ngF v8UrHuWdjOfoGKzBxzhc5ZnWI9nxTpMtPiT6I2Up2fqZNi3RFTrIcnsUtqrTpCWZmI6C VAdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xXwPehQJdO8W/RRFT9lpEbo/rwg/NqlvrsX9ydy+gUY=; b=kornlMAKqPEZhXk0L/GCAg7I9Z0zjPwJGfaSCR/6YqUzc96bw2IScL1u9mFIjk4aYy 0Ki7GJwYciUlKStZkClYqRr2T2k8/xiq5cyfk01j7vfSYM7E2e2B+05HdgnYhGCJ+84r Xx/d9ob4pbrXdsuleYuSSuc+TxCvaeAfE62Eqga7+tuRtC/cpT0YpcAjKx45PV7E0TP0 vNQ27qO56RHLg1WAbUV1KmUs78DUADdHaDUNUiG1U3iRpMcH8nO62Wb7uAtZ+YqX+DHs xqp3i/ZbtIZoYvS5VH/7nLXL8d+QHKYUp7swvftFaV1ohWvADvSUFl7TPN/P6/lEDv7+ rsQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rr+s2C7s; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si591753ejq.420.2020.05.13.14.49.00; Wed, 13 May 2020 14:49:23 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rr+s2C7s; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730130AbgEMVrA (ORCPT + 99 others); Wed, 13 May 2020 17:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729799AbgEMVqs (ORCPT ); Wed, 13 May 2020 17:46:48 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D484C061A0C for ; Wed, 13 May 2020 14:46:48 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id s8so1302199wrt.9 for ; Wed, 13 May 2020 14:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xXwPehQJdO8W/RRFT9lpEbo/rwg/NqlvrsX9ydy+gUY=; b=rr+s2C7s3IetyBx7kdhC2xyGjmSTPhmqZhI5/PZ+FbS/2BORt8LIkjnLxdLspEASX0 51sn7beVDeEo6rKv1MXsb0gx+hhHXvMtjVkSAXAscD3TvvRmb4hg/48XyNdRmyaAlqrx 3HEH1yPjKSPvKuMRkSYDf4dG4oo0yAEmb0q6IFfTAFvN/fr9ekuEDG8UWgqUnxKtrxyk X17kJ375os2vhxJE6ezApRqMSgh8Yln4Zv5y8sltZTHJZaXqwrQDfpS+FMV1LSjKe/F7 iymLY764L6GTLbeuBfI7gpkJRtxt42+ogtqXGM7bKsaGZj9xRX2EXol4NY+ywW8xCAON YbKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xXwPehQJdO8W/RRFT9lpEbo/rwg/NqlvrsX9ydy+gUY=; b=mARfip0FIyOR+728BNB4bzVUzNj84eTrtgzlQLd/06n9/TX4Ja+kyvO6WJ4V+p3EQH IhMhKixz3gAlgWHTCg7UyzVlbnaB24AiniODysq74w/cdYOvaHHMVWSAKDQpg7isAo60 pN9Rs3MT4BRVeMTKcKC++8kEvi1iGw6Ivod8BWXvCgXdRh3Zo82TTmE4/EAoAhhMcyir NcdAoPl+//HS5W+r4iAIC9tnMLi8l2mUSxDpQxZjF/uY3x0lRvadcj0qzxmII4pjNuMO LL+LquqS4mXR9SQ7SU2sE4kMrUqV0FBz62PDKWvDkMPRuWatlxMA5FySXc4Z56j6kZ17 NZUw== X-Gm-Message-State: AOAM5302vFEc8JqIkvWii4LDGNCTc/b6GSHAQs/LK+1fFW8B7TjCpsl4 8R7idJYQGqeQC1x/hB/evEc= X-Received: by 2002:adf:e5c9:: with SMTP id a9mr1683725wrn.292.1589406407182; Wed, 13 May 2020 14:46:47 -0700 (PDT) Received: from localhost.localdomain (cpc91192-cmbg18-2-0-cust374.5-4.cable.virginm.net. [80.6.113.119]) by smtp.gmail.com with ESMTPSA id m23sm1699734wmg.45.2020.05.13.14.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 14:46:46 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Cc: emil.l.velikov@gmail.com, Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, Jason Wessel , Daniel Thompson , kgdb-bugreport@lists.sourceforge.net Subject: [PATCH 09/11] kdb: constify sysrq_key_op Date: Wed, 13 May 2020 22:43:49 +0100 Message-Id: <20200513214351.2138580-9-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200513214351.2138580-1-emil.l.velikov@gmail.com> References: <20200513214351.2138580-1-emil.l.velikov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With earlier commits, the API no longer discards the const-ness of the sysrq_key_op. As such we can add the notation. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-kernel@vger.kernel.org Cc: Jason Wessel Cc: Daniel Thompson Cc: kgdb-bugreport@lists.sourceforge.net Signed-off-by: Emil Velikov --- Please keep me in the CC list, as I'm not subscribed to the list. IMHO it would be better if this gets merged this via the tty tree. --- kernel/debug/debug_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index 2b7c9b67931d..355bea54ca0e 100644 --- a/kernel/debug/debug_core.c +++ b/kernel/debug/debug_core.c @@ -920,7 +920,7 @@ static void sysrq_handle_dbg(int key) kgdb_breakpoint(); } -static struct sysrq_key_op sysrq_dbg_op = { +static const struct sysrq_key_op sysrq_dbg_op = { .handler = sysrq_handle_dbg, .help_msg = "debug(g)", .action_msg = "DEBUG", -- 2.25.1