Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751762AbdGIHAH (ORCPT ); Sun, 9 Jul 2017 03:00:07 -0400 Received: from mail-eopbgr50109.outbound.protection.outlook.com ([40.107.5.109]:28422 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751113AbdGIHAF (ORCPT ); Sun, 9 Jul 2017 03:00:05 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=axentia.se; Subject: Re: [PATCH v2 1/1] mux: consumer: Add dummy functions for !CONFIG_MULTIPLEXER case To: Andy Shevchenko , Kuppuswamy Sathyanarayanan Cc: "linux-kernel@vger.kernel.org" , Sathyanarayanan Kuppuswamy Natarajan References: <83ff1554464c781df142117ed30430476ec73634.1499537263.git.sathyanarayanan.kuppuswamy@linux.intel.com> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: Date: Sun, 9 Jul 2017 08:59:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR0502CA0010.eurprd05.prod.outlook.com (2603:10a6:3:e3::20) To AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9e2e3841-1d0f-47b7-5e5f-08d4c6981ed6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2548;3:Io1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cPgJii5XxhcMSn0pYovBRQEMDraJZUDTuUqP+cITvLuhzPi2zfVS6zlkXGaIywBfZ45JpRMn5aFkK6cFrv4Wg9jWI3nIfXIELLSdNSUy2DZ8KHs92UGO8hivBT0pbYeGhbxARexXjMaKYodYGI6KK+KrUAk1KqjMCIA9B4/ZWPS8bKpGcSV+YFVzkz+jbBfun80QFYaRkU8SBGzfNfn+TTMNgQ7QM5TTPV7XV60H/1jiXrIKRBSrzOs3xvaL4PdLn8RkYErluIq2O2jVN718iEpURnsbifOMK6G0zrGEhShEmy4D/hdNd/d2LSrRi2npef13t2veFFFStzueRD7/zskGqQA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(2017060910075)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123560025)(20161123562025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM5PR0202MB2548;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjAyMDJNQjI1NDg7NDpXQlROSnJsOWNkNVVCWml4SlJFUFVzeStr?= =?utf-8?B?SDNQdHFORGZrQ0FoanFkTk9IamxqVXR4RCs5a051OEY4cDkyWWdjSk1VU1lp?= =?utf-8?B?NVpMMTkzTzNRbG53V0h3b2U4TEFYTjRSWHAycG1zOVNSVU52VzhVZldhK3Bm?= =?utf-8?B?V00rcytQVVhRcHZ5R3hQeUVucDQyNEU4TGlXSmdhRzF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KU1BOeWFuRmpXMS9HZEFJcXdo?= =?utf-8?B?NkoxRHEyR3JFUTdkanZidWNmMzdLRW9RWlBNQUF4dDhxMjNObVBaMWkvbWY4?= =?utf-8?B?WW1lRU5SMFo4ZzAxR1BDb3RzVnplL0p6bjduTktPNEl3cWFmcy9SeGJ2Mlpl?= =?utf-8?B?SlF6ZEpoNDZuVFNpSG1qQ0ZacEVYMTNBTnNtU0J1TTMwWjJJL0M1eXlxZ2tu?= =?utf-8?B?aDZTQ3ZManp0ZWZ5YmF5TnR3NFYxR0FHK1dCNTZvS3VRRHJUSTRLc1dDVFdP?= =?utf-8?B?VTBhdTdQWkFUNEFWbXB3YVdqdzhYZmZnSkdXekRYSEdqOW9MMTQzWENUQnlj?= =?utf-8?B?eTFpcmI3cGhyb2svc29hWFVHRUlWOUh3TFk2UzRmTnZVS3lWVHlCSGF5Ynl5?= =?utf-8?B?OWZJQWR0RHBrYUF0YWtQRTNtVmhSeEIxcWRGSWp2alVYMTBrTDJ1SS8zdko3?= =?utf-8?B?em1HQkthYzdtV2Y5SFBNM05BVFRpRDlvZ2QreG05WHlrOWtKMjFDQjEwajU3?= =?utf-8?B?WnJRUlFjeElnSGFwV0duOFZOSUJIeDFwaUp0b0FFQ2JDRVhETGJQVVl4M2R6?= =?utf-8?B?dUU4elJPN2JySWpVUlZRZjFGd3pFVytEcGd1enFob3haTllzUTJ3OThxM2Jn?= =?utf-8?Q?qtbY7zk0gi3lgPft3f9ANMh+fDJcR21Eib0AcI=3D?= X-Forefront-PRVS: 03630A6A4A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(7370300001)(4630300001)(6049001)(6009001)(39400400002)(39410400002)(39450400003)(39830400002)(377424004)(24454002)(377454003)(478600001)(23676002)(5660300001)(76176999)(42186005)(50986999)(4001350100001)(86362001)(33646002)(74482002)(117156002)(54356999)(31696002)(50466002)(189998001)(83506001)(229853002)(2950100002)(6666003)(77096006)(65806001)(66066001)(47776003)(230700001)(7736002)(2906002)(3260700006)(6486002)(6116002)(3846002)(36756003)(4326008)(81166006)(25786009)(38730400002)(53936002)(305945005)(53546010)(54906002)(8676002)(7350300001)(6246003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0202MB2548;H:[192.168.13.3];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjAyMDJNQjI1NDg7MjM6bUZpbSthSFNBQmViQkJqcnpCQkNNSGFX?= =?utf-8?B?NVhST254OWYyMTNoZ2pBU3hSYzc1TjdOUThKQ0ZCeVZOV3JFd2g0MFo1V3Nr?= =?utf-8?B?L2ZuclNBYjdkTUd2Z2FRSVhISFNkalNzMFdMV0lDM28wTWUvcUJmVG5zdXlx?= =?utf-8?B?eVkwZURMZFU5bTRxbW4wVHVwRG9WV3p3QlprKzV0MFh6L2tSZjJpUGRiVEFw?= =?utf-8?B?cVJVUlpISlRnMGRPc3JkVlVSU3lKV1cra3dUUWlQK2wwYUpwSjBXK05MZ0cw?= =?utf-8?B?d1docVJMb3ZPdlVFSWllSGY4WWM3clduYmZzS1lzMnRsckxySGhHT1FWdVZj?= =?utf-8?B?VU40T2U3RGV0K0I3Qll3MzdNcVhCY2FJeXBndkM3cGsyRVcwcCt4czhpWW5O?= =?utf-8?B?endCL0N3SjV2bXd0MUNLMWwzTXZORDNTSERra0xSY1JONlVhbk1ZUGdRZ1RU?= =?utf-8?B?bW1oNEZOUlI0b0lCNnk3SzZacTZPTjE2TXRGYnR6UTdub2J3UmtoS3pvTHRw?= =?utf-8?B?a0VPZkZoN0tKWXlkMmQ4aExmRU9uek81KzVRRTJuQ0VySHJoVmxuejUzR01M?= =?utf-8?B?d0tob2dGKzF5amJtS202bm9COVBjTllTd0ZnNDhlZ3VVLzZDNktRU0hyaCt2?= =?utf-8?B?b3oxY2dyTnhEaktpcFJ4aGE2TzNIS0U3NjE3YXNnemtpVVhFTFJsRkZLNkVN?= =?utf-8?B?RUZ0QXZKNmZRNTB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epoVKiPRquxn6zPNu6B5RJvILL4HwsiKFgF9qJHF1hSXXDNFzjVMlUmW7d3t/2iVM7XQzUNC3JxX9JNUdvC+V9BpIK35XlbuXsQaf1EwHPTu9NYewLLN54d6/SEV5vsT6EglvSAVY0oKhc45nv06KrHpWF9ZrAig+xeKsGEONC4gfDBBpYANWkxUMQ5dBabL7orzujoPO19MH484+ueXAH9qs7ZUiEWYXk87fihqB1eKM45zTY= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2017 07:00:01.4995 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2548 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3290 Lines: 117 On 2017-07-08 23:22, Andy Shevchenko wrote: > On Sat, Jul 8, 2017 at 9:12 PM, > wrote: >> From: Kuppuswamy Sathyanarayanan >> >> Add dummy functions to avoid compile time issues when CONFIG_MULTIPLEXER >> is not enabled. >> > > I don't think the error return code is okay to all of them. The return > value should be choosen carefully (for some functions it's okay IMO to > return 0). BTW, is ENODEV correct for this situation? I have this nagging feeling that ENODEV is over-used? And again, all these stubs should all be inlines, or things will break it this file is included more than once. >> Signed-off-by: Kuppuswamy Sathyanarayanan >> --- >> include/linux/mux/consumer.h | 38 ++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> >> Changes since v1: >> * Changed #ifdef to #if IS_ENABLED. >> >> diff --git a/include/linux/mux/consumer.h b/include/linux/mux/consumer.h >> index 5577e1b..df78988 100644 >> --- a/include/linux/mux/consumer.h >> +++ b/include/linux/mux/consumer.h >> @@ -16,6 +16,7 @@ >> struct device; >> struct mux_control; >> >> +#if IS_ENABLED(CONFIG_MULTIPLEXER) >> unsigned int mux_control_states(struct mux_control *mux); >> int __must_check mux_control_select(struct mux_control *mux, >> unsigned int state); >> @@ -29,4 +30,41 @@ void mux_control_put(struct mux_control *mux); >> struct mux_control *devm_mux_control_get(struct device *dev, >> const char *mux_name); >> >> +#else >> +unsigned int mux_control_states(struct mux_control *mux) >> +{ >> + return -ENODEV; > > Peter, is here we are obliged to return error code in such case? Since it will presumably be difficult to obtain a mux_control w/o the mux-core being present, it doesn't matter much what most of these stubs return. For this stub, 0 is perhaps best, since the kernel-doc for mux_control_states mentions nothing about any error possibility. >> +} >> + >> +int __must_check mux_control_select(struct mux_control *mux, >> + unsigned int state) >> +{ >> + return -ENODEV; > > return 0; ? Maybe. But it doesn't matter much, but in this case the consumer must handle errors. See above. >> +} >> + >> +int __must_check mux_control_try_select(struct mux_control *mux, >> + unsigned int state) >> +{ >> + return -ENODEV; >> +} > > return 0; ? Maybe. But it doesn't matter much, but in this case the consumer must handle errors. See above. >> + >> +int mux_control_deselect(struct mux_control *mux) >> +{ >> + return -ENODEV; >> +} > > return 0; ? Probably. See above. Cheers, peda >> + >> +struct mux_control *mux_control_get(struct device *dev, const char *mux_name) >> +{ >> + return ERR_PTR(-ENODEV); >> +} >> + >> +void mux_control_put(struct mux_control *mux) {} >> + >> +struct mux_control *devm_mux_control_get(struct device *dev, >> + const char *mux_name) >> +{ >> + return ERR_PTR(-ENODEV); >> +} >> +#endif >> + >> #endif /* _LINUX_MUX_CONSUMER_H */ >> -- >> 2.7.4 >> > > >