From patchwork Fri Sep 4 11:58:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 514400 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oi0-x23c.google.com (mail-oi0-x23c.google.com [IPv6:2607:f8b0:4003:c06::23c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FE561402A3 for ; Fri, 4 Sep 2015 21:58:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=KyyjIMhb; dkim-atps=neutral Received: by oixx17 with SMTP id x17sf4426378oix.0 for ; Fri, 04 Sep 2015 04:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=BHmThRapwIOMj1FXmfjLUWWfgGLmVHeGiHwZa0Uo5cs=; b=KyyjIMhbtBEDudtJmsVvOjxFIqmaYJTiPf9OKlVDco72FG5ztDZQDAVaQcn8gQoDju 32sBY4YZ15yMp5iNayYYBSqqnYAJfytnZ63QatvnlZlDxQR3hetlTiyNnUh3a246hrSq y4c6qVNM/NyCoyzPzk0ahvJ8Dp7EZ/p8xS9u1r1NxE9w0+vp9dK0QMrAi0zgc2XYYBrT ZEhZV5Y1vnJ6RLds4wlAZzr9FYoAYFL/hDgAYHWAacwG0uvtXydSEzuh8H8NvrLIfSKy hN/mfCFzlYCtoa+HgfsyPyOEz6fTSrqeMSAM2cCaQaEYQUUO5fS6Fazjl0MQ4i8iNkr6 8S1g== X-Received: by 10.50.43.162 with SMTP id x2mr41974igl.3.1441367907697; Fri, 04 Sep 2015 04:58:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.28.101 with SMTP id a5ls171768igh.16.canary; Fri, 04 Sep 2015 04:58:27 -0700 (PDT) X-Received: by 10.66.240.138 with SMTP id wa10mr2775497pac.43.1441367907336; Fri, 04 Sep 2015 04:58:27 -0700 (PDT) Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com. [2607:f8b0:4002:c07::233]) by gmr-mx.google.com with ESMTPS id g144si224814ywb.6.2015.09.04.04.58.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2015 04:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4002:c07::233 as permitted sender) client-ip=2607:f8b0:4002:c07::233; Received: by mail-yk0-x233.google.com with SMTP id k143so17913762yke.2 for ; Fri, 04 Sep 2015 04:58:27 -0700 (PDT) X-Received: by 10.170.213.137 with SMTP id e131mr3598032ykf.117.1441367907100; Fri, 04 Sep 2015 04:58:27 -0700 (PDT) Received: from localhost.localdomain ([187.64.235.43]) by smtp.gmail.com with ESMTPSA id b123sm1969823ywf.6.2015.09.04.04.58.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Sep 2015 04:58:26 -0700 (PDT) From: Fabio Estevam To: alexandre.belloni@free-electrons.com Cc: k.kozlowski@samsung.com, ryabinin.a.a@gmail.com, rtc-linux@googlegroups.com, Fabio Estevam Subject: [rtc-linux] [PATCH v2] rtc: ab8500: Add a sentinel to ab85xx_rtc_ids[] Date: Fri, 4 Sep 2015 08:58:05 -0300 Message-Id: <1441367885-10077-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 X-Original-Sender: festevam@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4002:c07::233 as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Fabio Estevam Add a sentinel to ab85xx_rtc_ids[] in order to fix the following error: drivers/rtc/rtc-ab8500: struct platform_device_id is 24 bytes. The last of 2 is: 0x61 0x62 0x38 0x35 0x34 0x30 0x2d 0x72 0x74 0x63 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x8c FATAL: drivers/rtc/rtc-ab8500: struct platform_device_id is not terminated with a NULL entry! Reported-by: Andrey Ryabinin Reported-by: Olof's autobuilder Signed-off-by: Fabio Estevam Reviewed-by: Krzysztof Kozlowski --- Changes since v1: - Add also a Reported-by tag from Andrey Ryabinin and also Reviewed-by from Krzysztof Kozlowski. drivers/rtc/rtc-ab8500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index 8537d1e..51407c4 100644 --- a/drivers/rtc/rtc-ab8500.c +++ b/drivers/rtc/rtc-ab8500.c @@ -445,6 +445,7 @@ static const struct rtc_class_ops ab8540_rtc_ops = { static const struct platform_device_id ab85xx_rtc_ids[] = { { "ab8500-rtc", (kernel_ulong_t)&ab8500_rtc_ops, }, { "ab8540-rtc", (kernel_ulong_t)&ab8540_rtc_ops, }, + { /* sentinel */ } }; MODULE_DEVICE_TABLE(platform, ab85xx_rtc_ids);