Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3691666imm; Sat, 21 Jul 2018 00:46:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyY2kdr64msEFZ/gdUWmpHAyMLdBcaSudmXBwqeT6hU+vMcf8no4qrFhGrDfHRLCaAaqNm X-Received: by 2002:a63:1902:: with SMTP id z2-v6mr4698410pgl.86.1532159193976; Sat, 21 Jul 2018 00:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532159193; cv=none; d=google.com; s=arc-20160816; b=Nzaz/wShFSnRWxSWhhbRTK2I2vH8IU7iqWmGVKFjG/d7NPbO+iIDA3AYipeUDI0C2I XGrDCe+Txv/Jl/jg0mGj0gBT69BVxnXCitgSmDzneEjs/kuK+nJFTHPM2VZX6y2ma2IY 35zWnRRh2DOB48RuM4Piy6yG4O1vmXu195WE9koUgYLYTl3Y5GIw13PbAjfbNFtkMMO6 JbQ6cCgeoLLZXvXx3qFl5ptUbiKMnohugX6NxxTAGAZGdb3ygKIc3Nq/TzmcIa7sNAyF DeGXFZtiZQD3iLYIRlp7kuaC9MiA86NQpnXcahs39/+QU0dF640Rx7D+erbMT24m1NOn 6ZuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Pf+rtRrNYCkoXNBJJ9ntW3qBgXaOJ/BUd2nydSGHoHE=; b=gDp8cZjmXp+5O2lI64qbXomLsFnp6nJkQscCY9BL3vd1yaLoVwu6HQc0NyNIpn2XZK f5ggkJWPmsb7o0aXjJX9vbD5OAc+hJzOy2RHKTZi0gqFi0NK4lzjp4SNiD4aAYEhb9KO faAdP7gIgqFdm6FwB2SspACmWQghJnK+AyyswzAWk4o15X6hpwVdKNHu7t6uuq5Ms9cW ZBiJU96Dc1fud5N/nIg2xlYZbeJCECcWUNvcdAJXxvetRwBE298sM22BO2/e+cuL0wPw 1+6wx7OSt+WBYWj8+cSvPVzVlqn00UeS5nP+1Y0SGpN3LKyP/WnEZT4pSJcmQo+DpsFd nd5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x25-v6si3780078pfi.138.2018.07.21.00.46.19; Sat, 21 Jul 2018 00:46:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727666AbeGUIhL (ORCPT + 99 others); Sat, 21 Jul 2018 04:37:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48656 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbeGUIhK (ORCPT ); Sat, 21 Jul 2018 04:37:10 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6BE16AEF; Sat, 21 Jul 2018 07:45:23 +0000 (UTC) Date: Sat, 21 Jul 2018 09:45:21 +0200 From: Greg KH To: rkir@google.com Cc: linux-kernel@vger.kernel.org, tkjos@google.com Subject: Re: [PATCH 2/3] tty: Make constants to be enums instead of #define in goldfish.c Message-ID: <20180721074521.GB6484@kroah.com> References: <20180718001455.140575-1-rkir@google.com> <20180718001455.140575-2-rkir@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180718001455.140575-2-rkir@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 17, 2018 at 05:14:54PM -0700, rkir@google.com wrote: > From: Roman Kiryanov > > enums produce better compilation errors than defines. Yes, if you name the enum. But you didn't do that here, so this patch really does not do anything to cause any "protection" at all :( Please fix this up and resend. thanks, greg k-h