Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5147771pxb; Sun, 7 Nov 2021 06:11:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxq/Ngn/7G0ZvHn1onfFgmz5uxy3Kq6dQSqxPUEwv9H+N+OlWKdiLEnLtA+ZWpdnSY9hin X-Received: by 2002:a05:6e02:194b:: with SMTP id x11mr32975248ilu.242.1636294298242; Sun, 07 Nov 2021 06:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636294298; cv=none; d=google.com; s=arc-20160816; b=PCeatCrXl/oSAWe7IG/7z80dFI5qtzCbDSkaXGChgVeRTcy/nRaiTuCSkGvI9zyDgN FR8s4Sf0PmJXmvPvPdVa6xcPXCIj3WFel0y+1Gbs+51ZnQcAetgv57vMFbzhZFn75Wad fDzHzY3kx0FmI7BCQPo7TxhusvkrTJ/eixx31/U4wGF+ApiioxTZyLGoKNoC5/9ijK6b vBBPcr6n3T4S1k7O6EjgnwMfm7UGVBFfPgrTkFvTOYpFWA/FldNPPy1iVYfu98cuRhkI rPf44OoW6Qj3kfhl/xw7XCJt0LQ3pLmSH6RFQPEvAHHV5GO0mIL3C6CjEMyGkGF4CCxQ Q9uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XJUFpExoWemk4FQi9OWmv4L9rgSOIELB05/UcaW0E6w=; b=alMc50pRzAjrZ/PskIA/9OYWIZOSypUgP95yxx1SREtpTGcZI3QY5r4OvfRngtVJNC LxBrUyfKC2x/oRytWQF3480HwsXOVRXD6blZzYuhBe8j1gFpngpN1jF5tVcbfq+zg5z8 03QK/TLbk+i18M4fmtSrcnCX1fxGTXZIG2RHyPhitl7R9ASnKWoI7jGU+48ySJ4ACxsK JO4fM6SCf5lnNOFpe2uIg/DVYKGpDItrRGBqOVPYOQWfpwIMMdojJcUbA8Gk/Q9d9HFc HiMHlGe5owZOmAO2/zonDlwlvOte0yTac0BNw3kgu1uI1sNOBB3b+2fLtpQGlvhPYGsl q9gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xlv04d61; 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 h5si20454014ilq.93.2021.11.07.06.11.25; Sun, 07 Nov 2021 06:11:38 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xlv04d61; 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 S233381AbhKGDYZ (ORCPT + 99 others); Sat, 6 Nov 2021 23:24:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbhKGDYY (ORCPT ); Sat, 6 Nov 2021 23:24:24 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B561C061570; Sat, 6 Nov 2021 20:21:42 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id y11so21639778oih.7; Sat, 06 Nov 2021 20:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XJUFpExoWemk4FQi9OWmv4L9rgSOIELB05/UcaW0E6w=; b=Xlv04d61JczZqYaCpoSsR6OEo5lBdreRY0cpWCv7wCFbZiFguAVQ6YPD+5Z89cAFVM +Swpeyt/I/oVvcifDGH12potiupCL3IBslA5S5yfbGVBj+Kz3anjAz5Punxk60G+mnKF AtM0kvctrsI4JMTZNu/Iodd/EQ2WeYo79gfyjSjvUwoyl+2coyby8lbw0EbGY6ntLLx3 zLg+9yu2ghcDrI4TgP6vKvEvqS4gN8OJgai2DeiPPPYGBsNWiIFoiYTUnMTZ4iS13I5j axoO2cvwWVry7mlXECTrmlFIyiTt2+DogAHLIG00uukaq4YdhT0Uoo1I+hHY6sccHQFE ma3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XJUFpExoWemk4FQi9OWmv4L9rgSOIELB05/UcaW0E6w=; b=4J7Q2/DCFNEMa7oiCY68nu+syzkVxdMy3YtP1SwpZRwdKFEDuE87WyXZtFGynKJ8Vb q9gsyWxVts44sJ/wuA9K0+M1lXVwy4wtyyqS+0wddWJZNnw9ZTn0AZ/LhxRxYCs+5JOw 04g3OC4/4HIFt/trsZ8TViCDlYpDtQ8FNvGSZoT/a2oHE82JTrhW+p4nJM5hAPCKeSvJ 30Ogvaw/V6ih6MJRvpZ+wp6Z8RDO9Kno3htrEzXKUqvgvFG7xDXS2jJmxcsM7C0+OhZT jSTbKVt3j/pwyHDBphV+iZTiFZP1y4ms0ea7sJNK7++m2XjIsZEv7t+R+Usl4xZ35sPG ZpYA== X-Gm-Message-State: AOAM5310cciGNMvtONy+wTu3mS1W2YSTQlFIHlrZhUtkrUKUdYPwVnzW 3oMBMqc7WJRXlpXWVgJ+Lgk5mNoQ78ulhBNRICQ= X-Received: by 2002:a05:6808:2108:: with SMTP id r8mr15972082oiw.118.1636255301810; Sat, 06 Nov 2021 20:21:41 -0700 (PDT) MIME-Version: 1.0 References: <20211106220315.392842-1-ajaygargnsit@gmail.com> <8d0346ba-4819-c25e-f208-0b51116d9147@gmail.com> In-Reply-To: From: Ajay Garg Date: Sun, 7 Nov 2021 08:51:29 +0530 Message-ID: Subject: Re: [PATCH v3] tty: vt: keyboard: add default switch-case, to handle smatch-warnings in method vt_do_kdgkb_ioctl To: Pavel Skripkin Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, andriy.shevchenko@linux.intel.com, kernel@esmil.dk, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > I am not against these braces, but I, honestly, dislike them, because > `case : {` syntax looks ugly _to me_. > > KDGKBSENT uses it because of local variable `len` and not using them > will cause build error. Ahh, that explains the difference. Floated the v4 patch at : https://lore.kernel.org/linux-serial/20211107031721.4734-1-ajaygargnsit@gmail.com/T/#u so that consistency is maintained in the styling. Let's continue on the v4-patch link now. Thanks again Pavel. > > I didn't find any strict requirements to not use brackets when there is > no local variable, so it's up to maintainers (again). > > > Anyway, thank for respinning :) > > > > With regards, > Pavel Skripkin