Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp629596imm; Sat, 8 Sep 2018 06:02:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdagEzZRlt7lJlWeCsrVPK9dSEzFrhqBwn7APo7JvKbiW+X+81AIgsB6Vp2Z2vWc9EfCdmOo X-Received: by 2002:a62:c288:: with SMTP id w8-v6mr13777134pfk.92.1536411765030; Sat, 08 Sep 2018 06:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536411764; cv=none; d=google.com; s=arc-20160816; b=Q6RkN8chv5FZXfD5gZyyEkqu0hxaUT8S77DFkK+dMqZO+KA2MA2ScvLYvuOpJbLwEW KDGIE+IYcgwpdctsZX/KQvKQ1km+PwjC6cYVeGTaZ62wxkRC9FI2WKB6twC7gyyfjGlC AKRhK6HsZ8F5vFDh9bvqPN/+OXl6aOWTYp8Z7/PBFe/RKziClVDcnkx8y8VK4fJu7ZLB vzCh8bjQnmq5lVSx6oLzjRv5/NaNxEFCamDZVjvMacs0pJVLJwW/JiuqeBlazg2ZiQpI 59x6J8O79GmPdYNl3ZQ4OJNQSbZ3LMZzavEJQuPCPVyMABzBLI7lOmvKglFQJGLGn6Wq wDtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=lFl724Wo7aBYI1wKAEVfFjemuSewIGIIGUWceNrQVnY=; b=eJ8ASMQow/0atW27ifTtWgSKFoYBar9n7QBnjrcVlCRCpgczCsTlPHIpYu44pq7FjD mVKOXUhJoB/HOVST7ybwR+2m33GWEBcYfTv6lYJQMuifbYv7y4w8HfpJKbwMlF8RNSs5 1cZWU63u8BZrXbQHeZ3VIU29wd+YNoi/lnXL7XWCbKEosbHv48VpTJWohRTU6aBjJJ95 DtwdZyDkf7BLOJH37Bh0BowyqEcI1+eaAkNZyNp4WUy7n6F5bRNfSmUTLYm79hQIoysb cWqOjUZtL8IRZBmobcetG19L7N4uyVCVM2MkKr9bS9tLHP9sAifc9kCJM1b1WJPC5rEK y80w== 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 5-v6si10924627plx.27.2018.09.08.06.02.29; Sat, 08 Sep 2018 06:02:44 -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 S1726737AbeIHRqm (ORCPT + 99 others); Sat, 8 Sep 2018 13:46:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:43092 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726062AbeIHRqm (ORCPT ); Sat, 8 Sep 2018 13:46:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 94EFCAE3E; Sat, 8 Sep 2018 13:00:58 +0000 (UTC) Date: Sat, 8 Sep 2018 15:00:55 +0200 From: Jean Delvare To: zhong jiang Cc: , , , , , Subject: Re: [PATCH 1/2] s390: vmlogrdr: Use ARRAY_SIZE instead of reimplementing its function Message-ID: <20180908150055.1842ce99@endymion> In-Reply-To: <1536402388-23872-2-git-send-email-zhongjiang@huawei.com> References: <1536402388-23872-1-git-send-email-zhongjiang@huawei.com> <1536402388-23872-2-git-send-email-zhongjiang@huawei.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 8 Sep 2018 18:26:27 +0800, zhong jiang wrote: > ARRAY_SIZE has implemented its function. we prefer to use the function > rather than the open code. > > Signed-off-by: zhong jiang > --- > drivers/s390/char/vmlogrdr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c > index 069b9ef..58333cb 100644 > --- a/drivers/s390/char/vmlogrdr.c > +++ b/drivers/s390/char/vmlogrdr.c > @@ -153,7 +153,7 @@ static void vmlogrdr_iucv_message_pending(struct iucv_path *, > } > }; > > -#define MAXMINOR (sizeof(sys_ser)/sizeof(struct vmlogrdr_priv_t)) > +#define MAXMINOR ARRAY_SIZE(sys_ser) > > static char FENCE[] = {"EOR"}; > static int vmlogrdr_major = 0; Reviewed-by: Jean Delvare -- Jean Delvare SUSE L3 Support