Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38507985rwd; Wed, 12 Jul 2023 08:33:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEd20darb/DluBafMilBYd6U9dlCuGllWUaZTnnx6T/7yHQrMSbP1tm5T3dR++IZWRcbSEg X-Received: by 2002:a05:6a20:8f06:b0:125:9d2e:ae20 with SMTP id b6-20020a056a208f0600b001259d2eae20mr18160252pzk.59.1689176033764; Wed, 12 Jul 2023 08:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689176033; cv=none; d=google.com; s=arc-20160816; b=yK7Ramk2F7ZiWoBkEBuCAqOoBk1JajjxW3uHlIAViEjZ4C5SdSLfI6peTYGAtoBRXK 2LuWNyfJXyQ4E/r7aWzt17LDY52gN+TKWJkjMOxJ/hqGhob5KZtXO+ry8VuSFDnjWal+ BVYvF2E97eduXCy7aACsVhNm5zWb7niGfhgFgt8AXbZSHSt+Uj3+0v+LayiqdYT5aPrJ x3ahOaUo7eMSEoNek1/+AUoOHl4xhOdo85nghGSwlHypYKeP/g7tIjFhcCg5ixrGTNvM +jYyfZMmkRbEPBOkHLwsBmpAuh0Y16bVQ++r4eynr3fPgp2EwH99ERoVIK+ocMAxtgv0 T9dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r2jUmgPJMl8rNeDpH2GLcq5ImDgq36YmUU+/0NveM+c=; fh=Y7OpqsTYsHfQWLxR+r7rYLhi0VDXaedk5cqUQ0IrslM=; b=umtFC3AT/FWbmWQgPjtG1UY5AscpRz9Ok4cz5lZ4wCoc2ICJKBrITaUFFKWB+iImpG ncXoPKoqVFRSkY31Ng7ZX85bYVEzZfQ4gywO3UVpNfD+74If86Zl71HgH3gzZUegVNHq a709/hwGX7iEPewZJqMEcP7i8Ws+JB786hSNOsT5QfwfdfGs2tUaL1rN0F2Bz4vV7JSz Afd1Dv6kclRsrOS3d1wdCjpYSwLBPUEO89BXpQzt7AltOUHZAQv0Xe8kCo1n/yNa/I6b QpQ6IaU+vaLMNPOzxnGMxPP1DAfWKKQLRvX3txOraxogct0fDq+jr3yGBwdKLXl5zR59 iv3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UCdooMkE; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a654c03000000b0054fb23f1018si3510612pgq.656.2023.07.12.08.33.39; Wed, 12 Jul 2023 08:33:53 -0700 (PDT) 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=@linaro.org header.s=google header.b=UCdooMkE; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233594AbjGLPUM (ORCPT + 99 others); Wed, 12 Jul 2023 11:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbjGLPUF (ORCPT ); Wed, 12 Jul 2023 11:20:05 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B52371BFF for ; Wed, 12 Jul 2023 08:19:39 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31297125334so603495f8f.0 for ; Wed, 12 Jul 2023 08:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689175174; x=1691767174; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=r2jUmgPJMl8rNeDpH2GLcq5ImDgq36YmUU+/0NveM+c=; b=UCdooMkEYlmcH+/GKIRSljMulWWBGH63TzM/BqZq9bgBjr1sGdLtosqgSUbGCEEzjo m7W1rk+X2V7pObvBjCST9USZDZ5VZF/1RBl6O41iXhaR275YmFfzJ7OtCj9+nRp6HPpB lQKhDg1TWTYDRWOHVa4pcjQipoboO9GFErVfWepMof3s3AdkSb4H2ijilhUpquOCL/j8 MaAri8u5ZsVQ/TDcX2sBvarXUp79ENwuv8db663JxWVAKpMFUmOSzeTPvTMknpoePoN8 dDBfTTtozC5DV89B74cZ4PLVjzfWWLaW2gHahea6422LmC6nGJCjgvwjuqRrEtJ/ghj5 kDiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689175174; x=1691767174; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r2jUmgPJMl8rNeDpH2GLcq5ImDgq36YmUU+/0NveM+c=; b=HHS6xMEDn+OR9cZN22N9DvPpNOEZWj3cFC59Elb6gLdKmjz5g6LoWGkJasA0Muh0nl p68MmvwWncqcOR4RnUEJomaYINkNXa6l9qyW2rksvqeCojVqSpcZrkRdupCvLvSFkgWo s2Xfb+AV0v0J2lVYuE76DZtgjALIq04MckxNuZLvhR830WQp95tngcxjerIvT70ax/Ml JLEykJnY6gmGhs+R3NLIBnRu/7+InMVGhopEzRCnK8pzw+MHEbJxCdd9T4dwkUXhFEtH uK3wuTVZGbM7KgQTT/4224xuUelc3u4H2O9cd7P1zbWLveqQG+OvwPQc4gKd5e191NcE FySg== X-Gm-Message-State: ABy/qLbjszVD7d0sH3U8d+zUUrmbDEMoZPhl47mkx3npT5ZvnPWU6DpD ZOonK7OJmmaNZCK3RcNt2/hNFQ== X-Received: by 2002:a05:6000:4c3:b0:314:1d6:8aa7 with SMTP id h3-20020a05600004c300b0031401d68aa7mr1972887wri.29.1689175174315; Wed, 12 Jul 2023 08:19:34 -0700 (PDT) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id r8-20020a056000014800b0030fa3567541sm5349531wrx.48.2023.07.12.08.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 08:19:33 -0700 (PDT) Date: Wed, 12 Jul 2023 16:19:31 +0100 From: Daniel Thompson To: "Jiri Slaby (SUSE)" Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "David S. Miller" , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jason Wessel , Douglas Anderson , "Rafael J. Wysocki" , Len Brown , Pavel Machek , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: [PATCH 02/10] tty: sysrq: switch sysrq handlers from int to u8 Message-ID: <20230712151931.GA458038@aspen.lan> References: <20230712081811.29004-1-jirislaby@kernel.org> <20230712081811.29004-3-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712081811.29004-3-jirislaby@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On Wed, Jul 12, 2023 at 10:18:03AM +0200, Jiri Slaby (SUSE) wrote: > The passed parameter to sysrq handlers is a key (a character). So change > the type from 'int' to 'u8'. Let it specifically be 'u8' for two > reasons: > * unsigned: unsigned values come from the upper layers (devices) and the > tty layer assumes unsigned on most places, and > * 8-bit: as that what's supposed to be one day in all the layers built > on the top of tty. (Currently, we use mostly 'unsigned char' and > somewhere still only 'char'. (But that also translates to the former > thanks to -funsigned-char.)) > > Signed-off-by: Jiri Slaby (SUSE) > > Cc: Jason Wessel > Cc: Daniel Thompson > Cc: Douglas Anderson For kgdb: Acked-by: Daniel Thompson