Received: by 10.213.65.68 with SMTP id h4csp2622538imn; Mon, 9 Apr 2018 06:33:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ahRqjG7r0ZBLCNhLBkDMybu9QWRcvpp+JubS1sZlKORheht8xIctI1p/cLCDz3pxiCcmN X-Received: by 2002:a17:902:1c1:: with SMTP id b59-v6mr38757538plb.325.1523280822111; Mon, 09 Apr 2018 06:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523280822; cv=none; d=google.com; s=arc-20160816; b=mcMS//lq6cWSbLNcHCTB0Lwx0A7BJpBKq0eldvWY1MbPxGahP1XLm+MxPhdowIUixs 4O9EhIXrm3r5EGRIoogSbpaILFt8Y5ukHAiDHyF1bkMO9p4iPkp7dwrsJessQtIOf/wx 47Lz2H+PTWHRXDB8qc+MMs7R4K8uUAHAADkhaYNBc2l+Xi6LCMHvWCj8skk7UW0G8Ap3 eAVWq1U3NEIn45GhkgHFi9DXjz+WmduNxUCMA5LPT9GK8t/RZVsvvxVgwBNt3aKQFAGC HYtNnC9NvDzNWNiTGUmeaFSGoih0go04MSsF1/0+pscdB1XnuspSYR8byiy4tpKmMy1B SQ4Q== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=iwTlc11A8zNBjNPb0iqmiXSbDnwLRTdTpNnK2H09uTk=; b=WZsMeebuWagrcYBdOhESAj2E0o1moZq39df9tl2ayYiqUsuT35zRSu3zcd5pLuUfeZ lsEFA3X914tLMK3V4e1EgIvCdmp8fBpJ+YPom6phkdgvh25/P/iK1OSwTMNnVuGQdDZB SEBHqw/FNNQUSl6vAkTy0Z7h5LAcBiu4no7uKrUliRfGfqov9SSFQI18oHCC0g98Ijmg Xet87/QYRMuqgWXN2WwIEoV5G7Oe+gGSvhVKiyv+DouHNNstFWcEcyU7DDYMlLFO7rjx 7SPqntNrFaisO0+QXSYlNdy486khl9bd3Uf6SH4SS/JPvwBFFVMKDKG2bAi3F7lk2/yT vwUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=D1IuE6ml; 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 j17si243261pga.495.2018.04.09.06.33.04; Mon, 09 Apr 2018 06:33:42 -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=fail header.i=@gmail.com header.s=20161025 header.b=D1IuE6ml; 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 S1752472AbeDIN3i (ORCPT + 99 others); Mon, 9 Apr 2018 09:29:38 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35941 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbeDIN3d (ORCPT ); Mon, 9 Apr 2018 09:29:33 -0400 Received: by mail-qk0-f194.google.com with SMTP id o205so9225298qke.3 for ; Mon, 09 Apr 2018 06:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=iwTlc11A8zNBjNPb0iqmiXSbDnwLRTdTpNnK2H09uTk=; b=D1IuE6mlbMPhozZ86q6bYdnf9z7T6OT3MGDbVfawKfYdcPZg0L0+HXpzlWDf7A6YOL ph2JhnLLFsiRBN2TooL4qsPqafE+xJAfmo975/1zzCc2MUfMEOhsfYoYmR3qnqr+pWEH mdYfKF6HhcX7ZA/gdOet8O1sIAw7Q/zB8eT77J/wv4W4SH+qQxCdz0pbUp7SJmIEws4G HhUsEA4Kbs7Rj6VXrp6y9r37dGMTTL5XWJE6tuD9kQAeqnPag4qOqbdkQ0d+2Mxglz33 5PbD1oANSeyZIwo+UhLwEbG5NKw6jAzigS9DJ4Lm9Fy/QjGiwiRPMDtgummRoCmtYWPS nABw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=iwTlc11A8zNBjNPb0iqmiXSbDnwLRTdTpNnK2H09uTk=; b=NMzwxsl+VLJPkif9/Ef6UdLiFSJksqyn5YSlCNvirroYrXFnoRVhjc4sCx+PbbFgdJ lNykwPZZra/DWXAo3a9Bt2Pc7NkxE3V1ye6CoABYz+qKNFBPG0eQfK1ssQNlZ9FTHanB rB81lcQ7/melDjBeWceN5sKOlytGr2Vt+jElA01GYDXx7rbJ/clzumb2qR1y3Ltvz4DJ +GjpsgyhKO/XBF/OqJuF86WfP7aZcGK6jYbqLPO2z0b3H2ACbeZgKcWUt+Nfr6KFmUci DOQwBDD1TtSsNZqd3V/CGRxDnbl5hut0mLP7stYRBVr6DM2H6vkq1obXZFVjnh98/wyS AzPA== X-Gm-Message-State: ALQs6tCqCW748k6Gp0HRsUk4KO5Nbo39svSgZSJ8eNCWGGNRYspGkDhO /ytZ43UWEP5AXiR6x8WvquoakFqs8cuw9dFG7lE= X-Received: by 10.55.10.6 with SMTP id 6mr48645472qkk.271.1523280572535; Mon, 09 Apr 2018 06:29:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Mon, 9 Apr 2018 06:29:32 -0700 (PDT) In-Reply-To: <2047337098.98106.1523186884813@email.1und1.de> References: <1523178315-30562-1-git-send-email-geert@linux-m68k.org> <2047337098.98106.1523186884813@email.1und1.de> From: Geert Uytterhoeven Date: Mon, 9 Apr 2018 15:29:32 +0200 X-Google-Sender-Auth: t8XzGaTDbB_nSxs7b4_ZWcWYpkU Message-ID: Subject: Re: [PATCH/RFC] soc: bcm2835: Make !RASPBERRYPI_FIRMWARE dummies return failure To: Stefan Wahren Cc: Scott Branden , Florian Fainelli , Eric Anholt , Greg Kroah-Hartman , bcm-kernel-feedback-list@broadcom.com, Ray Jui , Dave Stevenson , Phil Elwell , Arnd Bergmann , linux-rpi-kernel , Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, On Sun, Apr 8, 2018 at 1:28 PM, Stefan Wahren wrot= e: >> Geert Uytterhoeven hat am 8. April 2018 um 11:05 = geschrieben: >> If CONFIG_RASPBERRYPI_FIRMWARE=3Dn: >> >> drivers/gpio/gpio-raspberrypi-exp.c: In function =E2=80=98rpi_exp_gp= io_get_polarity=E2=80=99: >> drivers/gpio/gpio-raspberrypi-exp.c:71: warning: =E2=80=98get.polari= ty=E2=80=99 is used uninitialized in this function >> drivers/gpio/gpio-raspberrypi-exp.c: In function =E2=80=98rpi_exp_gp= io_get_direction=E2=80=99: >> drivers/gpio/gpio-raspberrypi-exp.c:150: warning: =E2=80=98get.direc= tion=E2=80=99 is used uninitialized in this function >> >> The dummy firmware interface functions return 0, which means success, >> causing subsequent code to make use of the never initialized output >> parameter. > > i think this is more theoritical, because we need to get rpi_firmware fir= st and in this case it's NULL. Sure, I just want to get rid of the ugly warnings when compile-testing. Most dummy functions for other subsystems return error codes. >> Fix this by making the dummy functions return an error code (-ENOSYS) >> instead. > > Anyway i'm okay with the change. OK, thanks! Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds