From patchwork Wed May 13 21:43:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 11547351 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 47DF2618 for ; Wed, 13 May 2020 21:47:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F270D20727 for ; Wed, 13 May 2020 21:47:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="rr+s2C7s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F270D20727 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 992986EA9B; Wed, 13 May 2020 21:46:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id A82F66EA86 for ; Wed, 13 May 2020 21:46:48 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id j5so1350100wrq.2 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=NHzKfnsVbVpES6s2vQYYuTNlLZZ/NK9X7C50KN75cyboIEJ9Cydu+OdfBkJ+OL7vLb K/cwCgAaj8A18iUe1X66da2iIK9E3tUmUnOd4hEZRIFayYMPYjj6IRUBIVghmG0CixDM xBHRXkjQ4rt/1lW0cX5TPLXUCWj/GrfKYXQ5Kbig1O56V0QWdMdBHHRKtjw0a/76L7gq 1YD7oBYVv20itxeSAyxu+ZoPJ/hOcq40+xK+uhCOY1WJNukf58FXtRVsosWpBJgg9nuh ol5qV7EEMnwUNfyiDJFkDo9serS1mTIdRHAMDq3PcbfNP2SduTyk3CKVphnvyZ4C1Cik oe6w== X-Gm-Message-State: AOAM530zUIRcGTrXAi5ZIovnvygo5E875SZw1PW5W+1WURmWxiHSfuA+ ok2q+1wMs7+R2mIAuAjLpSlfSP1y X-Google-Smtp-Source: ABdhPJw9XZ5u4qa2WDv17qZvd3SOounzZl47xyXJOSldxT3dsYn4CeJEqn0WOiupCTq6uTcy8reIZQ== 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Thompson , Greg Kroah-Hartman , Jiri Slaby , emil.l.velikov@gmail.com, linux-kernel@vger.kernel.org, Jason Wessel , kgdb-bugreport@lists.sourceforge.net Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Acked-by: Daniel Thompson --- 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",