From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B7D8C433EF for ; Tue, 7 Sep 2021 07:10:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D88C60C3E for ; Tue, 7 Sep 2021 07:10:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235480AbhIGHLT (ORCPT ); Tue, 7 Sep 2021 03:11:19 -0400 Received: from mail-vk1-f181.google.com ([209.85.221.181]:36456 "EHLO mail-vk1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235953AbhIGHLR (ORCPT ); Tue, 7 Sep 2021 03:11:17 -0400 Received: by mail-vk1-f181.google.com with SMTP id s126so2964287vkd.3; Tue, 07 Sep 2021 00:10:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oBtP9mc69XVfuTO+56uUxq1BAzYKObHV02/QNrtHWJo=; b=fA2OT2K5RPqXkhsHQmYHNnrANulzWhxCdoCODs7+JAe9GHuICq6+nWRgyWc5YysITv H6iw4DywvmvfQfcUDbbUwlXjot8bHT83QoLFzoAoxFNiG/CuBibZB1B2HOuofOuXrlt9 dfEKjXTcgRACWRpZkP3Qic8kk+oRu0anqzukuGt1blybdc8/2EPfS0M8khyPauokI7Pe NdmxVEGxu0c5gz4aiWqlmUAsyVvRBTB6BNtOYgnRZYKR2Fm+GDEefjRmOnLBq4cnTuNH k87meGLi3OafjOiNfvrCUTuYIUGMFFGo6fckvpmCnVuWVMZ1pKjOeYzch0FTzv8ypkI9 8zKw== X-Gm-Message-State: AOAM5301iZnGvzBIILqLm3WbXrpSp5SEp9mNMEOa5g37CuLoiJH2GswM 8jmGJUTMjhJJV5vOh5uxwkjj5L5vZgDEgnKslic= X-Google-Smtp-Source: ABdhPJwIma66+usweJzyanXrJb3XxlLEmfkI/JyuKgfh3YsqK4FosOLOxClx4FPVgkxNvEX+9CZuny8XUrks74d455U= X-Received: by 2002:a1f:d247:: with SMTP id j68mr7008661vkg.7.1630998609343; Tue, 07 Sep 2021 00:10:09 -0700 (PDT) MIME-Version: 1.0 References: <20210907064537.1054268-1-mkl@pengutronix.de> In-Reply-To: <20210907064537.1054268-1-mkl@pengutronix.de> From: Geert Uytterhoeven Date: Tue, 7 Sep 2021 09:09:58 +0200 Message-ID: Subject: Re: [PATCH v2] can: rcar_canfd: add __maybe_unused annotation to silence warning To: Marc Kleine-Budde Cc: linux-can@vger.kernel.org, Linux-Renesas , Cai Huoqing , kernel test robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org On Tue, Sep 7, 2021 at 8:48 AM Marc Kleine-Budde wrote: > Since commit > > | dd3bd23eb438 ("can: rcar_canfd: Add Renesas R-Car CAN FD driver") > > the rcar_canfd driver can be compile tested on all architectures. On > non OF enabled archs, or archs where OF is optional (and disabled in > the .config) the compilation throws the following warning: > > | drivers/net/can/rcar/rcar_canfd.c:2020:34: warning: unused variable 'rcar_canfd_of_table' [-Wunused-const-variable] > | static const struct of_device_id rcar_canfd_of_table[] = { > | ^ > > This patch fixes the warning by marking the variable > rcar_canfd_of_table as __maybe_unused. > > Fixes: ac4224087312 ("can: rcar: Kconfig: Add helper dependency on COMPILE_TEST") > Fixes: dd3bd23eb438 ("can: rcar_canfd: Add Renesas R-Car CAN FD driver") > Cc: linux-renesas-soc@vger.kernel.org > Cc: Cai Huoqing > Reported-by: kernel test robot > Signed-off-by: Marc Kleine-Budde Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds