Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1759608yba; Sat, 27 Apr 2019 06:33:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKE2FpllwuRO/nU2s3Iw16dACG2YR4MAtlxHELh0kDzyYHmi7WanbzVn4syaVxUhff1Ljy X-Received: by 2002:a63:fb56:: with SMTP id w22mr12245352pgj.354.1556372010764; Sat, 27 Apr 2019 06:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556372010; cv=none; d=google.com; s=arc-20160816; b=kKAkHeOCpkvF6uw95+GMkbMrgvnPivj3AEi3WsJ/ttBT+a0Axm5d/4z9HC8ApeVdQh OxeckL74YGtRUMKAZC3e/FQkzCBhMOlSAoSscg8GyIZLrue17UVIOZi9QolIl/asUqu+ ho4mYM0TSiA675mxhz3DZG5C8QnBfg6Ov0qMW/N73aIGdZrjG+vLIuimQpSUFAObOSQN utUv4+UFBwqv7ynacyroXc+dFjTWGy9FFg7+X8j2woxhli7MbTrAsYPk2mTTGnGQW8iY 2d/62AnHMnAlFteD37qev8thA9EX0ddh9LnvTSXJW2AePvmZI4EFkEPEClYQLs3zhKWw 6PcQ== 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:dkim-signature; bh=h5iSYgL9CbTtNfktZORIdyYYTQ8I6igq0CoGwBA6SHw=; b=SvYSHRg6UaQnnshwIfNBx0ZLo0Zhzg/kgDSjyQnwtJOFSYa7QwBDjDPUt0GRQ29H4S RXNZ93UZi6NNfWZvEMG0Tibnyzk306E3TkCFx9uLKQPyrc9X3ovmcaeL8pfhLfW0G/Uz oKlebWa4iJl77vkwff8aGdUYNTmDh9X+4BA7A+bGUrU7QHp9TGTgeDW7dmZfHhDz4+Hi /XFsXA0vnM3ShpDUKDwucNEXhAZVPMjHSzhbXHT8ObTi6eITlZt1FRxYan0h6Ux0bukc LhoQZ1eBn+51GFIUumE3RQJPhZYUkev+PL5VUDIfEVchQ51Y4hWNwZIEQV7e7KWaHy0c iKig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nexBWa1s; 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 d6si7655833pfn.66.2019.04.27.06.33.15; Sat, 27 Apr 2019 06:33:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=nexBWa1s; 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 S1726541AbfD0NcS (ORCPT + 99 others); Sat, 27 Apr 2019 09:32:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:36986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfD0NcS (ORCPT ); Sat, 27 Apr 2019 09:32:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E433F2087F; Sat, 27 Apr 2019 13:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556371937; bh=F/Ri3rbRNbdBS8CeJ3YkqZ5ALE9RaYzYV4i/TX+VbhY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nexBWa1sKOnsIU/+eE/Arr0X7crav6ldqrhFgjM7W8ztYCtpv+iiTXftfvQTPlJG3 Z8PjosvAL9baHK8g4HVoOep4odQGPEL6uE1Db+W4FngO8Erm7fuwx70sU6Qt1CWHRh QbmdhCLabzZBpyFVy53w/oRoRA4SbXzVCZ0vDS90= Date: Sat, 27 Apr 2019 15:32:15 +0200 From: Greg KH To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, andrew@aj.id.au, andriy.shevchenko@linux.intel.com, macro@linux-mips.org, vz@mleia.com, slemieux.tyco@gmail.com, khilman@baylibre.com, liviu.dudau@arm.com, sudeep.holla@arm.com, lorenzo.pieralisi@arm.com, davem@davemloft.net, jacmet@sunsite.dk, linux@prisktech.co.nz, matthias.bgg@gmail.com, linux-mips@vger.kernel.org, linux-serial@vger.kernel.org, linux-ia64@vger.kernel.org, linux-amlogic@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 10/41] drivers: tty: serial: sb1250-duart: fix missing parentheses Message-ID: <20190427133215.GD11368@kroah.com> References: <1556369542-13247-1-git-send-email-info@metux.net> <1556369542-13247-11-git-send-email-info@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556369542-13247-11-git-send-email-info@metux.net> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 27, 2019 at 02:51:51PM +0200, Enrico Weigelt, metux IT consult wrote: > Fix checkpatch warning: > > ERROR: Macros with complex values should be enclosed in parentheses > #911: FILE: drivers/tty/serial/sb1250-duart.c:911: > +#define SERIAL_SB1250_DUART_CONSOLE &sbd_console > > Signed-off-by: Enrico Weigelt > --- > drivers/tty/serial/sb1250-duart.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/sb1250-duart.c b/drivers/tty/serial/sb1250-duart.c > index 1184226..ec74f09 100644 > --- a/drivers/tty/serial/sb1250-duart.c > +++ b/drivers/tty/serial/sb1250-duart.c > @@ -908,7 +908,7 @@ static int __init sbd_serial_console_init(void) > > console_initcall(sbd_serial_console_init); > > -#define SERIAL_SB1250_DUART_CONSOLE &sbd_console > +#define SERIAL_SB1250_DUART_CONSOLE (&sbd_console) No, that's foolish. checkpatch is a hint, it's not always right. Also, checkpatch cleanups for really old drivers is not generally a good idea, especially if you do not have the hardware for them. Please don't cause unneeded churn for this type of thing in this subsystem, unless you have the hardware. thanks, greg k-h