From patchwork Fri May 18 19:24:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Love X-Patchwork-Id: 10411933 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0BC7760230 for ; Fri, 18 May 2018 19:24:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF92228A6C for ; Fri, 18 May 2018 19:24:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E437F28AA7; Fri, 18 May 2018 19:24:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 780F128A6C for ; Fri, 18 May 2018 19:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbeERTY2 (ORCPT ); Fri, 18 May 2018 15:24:28 -0400 Received: from sub5.mail.dreamhost.com ([208.113.200.129]:41181 "EHLO homiemail-a120.g.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054AbeERTYZ (ORCPT ); Fri, 18 May 2018 15:24:25 -0400 Received: from homiemail-a120.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a120.g.dreamhost.com (Postfix) with ESMTP id 353D660009318; Fri, 18 May 2018 12:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=nextdimension.cc; h=from :to:cc:subject:date:message-id; s=nextdimension.cc; bh=MgK3Gkl8K 2mIjrwYmR+q5iuwezA=; b=HZYAIX8Kcyt2OWDdkIET38vaPbgAzDykbVfWlxS/1 S7nuUkXSdFQWrYaBJyVgMQ0L46L2qnC0Q3wMp+VwgbI+xoylha0sBcUxgM65PlcT w/tTCxT9HZNFXzJol+VGt0k7eQhilsNATrCcDCVt83KgX9NNx1SjWfJilCRxzWip pM= Received: from localhost.localdomain (66-90-189-166.dyn.grandenetworks.net [66.90.189.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: brad@nextdimension.ws) by homiemail-a120.g.dreamhost.com (Postfix) with ESMTPSA id E80276000931A; Fri, 18 May 2018 12:24:24 -0700 (PDT) From: Brad Love To: linux-media@vger.kernel.org, jasmin@anw.at Cc: Brad Love Subject: [PATCH] Fix spurious config-mycompat.h warnings Date: Fri, 18 May 2018 14:24:19 -0500 Message-Id: <1526671459-19247-1-git-send-email-brad@nextdimension.cc> X-Mailer: git-send-email 2.7.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Apparently a zero byte file size leads to "could not open" warnings. Adding a single comment to the file removes the warnings displayed after compilation. To prevent overwriting a user supplied config-mycompat.h the file is only created if it does not already exist. Also fix for possible spaces in the path. Works without warning when using both the do-it-all build script as well as manual operation via make targets. Signed-off-by: Brad Love --- v4l/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4l/Makefile b/v4l/Makefile index 385fa83..a7c7b60 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -273,7 +273,7 @@ links:: @find ../linux/drivers/misc -name '*.[ch]' -type f -print0 | xargs -0n 255 ln -sf --target-directory=. config-compat.h:: $(obj)/.version .myconfig scripts/make_config_compat.pl - -touch $(obj)/config-mycompat.h + [ ! -f "$(obj)/config-mycompat.h" ] && echo "/* empty config-mycompat.h */" > "$(obj)/config-mycompat.h" || true perl scripts/make_config_compat.pl $(SRCDIR) $(obj)/.myconfig $(obj)/config-compat.h kernel-links makelinks::